public void widgetDisposed(DisposeEvent e) { if(compareConfiguration != null) { compareConfiguration.dispose(); } } });
public void widgetDisposed(DisposeEvent e) { if (fCompareConfiguration != null) fCompareConfiguration.dispose(); } });
/** * Callback that occurs when the UI associated with this compare editor * input is disposed. This method will only be invoked if the UI has been * created (i.e. after the call to {@link #createContents(Composite)}. * Subclasses can extend this method but ensure that the overridden method * is invoked. * * @since 3.3 */ protected void handleDispose() { fContainerProvided = false; fContainer = null; fCompareConfiguration.dispose(); }
/** * Callback that occurs when the UI associated with this compare editor * input is disposed. This method will only be invoked if the UI has been * created (i.e. after the call to {@link #createContents(Composite)}. * Subclasses can extend this method but ensure that the overridden method * is invoked. * * @since 3.3 */ protected void handleDispose() { fContainerProvided = false; fContainer = null; fComposite = null; fStructureInputPane = null; fStructurePane1 = null; fStructurePane2 = null; fContentInputPane = null; fFocusPane = null; fNavigator = null; fCompareConfiguration.dispose(); }
public void dispose() { disposed = true; compareConfig.dispose(); if (fgImageCache != null) { Iterator it = fgImageCache.values().iterator(); while (it.hasNext()) { Image element = (Image) it.next(); element.dispose(); } } }
public void dispose() { disposed = true; compareConfig.dispose(); if (imageManager != null) { imageManager.dispose(); } }
public void dispose() { workbenchLabelProvider.dispose(); if(busyFont != null) { busyFont.dispose(); } compareConfig.dispose(); if (fgImageCache != null) { Iterator it = fgImageCache.values().iterator(); while (it.hasNext()) { Image element = (Image) it.next(); element.dispose(); } } } }
@Override public void dispose() { workbenchLabelProvider.dispose(); if(busyFont != null) { busyFont.dispose(); } compareConfig.dispose(); if (fgImageCache != null) { Iterator it = fgImageCache.values().iterator(); while (it.hasNext()) { Image element = (Image) it.next(); element.dispose(); } } } }
public void widgetDisposed(DisposeEvent e) { if (fCompareConfiguration != null) { fCompareConfiguration.dispose(); fCompareConfiguration= null; } if (fDateImage != null) { fDateImage.dispose(); fDateImage= null; } if (fTimeImage != null) { fTimeImage.dispose(); fTimeImage= null; } } }
e -> { if (fCompareConfiguration != null) { fCompareConfiguration.dispose(); fCompareConfiguration= null;
private Control createPreviewer(Composite parent) { fCompareConfiguration= new CompareConfiguration(fOverlayStore); fCompareConfiguration.setAncestorLabel(Utilities.getString("ComparePreferencePage.ancestor.label")); //$NON-NLS-1$ fCompareConfiguration.setLeftLabel(Utilities.getString("ComparePreferencePage.left.label")); //$NON-NLS-1$ fCompareConfiguration.setLeftEditable(false); fCompareConfiguration.setRightLabel(Utilities.getString("ComparePreferencePage.right.label")); //$NON-NLS-1$ fCompareConfiguration.setRightEditable(false); TextMergeViewer fPreviewViewer= new TextMergeViewer(parent, SWT.BORDER, fCompareConfiguration); fPreviewViewer.setInput( new DiffNode(Differencer.CONFLICTING, new FakeInput("ComparePreferencePage.previewAncestor"), //$NON-NLS-1$ new FakeInput("ComparePreferencePage.previewLeft"), //$NON-NLS-1$ new FakeInput("ComparePreferencePage.previewRight") //$NON-NLS-1$ ) ); Control c= fPreviewViewer.getControl(); c.addDisposeListener(e -> { if (fCompareConfiguration != null) fCompareConfiguration.dispose(); }); return c; }