Examples of open()


Examples of org.eclipse.sapphire.ui.forms.swt.Popup.open()

            }
        };
       
        dialog.setBlockOnOpen( true );
       
        dialog.open();
       
        return result.get();
    }
   
    public static final class Condition extends PropertyEditorCondition
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.swt.SapphireDialog.open()

            (
                window.getShell(), operation,
                DefinitionLoader.context( getClass() ).sdef( "CreateFileWizard" ).dialog( "CustomizeDialog" )
            );
           
            if( selectRootDialog.open() == Dialog.OK )
            {
                final CreateWorkspaceFileWizard<CreateFileOp> createFileWizard = new CreateWorkspaceFileWizard<CreateFileOp>
                (
                    operation,
                    DefinitionLoader.context( getClass() ).sdef( "CreateFileWizard" ).wizard( "CreateFileWizard" )
View Full Code Here

Examples of org.eclipse.search.internal.ui.SearchDialog.open()

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    IWorkbenchWindow win = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    SearchDialog sh = new SearchDialog(win, "xvr_search");
    sh.open();
    return null;
  }

}
View Full Code Here

Examples of org.eclipse.swt.custom.PopupList.open()

    popupList.setItems(items);
    int HACK_MARGIN = 30;
    Point absPoint = getAbsoluteLocation(control, event.x, event.y + HACK_MARGIN);
    Rectangle rect = new Rectangle(absPoint.x, absPoint.y, 150, 25);
    control.setToolTipText("");
    String res = popupList.open(rect);

    // code to open selected file, by location or by name
    if (null != res) {
      if ((inputDescription instanceof URISpecifier) ||
          isJmsDescriptor(inputDescription)) {
View Full Code Here

Examples of org.eclipse.swt.layout.GridData.open()

          boolean error;
          do
            {
            error = false;
            XCDEServerConfigDialog d = new XCDEServerConfigDialog(new Shell());
            Object[] newVal = d.open(new ServerInfo("localhost", 48879), "");
            if (newVal != null)
              {
              try
                {
                XCDERegisterProvider.getProvider().addInstance((ServerInfo)newVal[0],(String)newVal[1]);
View Full Code Here

Examples of org.eclipse.swt.printing.PrintDialog.open()

public class PrintCommand extends AbstractHandler {

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    PrintDialog printDialog = new PrintDialog(HandlerUtil.getActiveShell(event));
    PrinterData printerData = printDialog.open();
   
    if(printerData != null ) {
      Printer printer = new Printer(printerData);
      if(printer.startJob("Text")) {
        GC gc = new GC(printer);
View Full Code Here

Examples of org.eclipse.swt.widgets.ColorDialog.open()

          if (e.button == 1) {
            ColorDialog cd = new ColorDialog(panel.getShell());
            cd.setRGB(blockColors[index].getRGB());
           
            RGB rgb = cd.open();
            if (rgb != null)
              config.setRGBParameter(keys[index], rgb.red, rgb.green, rgb.blue);
          } else {
            config.removeRGBParameter(keys[index]);
          }
View Full Code Here

Examples of org.eclipse.swt.widgets.DirectoryDialog.open()

          if ( def.length() > 0 ){
           
            fd.setFilterPath( def );
          }
        }
        String f = fd.open();
        if (f != null){
          file.setText(f);
         
          File  ff = new File(f);
         
View Full Code Here

Examples of org.eclipse.swt.widgets.FileDialog.open()

  private void handleBrowse() {
    FileDialog dialog = new FileDialog(getShell(), SWT.SINGLE);
    dialog.setText("Select file");
    dialog.setFilterExtensions(new String[] { "*.zip", "*.wgaplugin" });
    String selectedFile = dialog.open();
    if (selectedFile != null) {
      String[] fileNames = dialog.getFileNames();
      File dir = new File(dialog.getFilterPath());
      if (fileNames.length > 0) {   
        _tmplFile.setText(new File(dir, fileNames[0]).getAbsolutePath());
View Full Code Here

Examples of org.eclipse.swt.widgets.FontDialog.open()

          FontDialog fd = new FontDialog(s, SWT.NONE);
          fd.setText("Select Font");
          fd.setRGB(t.getForeground().getRGB());
          fd.setFontList(t.getFont().getFontData());

           FontData newFont = fd.open();
          if(newFont==null)
              return;
          t.setFont(new Font(d, newFont));
          t.setForeground(new Color(d, fd.getRGB()));
         
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.