Examples of IEnvironment


Examples of org.eclipse.dltk.core.environment.IEnvironment

    // return environments[fEnvironment.getSelectionIndex()];
    return environments[localEnv];
  }

  public void changeControlPressed(DialogField field) {
    IEnvironment environment = getEnvironment();
    IEnvironmentUI environmentUI = (IEnvironmentUI) environment
        .getAdapter(IEnvironmentUI.class);
    if (environmentUI != null) {
      String selectedDirectory = environmentUI.selectFolder(shell);

      if (selectedDirectory != null) {
View Full Code Here

Examples of org.eclipse.dltk.core.environment.IEnvironment

      final boolean checked = fWorkspaceRadio.isSelected();
      if (checked) {
        fPreviousExternalLocation = fLocation.getText();
        fLocation.setText(getDefaultPath(fNameGroup.getName()));
      } else {
        IEnvironment environment = this.getEnvironment();
        if (environment != null && environment.isLocal()) {
          fLocation.setText(fPreviousExternalLocation);
        } else {
          fLocation.setText(""); //$NON-NLS-1$
        }
      }
View Full Code Here

Examples of org.eclipse.dltk.core.environment.IEnvironment

    }
    return FileLocator.toFileURL(url).getFile();
  }

  private void checkRutaInterpreter() throws IOException, CoreException {
    IEnvironment localEnv = LocalEnvironment.getInstance();
    DefaultInterpreterEntry defaultInterpreterEntry = new DefaultInterpreterEntry(
            RutaNature.NATURE_ID, localEnv.getId());
    IInterpreterInstall defaultInterpreterInstall = ScriptRuntime.getDefaultInterpreterInstall(defaultInterpreterEntry);
    IFileHandle rawInstallLocation = defaultInterpreterInstall.getRawInstallLocation();
    if(!rawInstallLocation.exists()) {
      String pluginIdToJarPath = pluginIdToJarPath(RutaIdePlugin.PLUGIN_ID);
      FileAsFileHandle fh = new FileAsFileHandle(new File(pluginIdToJarPath));
View Full Code Here

Examples of org.eclipse.dltk.core.environment.IEnvironment

  }

  private void libaryPageCustomButtonPressed(DialogField field, int index) {
    BPListElement[] libentries = null;

    IEnvironment environment = EnvironmentManager
        .getEnvironment(this.fCurrJProject);
    switch (index - IDX_ADD) {
    case IDX_ADDZIP: /* add archive */
      if (fWithZip) {
        libentries = openZipFileDialog(null);
View Full Code Here

Examples of org.eclipse.dltk.core.environment.IEnvironment

    switch (elem.getEntryKind()) {
    case IBuildpathEntry.BPE_CONTAINER:
      res = openContainerSelectionDialog(elem);
      break;
    case IBuildpathEntry.BPE_LIBRARY:
      IEnvironment environment = EnvironmentManager
          .getEnvironment(this.scriptProject);
      IResource resource = elem.getResource();
      if (resource == null) {
        if (Util.isArchiveFileName(elem.getPath().toOSString())) {
          res = openExtZipFileDialog(elem, environment);
View Full Code Here

Examples of org.eclipse.dltk.core.environment.IEnvironment

    PlatformUI.getWorkbench().getHelpSystem()
        .setHelp(parent, IPHPHelpContextIds.CREATING_PHP_PROJECTS);
  }

  public URI getLocationURI() {
    IEnvironment environment = getEnvironment();
    return environment.getURI(fPHPLocationGroup.getLocation());
  }
View Full Code Here

Examples of org.eclipse.dltk.core.environment.IEnvironment

        return;
      }
      // If we do not place the contents in the workspace validate the
      // location.
      if (!fPHPLocationGroup.isInWorkspace()) {
        IEnvironment environment = getEnvironment();
        if (EnvironmentManager.isLocal(environment)) {
          final IStatus locationStatus = workspace
              .validateProjectLocation(handle, projectPath);
          File file = projectPath.toFile();
          if (!locationStatus.isOK()) {
View Full Code Here

Examples of org.eclipse.dltk.core.environment.IEnvironment

    public void update(Observable o, Object arg) {
      fireEvent();
    }

    public void changeControlPressed(DialogField field) {
      IEnvironment environment = getEnvironment();
      IEnvironmentUI environmentUI = (IEnvironmentUI) environment
          .getAdapter(IEnvironmentUI.class);
      if (environmentUI != null) {
        String selectedDirectory = environmentUI
            .selectFolder(getShell());
View Full Code Here

Examples of org.eclipse.dltk.core.environment.IEnvironment

      IPath location = fPHPLocationGroup.getLocation();
      if (fPHPLocationGroup.isInWorkspace()) {
        if (!isValidProjectName(fGroupName.getName())) {
          fDetect = false;
        } else {
          IEnvironment environment = fPHPLocationGroup
              .getEnvironment();
          final IFileHandle directory = environment.getFile(location
              .append(fGroupName.getName()));
          fDetect = directory.isDirectory();
        }
      } else {
        IEnvironment environment = fPHPLocationGroup.getEnvironment();
        if (location.toPortableString().length() > 0) {
          final IFileHandle directory = environment.getFile(location);
          fDetect = directory.isDirectory()
              && directory.getPath().toFile().exists();
        }
      }
      if (oldDetectState != fDetect) {
View Full Code Here

Examples of org.eclipse.dltk.core.environment.IEnvironment

    setChanged();
    notifyObservers();
  }

  protected String getDefaultPath(String name) {
    IEnvironment environment = this.getEnvironment();
    if (environment != null && environment.isLocal()) {
      final IPath path = Platform.getLocation().append(name);
      return path.toOSString();
    } else {
      return ""; //$NON-NLS-1$
    }
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.