Examples of open()


Examples of org.eclipse.ui.internal.misc.ExternalEditor.open()

                  .getPath());
            } else {
              // open using command
              ExternalEditor oEditor = new ExternalEditor(
                  pathInput.getPath(), desc);
              oEditor.open();
            }
          } catch (CoreException e) {
            ex[0] = e;
          }
        }
View Full Code Here

Examples of org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.open()

            WorkbenchMessages.EditorManager_openNewEditorLabel }, 0);
    int result = dialog.open();
    if (result == 0) { // YES
      ProgressMonitorDialog pmd = new ProgressMonitorJobsDialog(dialog
          .getShell());
      pmd.open();
      dirtyEditor.getEditor(true).doSave(pmd.getProgressMonitor());
      pmd.close();
    } else if ((result == 2) || (result == -1)) {
      return null;
    }
View Full Code Here

Examples of org.eclipse.ui.texteditor.templates.TemplatePreferencePage.EditTemplateDialog.open()

   * @param isNameModifiable <code>true</code> if the template name may be modified
   * @return the created or modified template, or <code>null</code> if the editing failed
   */
  protected Template editTemplate(Template template, boolean edit, boolean isNameModifiable) {
    EditTemplateDialog dialog= new EditTemplateDialog(getShell(), template, edit, isNameModifiable, getContextTypeRegistry());
    if (dialog.open() == Window.OK)
      return dialog.getTemplate();
    return null;
  }

  /**
 
View Full Code Here

Examples of org.eclipse.ui.views.tasklist.TaskPropertiesDialog.open()

    Map attributes= getInitialAttributes();

    TaskPropertiesDialog dialog= new TaskPropertiesDialog(getTextEditor().getSite().getShell());
    dialog.setResource(resource);
    dialog.setInitialAttributes(attributes);
    dialog.open();
  }
}
View Full Code Here

Examples of org.eclipse.wst.common.ui.internal.dialogs.SelectSingleFileDialog.open()

    dialog.create();
    dialog.getShell().setText(XMLCatalogMessages.UI_LABEL_IMPORT_DIALOG_TITLE);
    dialog.setTitle(XMLCatalogMessages.UI_LABEL_IMPORT_DIALOG_HEADING);
    dialog.setMessage(XMLCatalogMessages.UI_LABEL_IMPORT_DIALOG_MESSAGE);
    dialog.setBlockOnOpen(true);
    int rc = dialog.open();
    if (rc == Window.OK) {
      IFile file = dialog.getFile();
      if (file != null) {
        String fileName = file.getLocation().toFile().toURI().toString();
        try {
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.UnknownContentTypeDialog.open()

     * if preferences allow, then try to get model again
     */
    if(model == null &&  SSEUIPlugin.getDefault().getPreferenceStore().getBoolean(EditorPreferenceNames.SHOW_UNKNOWN_CONTENT_TYPE_MSG)) {
      // display a dialog informing user of unknown content type giving them chance to update preferences
      UnknownContentTypeDialog dialog = new UnknownContentTypeDialog(getSite().getShell(), SSEUIPlugin.getDefault().getPreferenceStore(), EditorPreferenceNames.SHOW_UNKNOWN_CONTENT_TYPE_MSG);
      dialog.open();

      //try to get model again in hopes user updated preferences
      super.doSetInput(input);
      model = tryToGetModel(input);
     
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.contentassist.OptionalMessageDialog.open()

          buttons[0]= createButton(parent, restoreId, restoreButtonLabel, false);
              buttons[1]= createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true);
              setButtons(buttons);
        }
          };
          int returnValue = dialog.open();
         
          //based on user actions either reset defaults or open preference dialog
          if (restoreId == returnValue || settingsId == returnValue) {
            if (restoreId == returnValue) {
              propertiesExtension.loadDefaults();
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.filter.OutlineCustomFiltersDialog.open()

  }

  public void openDialog() {
    OutlineCustomFiltersDialog dialog = new OutlineCustomFiltersDialog(fViewer.getControl().getShell(), fTargetId, areUserDefinedPatternsEnabled(), fUserDefinedPatterns, internalGetEnabledFilterIds());

    if (dialog.open() == Window.OK) {

      setEnabledFilterIds(dialog.getEnabledFilterIds());
      setUserDefinedPatternsEnabled(dialog.areUserDefinedPatternsEnabled());
      setUserDefinedPatterns(dialog.getUserDefinedPatterns());
      storeViewDefaults();
View Full Code Here

Examples of org.eclipse.wst.xml.ui.internal.actions.CleanupDialogXML.open()

        textEditor = (ITextEditor) o;
    }
    if (textEditor != null) {
      final ITextEditor finalTextEditor = textEditor;
      Dialog cleanupDialog = new CleanupDialogXML(editor.getSite().getShell());
      if (cleanupDialog.open() == Window.OK) {
        // setup runnable
        Runnable runnable = new Runnable() {
          public void run() {
            IStructuredCleanupProcessor cleanupProcessor = getCleanupProcessor();
            if (cleanupProcessor != null) {
View Full Code Here

Examples of org.eclipse.wst.xml.ui.internal.dialogs.EditAttributeDialog.open()

      manager.beginNodeAction(this);
      EditAttributeDialog dialog = new EditAttributeDialog(shell, ownerElement, attr);
      dialog.create();
      dialog.getShell().setText(title);
      dialog.setBlockOnOpen(true);
      dialog.open();
 
      if (dialog.getReturnCode() == Window.OK) {
        if (attr != null) {
          ownerElement.removeAttributeNode(attr);
        }
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.