public void run() { fView.setPinned(isChecked()); }
public void update() { setEnabled(fView.getConsole() != null); setChecked(fView.isPinned()); } }
/** * Constructs a 'pin console' action */ public PinConsoleAction(IConsoleView view) { super(ConsoleMessages.PinConsoleAction_0, IAction.AS_CHECK_BOX); setToolTipText(ConsoleMessages.PinConsoleAction_1); setImageDescriptor(ConsolePluginImages.getImageDescriptor(IInternalConsoleConstants.IMG_ELCL_PIN)); setDisabledImageDescriptor(ConsolePluginImages.getImageDescriptor(IInternalConsoleConstants.IMG_DLCL_PIN)); setHoverImageDescriptor(ConsolePluginImages.getImageDescriptor(IInternalConsoleConstants.IMG_LCL_PIN)); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IConsoleHelpContextIds.CONSOLE_PIN_CONSOLE_ACITON); fView = view; update(); }
public void setPinned(boolean pin) { fPinned = pin; if (fPinAction != null) { fPinAction.update(); } }
protected void createActions() { fPinAction = new PinConsoleAction(this); fDisplayConsoleAction = new ConsoleDropDownAction(this); ConsoleFactoryExtension[] extensions = ((ConsoleManager)ConsolePlugin.getDefault().getConsoleManager()).getConsoleFactoryExtensions(); if (extensions.length > 0) { fOpenConsoleAction = new OpenConsoleAction(); } }
@Override public void setPinned(boolean pin) { fPinned = pin; if (fPinAction != null) { fPinAction.update(); } }
protected void createActions() { fPinAction = new PinConsoleAction(this); fDisplayConsoleAction = new ConsoleDropDownAction(this); ConsoleFactoryExtension[] extensions = ((ConsoleManager)ConsolePlugin.getDefault().getConsoleManager()).getConsoleFactoryExtensions(); if (extensions.length > 0) { fOpenConsoleAction = new OpenConsoleAction(); } }
/** * Constructs a 'pin console' action */ public PinConsoleAction(IConsoleView view) { super(ConsoleMessages.PinConsoleAction_0, IAction.AS_CHECK_BOX); setToolTipText(ConsoleMessages.PinConsoleAction_1); setImageDescriptor(ConsolePluginImages.getImageDescriptor(IInternalConsoleConstants.IMG_ELCL_PIN)); setDisabledImageDescriptor(ConsolePluginImages.getImageDescriptor(IInternalConsoleConstants.IMG_DLCL_PIN)); setHoverImageDescriptor(ConsolePluginImages.getImageDescriptor(IInternalConsoleConstants.IMG_LCL_PIN)); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IConsoleHelpContextIds.CONSOLE_PIN_CONSOLE_ACITON); fView = view; update(); }
public void partClosed(IWorkbenchPart part) { super.partClosed(part); fPinAction.update(); }
@Override public void update() { setEnabled(fView.getConsole() != null); setChecked(fView.isPinned()); } }
@Override public void run() { fView.setPinned(isChecked()); }
@Override public void partClosed(IWorkbenchPart part) { super.partClosed(part); fPinAction.update(); }
fPinAction.update();
fPinAction.update();