Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.InputDialog.open()


     * @see java.lang.Thread#run()
     */
    public void run() {
      InputDialog d = new InputDialog(RoomManager.getMain().getDisplay()
          .getActiveShell(), title, desc, def, validator);
      if (d.open() == Window.OK) {
        returnValue = d.getValue();
      }
      latch.countDown();
    }

View Full Code Here


        InputDialog d = new InputDialog(parent.getShell(),
            "Rename Script File",
            "Choose the new name of the script file.",
            "modified_script_name.js",
            new ValidFileName());
        if(d.open() == Window.OK){
          for(TreeItem t : tree.getSelection()){
            for(Script s : ScriptManager.scripts){
              Script fScript = (Script)t.getData();
              if(s.getReference().equals(fScript.getReference())){
                fScript.getReference().renameTo(new File("./scripts/"+d.getValue()));
View Full Code Here

        InputDialog d = new InputDialog(parent.getShell(),
            "Create New Script File",
            "Choose the name of the new script file.",
            "newscript.js",
            new ValidFileName());
        if(d.open() == Window.OK){
          File f = new File("./scripts/"+d.getValue());
          try {
            if(!f.createNewFile()){
              System.err.println("Could not create file: "+f.getName());
            }
View Full Code Here

              }
            }
            return null;
          }
        });
    if (dialog.open() != InputDialog.OK) {
      return;
    }
    MigrationGroup newGroup = new MigrationGroup();
    newGroup.setName(dialog.getValue());
    task.addMigrationGroup(newGroup);
View Full Code Here

        };

        InputDialog dialog = new InputDialog( getShell(), "Rename Connection", "New name:", connection.getName(),
            validator );

        dialog.open();
        String newName = dialog.getValue();
        if ( newName != null )
        {
            connection.setName( newName );
        }
View Full Code Here

            }
        };

        InputDialog dialog = new InputDialog( getShell(), "Rename Search", "New name:", search.getName(), validator );

        dialog.open();
        String newName = dialog.getValue();
        if ( newName != null )
        {
            search.setName( newName );
        }
View Full Code Here

            }
        };

        InputDialog dialog = new InputDialog( getShell(), "Rename Bookmark", "New name:", bookmark.getName(), validator );

        dialog.open();
        String newName = dialog.getValue();
        if ( newName != null )
        {
            bookmark.setName( newName );
        }
View Full Code Here

                            return control;
                        }
                    };
                   
                    int returnValue;
                    while((returnValue = id.open()) == InputDialog.OK)
                    {
                        if (id.getValue() == null || id.getValue().toString().length() == 0)
                        {                           
                            ViewUtility.popupErrorMessage("Set Password", "Please enter a valid password");                      
                        }
View Full Code Here

        };

        InputDialog dialog = new InputDialog( getShell(), "Rename Connection", "New name:", connection.getName(),
            validator );

        dialog.open();
        String newName = dialog.getValue();
        if ( newName != null )
        {
            connection.setName( newName );
        }
View Full Code Here

            }
        };

        InputDialog dialog = new InputDialog( getShell(), "Rename Search", "New name:", search.getName(), validator );

        dialog.open();
        String newName = dialog.getValue();
        if ( newName != null )
        {
            search.setName( newName );
        }
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.