Package org.eclipse.dltk.core.environment

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


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

  private void checkRutaInterpreter() throws IOException, CoreException {
    // TODO move this method... it is called way too early when eclipse starts
    IEnvironment localEnv = LocalEnvironment.getInstance();
    DefaultInterpreterEntry defaultInterpreterEntry = new DefaultInterpreterEntry(
            RutaNature.NATURE_ID, localEnv.getId());
    IInterpreterInstall defaultInterpreterInstall = null;
    try {
      defaultInterpreterInstall = ScriptRuntime
              .getDefaultInterpreterInstall(defaultInterpreterEntry);
    } catch (Exception e) {
View Full Code Here


    checkLibLocations(libLocations, compilerPath.removeLastSegments(3),
      "include/d/dmd/druntime/import", "include/d/dmd/phobos")
  }
 
  public static LibraryLocation[] getLibraryLocations(CommonInstallType dmdInstallType, Path compilerPath) {
    IEnvironment env = LocalEnvironment.getInstance();
    IFileHandle file = PlatformFileUtils.findAbsoluteOrEclipseRelativeFile(env, compilerPath);
    return dmdInstallType.getDefaultLibraryLocations(file);
  }
View Full Code Here

    return new CommonDeeInstall(this, id);
  }
 
  @Override
  protected void addDefaultLibraryLocations(IFileHandle executableLocation, List<LibraryLocation> locs) {
    IEnvironment env = executableLocation.getEnvironment();
   
    final IPath exePath = executableLocation.getPath();
    final IPath dmdZipInstallPath = exePath.removeLastSegments(3);
   
    if(checkForDMD2InstallLocation(locs, env, dmdZipInstallPath.append("src")))
View Full Code Here

    }
  }
 
  @Override
  protected void addDefaultLibraryLocations(IFileHandle executableLocation, List<LibraryLocation> locs) {
    IEnvironment env = executableLocation.getEnvironment();
    IPath installPath = executableLocation.getPath().removeLastSegments(2);
   
    if(tryDLibFolder(locs, env, installPath.append("include/d"))) {
      return;
    }
View Full Code Here

    return new CommonDeeInstall(this, id);
  }
 
  @Override
  protected void addDefaultLibraryLocations(IFileHandle executableLocation, List<LibraryLocation> locs) {
    IEnvironment env = executableLocation.getEnvironment();
    IPath installPath = executableLocation.getPath().removeLastSegments(2);
   
    tryLDCLibFolder(locs, env, installPath);
  }
View Full Code Here

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

    fireEvent();
  }

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

      if (selectedDirectory != null) {
        DLTKUIPlugin.getDefault().getDialogSettings().put(DIALOGSTORE_LAST_EXTERNAL_LOC, selectedDirectory);
View Full Code Here

      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

    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

    // 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

TOP

Related Classes of org.eclipse.dltk.core.environment.IEnvironment

Copyright © 2018 www.massapicom. 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.