Examples of open()


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

  public void run(IAction action) {

    MessageBox msgBox = new MessageBox(new Shell(), SWT.ICON_QUESTION | SWT.YES | SWT.NO);
    msgBox.setText("Are you really sure?");
    msgBox.setMessage("Are you really sure that you want to sort the labelfile: \n" + _file.getFullPath());
    int response = msgBox.open();

    if (response == SWT.YES) {

      SortedProperties sortedProperties = new SortedProperties();
      sortedProperties.putAll(_props);
View Full Code Here

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

           
            Utils.centreWindow(shell);
            if (parentShell != null) {
              parentShell.setCursor(shell.getDisplay().getSystemCursor(SWT.CURSOR_ARROW));
            }
            shell.open();
           
          } else if (text.startsWith("set-size")){
           
            String[] strings = text.split(" ");
           
View Full Code Here

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

    // Ignore any deactivate events caused by opening the tracker.
    // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=120656
    boolean oldListenToDeactivate = listenToDeactivate;
    listenToDeactivate = false;
    if (tracker.open()) {
      if (!shell.isDisposed()) {
        shell.setBounds(tracker.getRectangles()[0]);
      }
    }
    tracker.dispose();
View Full Code Here

Examples of org.eclipse.team.internal.ccvs.core.client.Session.open()

    final FolderSyncInfo info = folder.getFolderSyncInfo();
    final ICVSRepositoryLocation location = KnownRepositories.getInstance().getRepository(
        info.getRoot());

    final Session session = new Session(location, folder, true /* output to console */);
    session.open(Policy.subMonitorFor(monitor, 10), false /* read-only */);
    try {
      final Command.QuietOption quietness = CVSProviderPlugin.getPlugin().getQuietness();
      try {
        CVSProviderPlugin.getPlugin().setQuietness(Command.VERBOSE);
        final Command.LocalOption[] localOption;
View Full Code Here

Examples of org.eclipse.ui.dialogs.CheckedTreeSelectionDialog.open()

            "Namespace Paths",
            "Select folders:",
            new Class[] {IFolder.class},
            project, folders);

        if (dialog.open() == Dialog.OK) {
          namespace.clear();
          for (Object result : dialog.getResult()) {
            if (result instanceof IFolder) {
              namespace.add(((IFolder)result).getProjectRelativePath().toString());
            }
View Full Code Here

Examples of org.eclipse.ui.dialogs.ContainerSelectionDialog.open()

                        return "The folder must be contained in the " + project.getName() + " project";
                    }
                });

                dialog.open();

                Object[] results = dialog.getResult();
                if (results == null) {
                    return;
                }
View Full Code Here

Examples of org.eclipse.ui.dialogs.EditorSelectionDialog.open()

        EditorSelectionDialog dialog = new EditorSelectionDialog(getControl()
                .getShell());
        dialog.setEditorsToFilter(getAssociatedEditors());
        dialog
                .setMessage(NLS.bind(WorkbenchMessages.Choose_the_editor_for_file,getSelectedResourceType().getLabel() ));
        if (dialog.open() == Window.OK) {
            EditorDescriptor editor = (EditorDescriptor) dialog
                    .getSelectedEditor();
            if (editor != null) {
                int i = editorTable.getItemCount();
                boolean isEmpty = i < 1;
View Full Code Here

Examples of org.eclipse.ui.dialogs.ElementListSelectionDialog.open()

    IPackageFragment pack = getPackageFragment();
    if (pack != null) {
      dialog.setInitialSelections(new Object[] { pack});
    }

    if (dialog.open() == Window.OK) {
      return (IPackageFragment) dialog.getFirstResult();
    }
    return null;
  }
View Full Code Here

Examples of org.eclipse.ui.dialogs.ElementTreeSelectionDialog.open()

            }
        }
        if (preSelection != null) {
            dialog.setInitialSelection(preSelection);
        }
        int result = dialog.open();
        if (result == Dialog.OK) {
            IFile selection = (IFile) dialog.getFirstResult();
            textControl.setText(helper.computeTMLReference(selection));
        }
    }
View Full Code Here

Examples of org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.open()

            public void run() {
                FilteredItemsSelectionDialog dialog;
                try {
                    dialog = new CharsetSelectionDialog(display.getActiveShell(), false,
                            getCharset(services[0]).name());
                    dialog.open();
                    final Charset newCharset = (Charset) dialog.getFirstResult();

                    if( newCharset!=null){
                        setNewCharset(services, newCharset);
                    }
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.