Examples of dispose()


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

    StyledText st= viewer.getTextWidget();
    dndService.removeMergedDropTarget(st);

    DragSource dragSource= (DragSource)st.getData(DND.DRAG_SOURCE_KEY);
    if (dragSource != null) {
      dragSource.dispose();
      st.setData(DND.DRAG_SOURCE_KEY, null);
    }

    fIsTextDragAndDropInstalled= false;
  }
View Full Code Here

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

   * @see org.eclipse.ui.dnd.IDragAndDropService#removeMergedDropTarget(org.eclipse.swt.widgets.Control)
   */
  public void removeMergedDropTarget(Control control) {
    DropTarget targetForControl = getCurrentDropTarget(control);
    if (targetForControl != null) {
      targetForControl.dispose();
      addedListeners.remove(targetForControl);
    }
  }

  /* (non-Javadoc)
 
View Full Code Here

Examples of org.eclipse.swt.graphics.Color.dispose()

            colorC.dispose();
            colorD.dispose();
            colorE.dispose();
            colorF.dispose();
            colorG.dispose();
            colorH.dispose();
        }

        return result;
    }
  
View Full Code Here

Examples of org.eclipse.swt.graphics.Cursor.dispose()

                    HostnameUtils.detectHostNames(runtime.getOtpHome());
                    updateHostNames();
                } finally {
                    parent.setCursor(null);
                    parent.setEnabled(true);
                    cursor.dispose();
                }
            }

        });
        btnNewButton.setText("Detect host names");
View Full Code Here

Examples of org.eclipse.swt.graphics.Font.dispose()

        }
        final Font newFont = new Font(getSite().getShell().getDisplay(), fontData);
        _toolbarLblProject.setFont(newFont);
        _toolbarLblProject.addDisposeListener(new DisposeListener() {
            public void widgetDisposed(DisposeEvent e) {
                newFont.dispose();
            }
        });
       
        _toolbarLblLocation = new Label(leftComp, SWT.NONE);
       
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.dispose()

 
  public static int computeFontHeight(Drawable element) {
    GC gc = new GC(element);
      FontMetrics fm = gc.getFontMetrics ();
      gc.dispose();
      return fm.getHeight();
  }

}
View Full Code Here

Examples of org.eclipse.swt.graphics.Image.dispose()

    if (infoObj == null)
      return;

    Image img = (Image)infoObj.getData("PiecesImage");
    if (img != null && !img.isDisposed())
      img.dispose();

    infoObj.setData("PiecesImageBuffer", null);
    infoObj.setData("PiecesImage", null);
  }
 
View Full Code Here

Examples of org.eclipse.swt.graphics.Path.dispose()

                            x1 + (int) (0.5 * width) - 10, f);
                    g.fillPath(p);
                    tr.rotate(90.0f);
                    g.setTransform(tr);
                    tr.dispose();
                    p.dispose();
                }
                f.dispose();
            }
        }
        g.setForeground(disp.getSystemColor(SWT.COLOR_WHITE));
View Full Code Here

Examples of org.eclipse.swt.graphics.Pattern.dispose()

      shape.paintSuperFigure(graphics);
      graphics.popState();

      // pattern is not used anymore by graphics => dispose
      pattern.dispose();
    } else {
      // ScaledGraphics and PrinterGraphics do not have advanced
      // capabilities... so we try with SWTGraphics

      // Creates a new image of width x height on the current display
View Full Code Here

Examples of org.eclipse.swt.graphics.Point.dispose()

        gc.setBackground(getGroup().getParent().getBackground());
        Pattern p = new Pattern(getGroup().getDisplay(), 0, 0, 0, titleHeight,
                                initialBackColor, 255, getGroup().getBackground(), 0);
        gc.setBackgroundPattern(p);
        gc.fillRectangle(0, 0, getGroup().getSize().x, titleHeight);
        p.dispose();
        gc.setBackgroundPattern(null);
       
        if (getGroup().getExpanded() && getGroup().getSize().x > 1)
        {           
            reg.subtract(1,titleHeight -1,getGroup().getSize().x -2,1);
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.