Examples of dispose()


Examples of org.eclipse.sapphire.ui.forms.swt.internal.ValueLabelProvider.dispose()

            @Override
            public void dispose()
            {
                super.dispose();
                valueLabelProvider.dispose();
               
            }
        };
       
        viewerColumn.setLabelProvider( labelProvider );
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.presentation.ShapePresentation.dispose()

    if (isActive()) {
      ContextButtonManager contextButtonManager = getConfigurationManager().getDiagramEditor().getContextButtonManager();
      contextButtonManager.deRegister(this);
      getCastedModel().removePropertyChangeListener(this);
        ShapePresentation shapePresentation = getCastedModel().getShapePresentation();
        shapePresentation.dispose();
      super.deactivate();
    }
  }
 
  @Override
View Full Code Here

Examples of org.eclipse.swt.browser.Browser.dispose()

          event.browser = tempBrowser;
          tempBrowser.getDisplay().timerExec(BROWSER_URL_DELAY, new Runnable() {
            public void run() {
              if (!tempBrowser.isDisposed() && PlatformUI.isWorkbenchRunning()) {
                String url = tempBrowser.getUrl();
                tempBrowser.dispose();
                if (StringUtils.isSet(url))
                  BrowserUtils.openLinkExternal(URIUtils.toUnManaged(url));
              }
            }
          });
View Full Code Here

Examples of org.eclipse.swt.browser.BrowserFunction.dispose()

    public Object run(Object[] args) {
      Browser browser = (Browser)getControl();
      String key = "nsFunction_" + (String)args[0];
      BrowserFunction browserFunction = (BrowserFunction)browser.getData(key);
      browser.setData(key, null);
      browserFunction.dispose();
      return null;
    }
  }

  public void unregisterFunction(WebBrowserFunction function) {
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo.dispose()

                  }
                });              // setDirty(true);
                // updateLaunchConfigurationDialog();

                // They selected an item; end the editing session
                combo.dispose();
              }
            });
           
         
           
View Full Code Here

Examples of org.eclipse.swt.custom.CTabItem.dispose()

    boolean doit = true;
    for (int i = 0; i < folder.getItemCount(); i++) {
      CTabItem tab = folder.getItem(i);
      folder.setSelection(i);
      if (((IEditor) tab.getControl()).close()) {
        tab.dispose();
        i--;
      } else {
        doit = false;
      }
    }
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.dispose()

        }
        if (this.testOutputText != null) {
            StyledText t = this.testOutputText;
            this.testOutputText = null;
            onControlDisposed.call(t);
            t.dispose();
        }
        if (this.fCounterPanel != null) {
            this.fCounterPanel.dispose();
            this.fCounterPanel = null;
        }
View Full Code Here

Examples of org.eclipse.swt.custom.TableTreeItem.dispose()

      // throw new InternalErrorCDE("invalid state");
      return; // happens when no allfeat is set
    allFeatItem.setText(column, "");
    String otherCol = allFeatItem.getText((column == INPUT_COL) ? OUTPUT_COL : INPUT_COL);
    if (null == otherCol || "".equals(otherCol))
      allFeatItem.dispose();
  }

  private void handleEdit(TableTreeItem editItem, int itemKind) {
    Capability c = getCapability(editItem);
    switch (itemKind) {
View Full Code Here

Examples of org.eclipse.swt.custom.TreeEditor.dispose()

        }
      }
    }
    if (extensions < 1 && editor != null) {
      editor.getEditor().dispose();
      editor.dispose();
      item.setData("editor",null);
    }
    contactList.redraw();
  }
View Full Code Here

Examples of org.eclipse.swt.dnd.Clipboard.dispose()

    private String getInitialLink() {
      Clipboard cb = new Clipboard(getShell().getDisplay());
      TextTransfer transfer = TextTransfer.getInstance();
      String data = (String) cb.getContents(transfer);
      data = (data != null) ? data.trim() : null;
      cb.dispose();

      if (data != null && URIUtils.looksLikeLink(data)) {
        if (!data.contains("://"))
          data = HTTP + data;
      } else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.