public void setPinned(boolean pinned) { this.pinned = pinned; // We could update the header here to reflect the fact that the // view is pinned. May be an icon? if (viewBarComponent != null) { viewBarComponent.getViewBar().getViewBanner().setPinned(pinned); } }
private void addViewManipulationActions() { // View manipulation toolbar ViewBanner viewBanner = viewBarComponent.getViewBar().getViewBanner(); plugin.getHelpLink().ifPresent(u -> viewBanner.addAction("Help", HelpIcon.get(), this::showHelpIfPresent)); viewBanner.addAction("Split vertically", SplitVerticallyIcon.get(), this::splitVertically); viewBanner.addAction("Split horizontally", SplitHorizontallyIcon.get(), this::splitHorizontally); viewBanner.addAction("Float", FloatIcon.get(), this::copyAndFloatView); viewBanner.addAction("Close", CloseIcon.get(), this::closeView); }
/** * Sets the text on the view header. This can be used to * override the label that is specified in the plugin.xml * file. * @param text The header text. */ public void setHeaderText(String text) { viewBarComponent.getViewBar().getViewBanner().setText(text); }
public void setHeaderBackgroundColor(Color color) { viewBarComponent.getViewBar().getViewBanner().setBannerColor(color); }
public void setShowViewBanner(boolean b) { viewBarComponent.getViewBar().getViewBanner().setVisible(b); }
public void hideViewBar() { viewBarComponent.getViewBar().setVisible(false); }
public void dispose() { if (view != null) { view.dispose(); } } }
protected void addAction(DisposableAction action, String group, String groupIndex) { addAction(new ViewActionAdapter(action), group, groupIndex); }
/** * Gets the layout preferences key for this view panel * @return The key */ public String getLayoutPreferencesKey() { return "protege-4.1." + memento.getViewPaneId(); }
/** * Gets the <code>ViewComponentPlugin</code> Id. This * is typically used to configure actions (toolbar buttons) * for this view. * @return A <code>String</code> representation of the Id * for the <code>ViewComponentPlugin</code>. */ public String getId() { return plugin.getId(); }
/** * Tests to see whether the holder contains a view * with a particular id. * @param id The id of the view to test for. * @return <code>true</code> if the holder contains the view, * or <code>false</code> if the holder does not contain the * view. */ public boolean containsView(String id) { return getView(id) != null; }
/** * Sets the text on the view header. This can be used to * override the label that is specified in the plugin.xml * file. * @param text The header text. */ public void setHeaderText(String text) { viewBarComponent.getViewBar().getViewBanner().setText(text); }
public void setPinned(boolean pinned) { this.pinned = pinned; // We could update the header here to reflect the fact that the // view is pinned. May be an icon? if (viewBarComponent != null) { viewBarComponent.getViewBar().getViewBanner().setPinned(pinned); } }
public void setHeaderBackgroundColor(Color color) { viewBarComponent.getViewBar().getViewBanner().setBannerColor(color); }
public void setShowViewBanner(boolean b) { viewBarComponent.getViewBar().getViewBanner().setVisible(b); }
public void setShowViewBar(boolean b) { viewBarComponent.getViewBar().setVisible(b); }
/** * Sets the text on the view header. This can be used to * override the label that is specified in the plugin.xml * file. * @param text The header text. */ public void setHeaderText(String text) { viewBarComponent.getViewBar().getViewBanner().setText(text); }
public void setPinned(boolean pinned) { this.pinned = pinned; // We could update the header here to reflect the fact that the // view is pinned. May be an icon? if (viewBarComponent != null) { viewBarComponent.getViewBar().getViewBanner().setPinned(pinned); } }
public void setHeaderBackgroundColor(Color color) { viewBarComponent.getViewBar().getViewBanner().setBannerColor(color); }
public void setShowViewBar(boolean b) { viewBarComponent.getViewBar().setVisible(b); }