/** * Creates the actions and action groups for this view. */ protected void createActions() { fGotoInputAction= new GotoInputAction(this); fGotoInputAction.setEnabled(false); fCopyToClipboardAction= new CopyToClipboardAction(getViewSite()); ISelectionProvider provider= getSelectionProvider(); if (provider != null) provider.addSelectionChangedListener(fCopyToClipboardAction); }
/** * Creates the actions and action groups for this view. */ protected void createActions() { fGotoInputAction= new GotoInputAction(this); fGotoInputAction.setEnabled(false); fCopyToClipboardAction= new CopyToClipboardAction(getViewSite()); fToggleLinkAction= new LinkAction(); fToggleLinkAction.setActionDefinitionId(IWorkbenchCommandConstants.NAVIGATE_TOGGLE_LINK_WITH_EDITOR); fToggleLinkAction.updateLinkImage(false); ISelectionProvider provider= getSelectionProvider(); if (provider != null) provider.addSelectionChangedListener(fCopyToClipboardAction); }
/** * Creates the actions and action groups for this view. */ protected void createActions() { fGotoInputAction= new GotoInputAction(this); fGotoInputAction.setEnabled(false); fCopyToClipboardAction= new CopyToClipboardAction(getViewSite()); fToggleLinkAction= new LinkAction(); fToggleLinkAction.setActionDefinitionId(IWorkbenchCommandConstants.NAVIGATE_TOGGLE_LINK_WITH_EDITOR); fToggleLinkAction.updateLinkImage(false); ISelectionProvider provider= getSelectionProvider(); if (provider != null) provider.addSelectionChangedListener(fCopyToClipboardAction); }
/** * Creates the context menu for this view. */ protected void createContextMenu() { MenuManager menuManager= new MenuManager("#PopupMenu"); //$NON-NLS-1$ menuManager.setRemoveAllWhenShown(true); menuManager.addMenuListener(this); Menu contextMenu= menuManager.createContextMenu(getControl()); getControl().setMenu(contextMenu); getSite().registerContextMenu(menuManager, getSelectionProvider()); }
/** * Creates the context menu for this view. */ protected void createContextMenu() { MenuManager menuManager= new MenuManager("#PopupMenu"); //$NON-NLS-1$ menuManager.setRemoveAllWhenShown(true); menuManager.addMenuListener(this); Menu contextMenu= menuManager.createContextMenu(getControl()); getControl().setMenu(contextMenu); getSite().registerContextMenu(menuManager, getSelectionProvider()); }
/** * Creates the context menu for this view. */ protected void createContextMenu() { MenuManager menuManager= new MenuManager("#PopupMenu"); //$NON-NLS-1$ menuManager.setRemoveAllWhenShown(true); menuManager.addMenuListener(this); Menu contextMenu= menuManager.createContextMenu(getControl()); getControl().setMenu(contextMenu); getSite().registerContextMenu(menuManager, getSelectionProvider()); }
final public void dispose() { // cancel possible running computation fComputeCount++; getSite().getWorkbenchWindow().getPartService().removePartListener(fPartListener); ISelectionProvider provider= getSelectionProvider(); if (provider != null) provider.removeSelectionChangedListener(fCopyToClipboardAction); JFaceResources.getColorRegistry().removeListener(this); fBackgroundColorRGB= null; if (fBackgroundColor != null) { fBackgroundColor.dispose(); fBackgroundColor= null; } internalDispose(); }
@Override public final void dispose() { // cancel possible running computation fComputeCount++; if (fComputeProgressMonitor != null) fComputeProgressMonitor.setCanceled(true); getSite().getWorkbenchWindow().getPartService().removePartListener(fPartListener); ISelectionProvider provider= getSelectionProvider(); if (provider != null) provider.removeSelectionChangedListener(fCopyToClipboardAction); JFaceResources.getColorRegistry().removeListener(this); fBackgroundColorRGB= null; if (fBackgroundColor != null) { fBackgroundColor.dispose(); fBackgroundColor= null; } internalDispose(); }
@Override public final void dispose() { // cancel possible running computation fComputeCount++; if (fComputeProgressMonitor != null) fComputeProgressMonitor.setCanceled(true); getSite().getWorkbenchWindow().getPartService().removePartListener(fPartListener); ISelectionProvider provider= getSelectionProvider(); if (provider != null) provider.removeSelectionChangedListener(fCopyToClipboardAction); JFaceResources.getColorRegistry().removeListener(this); fBackgroundColorRGB= null; if (fBackgroundColor != null) { fBackgroundColor.dispose(); fBackgroundColor= null; } fForegroundColorRGB= null; if (fForegroundColor != null) { fForegroundColor.dispose(); fForegroundColor= null; } internalDispose(); }