Examples of dispose()


Examples of org.eclipse.swt.widgets.Link.dispose()

          return;
        String property = event.getProperty();
        if (CodeFormatterConstants.FORMATTER_TAB_CHAR.equals(property)
                || CodeFormatterConstants.FORMATTER_TAB_SIZE.equals(property)) {
          fHasRun = true;
          link.dispose();
          createMessage(composite);
          Dialog.applyDialogFont(composite);
          composite.redraw();
          composite.layout();
        }
View Full Code Here

Examples of org.eclipse.swt.widgets.Menu.dispose()

    while (!widget.isDisposed() && widget.isVisible()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    if (!widget.isDisposed()) {
      widget.dispose();
    }
  }
 
  /**
   * Hook to fill a menu manager with the items of the sub menu.
View Full Code Here

Examples of org.eclipse.swt.widgets.MenuItem.dispose()

      public void run() {
        Menu menu = (Menu)menuLookup.get(name);       
        MenuItem menuItem = (MenuItem)menuItemLookup.get(name);
        if(menu != null) {
          menu.dispose();
          menuItem.dispose();
          menuLookup.remove(name);
          menuItemLookup.remove(name);
        }
      }
    });
View Full Code Here

Examples of org.eclipse.swt.widgets.ProgressBar.dispose()

        e.printStackTrace();
      }
      pg.setSelection(i);
    }
    // Cleanup
    pg.dispose();
    sh.dispose();
    d.dispose();
  }
}
View Full Code Here

Examples of org.eclipse.swt.widgets.Shell.dispose()

        }
      });
 
      browser = Utils.createSafeBrowser(shell, SWT.NONE);
      if (browser == null) {
        shell.dispose();
        return;
      }
 
      browser.addTitleListener(new TitleListener() {
        public void changed(TitleEvent event) {
View Full Code Here

Examples of org.eclipse.swt.widgets.Slider.dispose()

                final Slider sliderH = new Slider(parent, SWT.HORIZONTAL);
                final int width = sliderV.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
                final int height = sliderH.computeSize(SWT.DEFAULT, SWT.DEFAULT).y;
                fgScrollBarSize = new Point(width, height);
                sliderV.dispose();
                sliderH.dispose();
            } catch (final SWTError er) {
                fgIsAvailable = false;
            } finally {
                fgAvailabilityChecked = true;
            }
View Full Code Here

Examples of org.eclipse.swt.widgets.Spinner.dispose()

                oldEditor.dispose();

              oldEditor = editor2.getEditor();
              if (oldEditor != null)
                oldEditor.dispose();
              spinner.dispose();
            }

          });
          spinner.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
View Full Code Here

Examples of org.eclipse.swt.widgets.TabItem.dispose()

        if (item == null) {
            return;
        }
        oldPart.setVisible(false);

        item.dispose();
    }

    /* (non-Javadoc)
     * @see org.eclipse.ui.internal.skins.StackPresentation#selectPart(org.eclipse.ui.internal.skins.IPresentablePart)
     */
 
View Full Code Here

Examples of org.eclipse.swt.widgets.TableColumn.dispose()

                tableColumn.setWidth(100);
            }
            for( int i = fType.getAttributeCount() + 1; i < table.getColumnCount(); i++ ) {
                tableColumn = table.getColumn(i);
                tableColumn.dispose();
            }
        }
    }

    /**
 
View Full Code Here

Examples of org.eclipse.swt.widgets.TableItem.dispose()

          }
        }
      }
     
      if (item != null && !item.isDisposed())
        item.dispose();
      else if (table.getItemCount() > 0)
        System.err.println("No table row was found to dispose");
    } 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.