Package com.intellij.openapi.roots

Examples of com.intellij.openapi.roots.CompilerProjectExtension



  @Nullable
  private static VirtualFile getProjectOutputPath(@NotNull final Module module) {
    final Project project = module.getProject();
    final CompilerProjectExtension compilerProjectExtension = CompilerProjectExtension.getInstance(project);
    if (compilerProjectExtension != null) {
      return compilerProjectExtension.getCompilerOutput();
    }
    return null;
  }
View Full Code Here


    myDefaultStartLevel.setValue(osgiRunConfiguration.getDefaultStartLevel());

    boolean useUserDefinedFields = !osgiRunConfiguration.isGenerateWorkingDir();
    myWorkingDirField.setText(osgiRunConfiguration.getWorkingDir());
    if (myWorkingDirField.getText().length() == 0) {
      final CompilerProjectExtension extension = CompilerProjectExtension.getInstance(myProject);
      if (extension != null) {
        final VirtualFilePointer outputDirPointer = extension.getCompilerOutputPointer();
        if (outputDirPointer != null) {
          myWorkingDirField.setText(VfsUtilCore.urlToPath(outputDirPointer.getUrl() + "/run.osgi/"));
        }
      }
    }
View Full Code Here

   * @param project the project for which the output path should be returned
   * @return the output path.
   */
  @NotNull
  public static String getDefaultBundlesOutputPath(Project project) {
    CompilerProjectExtension instance = CompilerProjectExtension.getInstance(project);
    if (instance != null) {
      final VirtualFilePointer compilerOutput = instance.getCompilerOutputPointer();
      if (compilerOutput != null) {
        return VfsUtilCore.urlToPath(compilerOutput.getUrl()) + "/bundles";
      }
    }
    // this actually should never happen (only in tests)
View Full Code Here

TOP

Related Classes of com.intellij.openapi.roots.CompilerProjectExtension

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.