final XulRunner runner = new SwtXulRunner(); runner.addContainer( container ); parent.addDisposeListener( new DisposeListener() {
shell.addDisposeListener( new DisposeListener() { public void widgetDisposed( DisposeEvent arg0 ) {
dialogShell.addDisposeListener(new DisposeListener() { @Override public void widgetDisposed(DisposeEvent e) {
shell.addDisposeListener( new DisposeListener() { public void widgetDisposed( DisposeEvent arg0 ) { red.dispose();
xulDialogComponent = (XulDialog) container.getDocumentRoot().getRootElement(); parentShell.addDisposeListener( new DisposeListener() {
splash.addDisposeListener( new DisposeListener() { public void widgetDisposed( DisposeEvent arg0 ) { kettle_image.dispose(); timer.schedule( timerTask, 0, 100 ); splash.addDisposeListener( new DisposeListener() { public void widgetDisposed( DisposeEvent arg0 ) { timer.cancel();
shell.addDisposeListener( new DisposeListener() { public void widgetDisposed( DisposeEvent event ) { if ( image != null ) {
@Override public void addDisposeListener(DisposeListener listener) { fShell.addDisposeListener(listener); }
@Override protected void configureShell(Shell newShell) { super.configureShell(newShell); newShell.setText(UIText.MergeAction_MergeResultTitle); newShell.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (objectReader != null) objectReader.release(); } }); }
/** * Creates an AnimationFeedback * * @param parentShell specifies the composite where the animation will be drawn */ public AnimationFeedbackBase(Shell parentShell) { baseShell = parentShell; baseShell.addDisposeListener(e -> { if (engine != null) engine.cancelAnimation(); }); }
/** * {@inheritDoc} */ public void addDisposeListener(DisposeListener listener) { getShell().addDisposeListener(listener); }
protected void addDisposeListener( final DisposeListener listener ) { if ( shell != null ){ if ( shell.isDisposed()){ listener.widgetDisposed( null ); }else{ shell.addDisposeListener( listener ); } } }
private CodeAssistor(Shell parentShell){ this.parentShell = parentShell; parentShell.addDisposeListener(this); delayAction = new DelayAction(parentShell.getDisplay(), 200); paramTextStyle.borderStyle = SWT.BORDER_SOLID; paramTextStyle.background = parentShell.getDisplay().getSystemColor(SWT.COLOR_GRAY); }
/** * Adds an item to the action list. */ private static void addToActionList(WWinPluginAction action) { staticActionList.add(action); Shell shell = action.window.getShell(); if (shell != null) { shell.addDisposeListener(x -> action.dispose()); } }
@Override void createProposalSelector() { super.createProposalSelector(); fProposalShell.addDisposeListener(e -> cancelFutures()); }
/** * Creates a new find/replace dialog accessor anchored at the given shell. * * @param shell the shell if no site is used * @since 3.3 */ public FindReplaceDialogStub(Shell shell) { fDialog= new FindReplaceDialog(shell); fDialog.create(); fDialog.getShell().addDisposeListener(this); }
/** * Creates a new find/replace dialog accessor anchored at the given shell. * * @param shell the shell if no site is used * @since 3.3 */ public FindReplaceDialogStub(Shell shell) { fDialog= new FindReplaceDialog(shell); fDialog.create(); fDialog.getShell().addDisposeListener(this); }
/** * Creates a new find/replace dialog accessor anchored at the given shell. * * @param shell the shell if no site is used * @since 3.3 */ public FindReplaceDialogStub(Shell shell) { fDialog= new FindReplaceDialog(shell); fDialog.create(); fDialog.getShell().addDisposeListener(this); }
@Override void createColorAndFontGroup () { super.createColorAndFontGroup(); TableItem item = new TableItem(colorAndFontTable, SWT.None); item.setText(ControlExample.getResourceString ("Link_Foreground_Color")); shell.addDisposeListener(event -> { if (linkForegroundColor != null) linkForegroundColor.dispose(); linkForegroundColor = null; }); }
@Override public void createControl(Composite parent) { initializeDialogUnits(parent); parent.getShell().addDisposeListener(arg0 -> disposeImages()); PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IWorkbenchHelpContextIds.ABOUT_FEATURES_DIALOG); Composite outer = createOuterComposite(parent); createTable(outer); createInfoArea(outer); setControl(outer); }