Package org.eclipse.jface.dialogs

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


              return RutaFoldingMessages.RutaFoldingPreferenceBlock_2;
            }
          };
          InputDialog dlg = new InputDialog(null, RutaFoldingMessages.RutaFoldingPreferenceBlock_3,
                  RutaFoldingMessages.RutaFoldingPreferenceBlock_4, "", validator);
          if (dlg.open() == Window.OK) {
            fList.add(dlg.getValue());
            save();
          }
        }
      });
View Full Code Here


              "Rename Contact",
              "Enter New Name for " + (selectedEntry.getName() == null ? selectedEntry.getUser() : selectedEntry.getName()),
              (selectedEntry.getName() == null ? selectedEntry.getUser() : selectedEntry.getName()),
              null);
          dialog.setBlockOnOpen(true);
          if(dialog.open() != InputDialog.OK) return;
          selectedEntry.setName(dialog.getValue());
        }
      });
     
      MenuItem remove = new MenuItem(entryMenu,SWT.PUSH);
View Full Code Here

                  if(activeAccount.xmpp.getRoster().getGroup(newText) != null) return "Group already exists.";
                  if(newText.equalsIgnoreCase("default")) return "Invalid Group Name";
                  return null;
                }});
          dialog.setBlockOnOpen(true);
          int code = dialog.open();
          if(code != InputDialog.OK) return;
          RosterGroup group = activeAccount.xmpp.getRoster().createGroup(dialog.getValue());
          try {
            group.addEntry(selectedEntry);
          } catch (XMPPException e) {
View Full Code Here

          return;
        InputDialog dialog = new InputDialog(sShell,
            "Creating MUC Room",
            "Enter the name for the New Room (will be known as yourinput@" + addressid + ")",
            null,null);
        int r = dialog.open();
        if(r != InputDialog.OK) return;
        String room = dialog.getValue();
        String froom = room + "@" + addressid;
        MultiUserChat muc = new MultiUserChat(account.xmpp.getConnection(),froom);
        try {
View Full Code Here

          if(newText.equals("") ||
              newText.indexOf('@')>-1)
            return "Enter a valid room name. e.g: myroomname";
          return null;
        }});
      if(dialog.open() != InputDialog.OK) return;
      name = dialog.getValue() + "@" + addressid;
    } else
      name = addressid;
    MultiUserChat muc = new MultiUserChat(account.xmpp.getConnection(),name);
    try {
View Full Code Here

              InputDialog inputDialog = new InputDialog(txtTopic.getShell(),
                  "Change Subject",
                  "Enter a new Subject for the room " + muc.getRoom(),
                  txtTopic.getText(),
                  null);
              int r = inputDialog.open();
              if(r != InputDialog.OK) return;
              try {
                muc.changeSubject(inputDialog.getValue());
              } catch (XMPPException e) {
                e.printStackTrace();
View Full Code Here

              InputDialog inputDialog = new InputDialog(txtTopic.getShell(),
                  "Invite Someone",
                  "Enter JID of whom you want to invite to this Room (Afterwards you can enter an invite message)",
                  "",
                  null);
              int r = inputDialog.open();
              if(r != InputDialog.OK) return;
              String jid = inputDialog.getValue();
              inputDialog = new InputDialog(txtTopic.getShell(),
                  "Invite Someone",
                  "Enter Invite Message (Reason for the invitation)",
View Full Code Here

              inputDialog = new InputDialog(txtTopic.getShell(),
                  "Invite Someone",
                  "Enter Invite Message (Reason for the invitation)",
                  "Join me on " + muc.getRoom(),
                  null);
              r = inputDialog.open();
              if(r != InputDialog.OK) return;
              String reason = inputDialog.getValue();
              muc.invite(jid,reason);
            }
          });
View Full Code Here

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    InputDialog dialog = new InputDialog(HandlerUtil.getActiveWorkbenchWindow(event).getShell(),
                      Messages.getString("CopyPlaylistHandler.Title"), Messages.getString("CopyPlaylistHandler.Question"), Messages.getString("CopyPlaylistHandler.DefaultValue"), new PlaylistNameValidator()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
   
    int result = dialog.open();
   
    if (result == InputDialog.OK) {
     
      String playlistName;
      IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();           
View Full Code Here

    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
   
    InputDialog dialog = new InputDialog(HandlerUtil.getActiveWorkbenchWindow(event).getShell(),
        Messages.getString("MenuRenamePlaylistHandler.Title"), Messages.getString("MenuRenamePlaylistHandler.Question"), Messages.getString("MenuCopyPlaylistHandler.DefaultValue"), new PlaylistNameValidator()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

    int result = dialog.open();

    if (result == InputDialog.OK) {
     
      ISelection selection = window.getActivePage().getSelection();
     
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.