Examples of dispose()


Examples of org.eclipse.swt.printing.Printer.dispose()

        gc.dispose();
       
        printer.endJob();
      }
     
      printer.dispose();
    }
    return null;
  }

}
View Full Code Here

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

    // This little code fragment is an attempt to get the right sizing for the buttons
    // Was wrong on Mac platforms
    //   Word below is the longer of the two words in the button container
    Button tempForSize = toolkit.createButton(tableContainer, "Remove", SWT.PUSH);
    Point p = tempForSize.computeSize(SWT.DEFAULT, SWT.DEFAULT);
    tempForSize.dispose();
   
    Composite bottomButtonContainer = newButtonContainer(tableContainer, HORIZONTAL_BUTTONS, 3* p.x);

    addButton = newPushButton(bottomButtonContainer, S_ADD,
            "Click here to add a locally defined AE or CAS Consumer delegate", ENABLED);
View Full Code Here

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

            }
            transitionable.setSelection(currentItem);
            gcOn.dispose();
           
            //dispose the transition canvas
            canvas.dispose();
           
            //now the item transition ends on will be used
            //to start transition from next time
            lastItem = currentItem;
           
View Full Code Here

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

   * Images, Colors and such SWT handles must be disposed by the class itself.
   */
  public void delete(){
    Composite comp = getComposite();
    if (comp != null && !comp.isDisposed())
      comp.dispose();
  }

  public String getData(){ return null; }

  /**
 
View Full Code Here

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

  public void testRegistersDisposeListenerOnControl() {
    SwipeItemProvider itemProvider = mockProvider( 0 );
    Swipe swipe = new Swipe( shell, itemProvider );
    Control control = swipe.getControl();

    control.dispose();

    verify( environment.getRemoteObject() ).destroy();
  }

  @Test
View Full Code Here

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

    Point cl = bar.getLocation();

    // Toss them now...
    ctrl.dispose();
    item.dispose();
    bar.dispose();

    // The 'size' is the difference between the start of teh CoolBar and
    // start of its first control
    int length;
    if (horizontal) {
View Full Code Here

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

                    Control control = coolItem.getControl();
                    if (control != null) {
                        coolItem.setControl(null);
                        control.dispose();
                    }
                    coolItem.dispose();
                }
            }

            // Add any new items by telling them to fill.
            coolItems = coolBar.getItems();
View Full Code Here

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

    while (!splash.splash.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
    display.dispose();
  }

  public SplashWindow(Display _display, IUIIntializer initializer) {
    this.display = _display;
    this.initializer = initializer;
View Full Code Here

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

          Item child = children[j];

          Object data = child.getData();
          if (data != null && toRemove.containsKey(data)) {
            disassociate(child);
            child.dispose();
          }
        }
      }
    }
  }
View Full Code Here

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

    // location of the
    Point bl = ctrl.getLocation();
    Point cl = bar.getLocation();

    // Toss them now...
    ctrl.dispose();
    item.dispose();
    bar.dispose();

    // The 'size' is the difference between the start of teh CoolBar and
    // start of its first control
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.