Package org.eclipse.ui.dialogs

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


      }
    });
    dialog.setLabelProvider(new DecoratingLabelProvider(new WorkbenchLabelProvider(), SSEUIPlugin.getDefault().getWorkbench().getDecoratorManager().getLabelDecorator()));
    dialog.setInput(ResourcesPlugin.getWorkspace());
    dialog.setTitle(SSEUIMessages.PropertyPreferencePage_01);
    if (dialog.open() == Window.OK) {
      Object[] result = dialog.getResult();
      if (result.length > 0) {
        IProject project = (IProject) dialog.getResult()[0];
        Map data = new HashMap();
        data.put(DISABLE_LINK, Boolean.TRUE);
View Full Code Here


      }
    });
    dialog.setLabelProvider(new DecoratingLabelProvider(new WorkbenchLabelProvider(), SSEUIPlugin.getDefault().getWorkbench().getDecoratorManager().getLabelDecorator()));
    dialog.setInput(ResourcesPlugin.getWorkspace());
    dialog.setTitle(SSEUIMessages.PropertyPreferencePage_01);
    if (dialog.open() == Window.OK) {
      Object[] result = dialog.getResult();
      if (result.length > 0) {
        IProject project = (IProject) dialog.getResult()[0];
        Map data = new HashMap();
        data.put(DISABLE_LINK, Boolean.TRUE);
View Full Code Here

      }
    });
    dialog.setLabelProvider(new DecoratingLabelProvider(new WorkbenchLabelProvider(), SSEUIPlugin.getDefault().getWorkbench().getDecoratorManager().getLabelDecorator()));
    dialog.setInput(ResourcesPlugin.getWorkspace());
    dialog.setTitle(SSEUIMessages.PropertyPreferencePage_01);
    if (dialog.open() == Window.OK) {
      Object[] result = dialog.getResult();
      if (result.length > 0) {
        IProject project = (IProject) dialog.getResult()[0];
        Map data = new HashMap();
        data.put(DISABLE_LINK, Boolean.TRUE);
View Full Code Here

            dialog.setHelpAvailable( false );
            dialog.setAddCancelButton( true );
            dialog.setInput( dirtyEditorsList );

            // Opening the dialog
            if ( dialog.open() != Dialog.OK )
            {
                // Cancel
                return false;
            }
View Full Code Here

    });
    dialog.setAddCancelButton(false);
    dialog.setInput(ports);
    dialog.setMessage("Please choose a " + edgePort + ":");
    dialog.setTitle("Connection: " + connection);
    dialog.open();

    if (dialog.getResult() == null || dialog.getResult().length == 0) {
      return null;
    } else {
      return (String) dialog.getResult()[0];
View Full Code Here

    ListDialog dlg = new ListDialog(window.getShell());
    dlg.setTitle("Please select the project for which to create an architecture graph");
    dlg.setInput(javaProjects);
    dlg.setLabelProvider(new WorkbenchLabelProvider());
    dlg.setContentProvider(new ArrayContentProvider());
    if (dlg.open() == ListDialog.CANCEL) {
      return;
    }
   
    final Object[] selected = dlg.getResult();
    if (selected == null || selected.length == 0) {
View Full Code Here

        //nothing to do
      }             
    });
    docTypeListDialog.setLabelProvider(new LabelProvider());
    docTypeListDialog.setInput(XML_DOC_TYPES);
    if(docTypeListDialog.open() == Window.OK) {
      Object[] resultDocType = docTypeListDialog.getResult();
      if(resultDocType.length == 1) {
        final String docType = (String)resultDocType[0];
        ListDialog listFilterDialog = new ListDialog(shell);
        listFilterDialog.setMessage(Messages.OfficeEditorAdvisor_dialog_message_file_type);
View Full Code Here

            }
            return super.getText(element);
          }
        });
        listFilterDialog.setInput(filtersToUse);
        if(listFilterDialog.open() == Window.OK) {
          Object[] resultFilterType = listFilterDialog.getResult();
          if(resultFilterType.length == 1) {
            IFilter filterType = (IFilter)resultFilterType[0];
            documentDescriptor.setFilterDefinition(filterType.getFilterDefinition(docType));
          }
View Full Code Here

    dialog.setTitle(UIMessages.DumpExecutionDataDialog_title);
    dialog.setMessage(UIMessages.DumpExecutionDataDialog_message);
    dialog.setContentProvider(new ArrayContentProvider());
    dialog.setLabelProvider(new LaunchLabelProvider());
    dialog.setInput(launches);
    if (dialog.open() == Dialog.OK || dialog.getResult().length == 1) {
      return (ICoverageLaunch) dialog.getResult()[0];
    }
    return null;
  }
View Full Code Here

      }
    });
    dialog.setInitialElementSelections(Collections.singletonList(sessionManager
        .getActiveSession()));
    dialog.setInput(sessionManager.getSessions());
    if (dialog.open() == Dialog.OK) {
      final Object[] result = dialog.getResult();
      if (result.length == 1) {
        sessionManager.activateSession((ICoverageSession) result[0]);
      }
    }
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.