Examples of open()


Examples of org.eclipse.cdt.core.model.ITranslationUnit.open()

          Services.getMessage("cdt.src.file.not.found", file));
    }

    // force sync w/ file on disk
    src.close();
    src.open(null);

    return src;
  }
}
View Full Code Here

Examples of org.eclipse.core.resources.IProject.open()

    if (project.exists()) {
      throwCoreException("A project with name '" + runtimeName + "' already exists in the workspace.");
    } else {
      // create project     
      project.create(new SubProgressMonitor(monitor, 1));     
      project.open(new SubProgressMonitor(monitor, 1));
     
      JDTUtils.addNature(project, WGADesignerPlugin.NATURE_WGA_RUNTIME);     
     
      _wgaRuntime = (WGARuntime) project.getNature(WGADesignerPlugin.NATURE_WGA_RUNTIME);
      _wgaRuntime.getConfiguration().setWgaDistribution(deployment.getName());
View Full Code Here

Examples of org.eclipse.datatools.connectivity.internal.ui.dialogs.DriverDialog.open()

            jdbcDriverDialog.setPropertySet(properties);
            jdbcDriverDialog.setEditMode(true);
            jdbcDriverDialog.setIsEditable(true);

            if (jdbcDriverDialog.open() == Window.OK) {
              properties = jdbcDriverDialog.getPropertySet();
              if (properties != null) {

                DriverManager.getInstance().addDriverInstance(properties);
                driverInstance = DriverManager.getInstance().getDriverInstanceByName(
View Full Code Here

Examples of org.eclipse.debug.internal.ui.MultipleInputDialog.open()

  protected void handleEnvAddButtonSelected() {
    MultipleInputDialog dialog = new MultipleInputDialog(getShell(), LaunchConfigurationsMessages.EnvironmentTab_22);
    dialog.addTextField(NAME_LABEL, null, false);
    dialog.addVariablesField(VALUE_LABEL, null, true);
   
    if (dialog.open() != Window.OK) {
      return;
    }
   
    String name = dialog.getStringValue(NAME_LABEL);
    String value = dialog.getStringValue(VALUE_LABEL);
View Full Code Here

Examples of org.eclipse.debug.internal.ui.actions.variables.ChangeVariableValueInputDialog.open()

      String initialValue = getValueString(variable);

      PrimitiveValidator validator = new PrimitiveValidator(variable);
      ChangeVariableValueInputDialog dialog = new ChangeVariableValueInputDialog(
          shell, title, message, initialValue, validator);
      if (dialog.open() == Window.OK) {
        String stringValue = dialog.getValue();
        variable.setValue(stringValue);
      } else {

      }
View Full Code Here

Examples of org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open()

    }
    else {
      dialog.setOpenMode(LAUNCH_CONFIGURATION_DIALOG_OPEN_ON_LAST_LAUNCHED);
    }

    dialog.open();
  }
 
  public static IStructuredSelection asStructuredSelection(Object object) {
    return new StructuredSelection(object);
  }
View Full Code Here

Examples of org.eclipse.debug.ui.DebugPopup.open()

                textEditor.getSelectionProvider().setSelection(originalSelection);
              }
              return returnValue;
            }
          };
      displayPopup.open();
    }

    private StyledText getStyledText(IWorkbenchPart part) {
      ITextViewer viewer = (ITextViewer) part.getAdapter(ITextViewer.class);
      StyledText textWidget = null;
View Full Code Here

Examples of org.eclipse.debug.ui.InspectPopupDialog.open()

                textEditor.getSelectionProvider().setSelection(originalSelection);
              }
              return returnValue;
            }
          };
      displayPopup.open();
    }

    private StyledText getStyledText(IWorkbenchPart part) {
      ITextViewer viewer = (ITextViewer) part.getAdapter(ITextViewer.class);
      StyledText textWidget = null;
View Full Code Here

Examples of org.eclipse.debug.ui.StringVariableSelectionDialog.open()

    private String getVariable()
    {
        StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(
            getShell());
        dialog.open();
        return dialog.getVariableExpression();
    }

    protected void setDefaultWorkingDir()
    {
View Full Code Here

Examples of org.eclipse.dltk.internal.ui.dialogs.OpenTypeSelectionDialog2.open()

        if (index == 0) {
          OpenTypeSelectionDialog2 dialog = getDialog(NewElementWizardPage.INTERFACES,
            "Interface selection",
            "Select interface",
            true);
          int result = dialog.open();
          if (result != IDialogConstants.OK_ID)
            return;
          Object[] types = dialog.getResult();
          for (Object type : types) {
            field.addElement((IType) type);
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.