Class ProjectManager.Result

java.lang.Object
org.netbeans.api.project.ProjectManager.Result
Enclosing class:
ProjectManager

public static final class ProjectManager.Result extends Object
A result (immutable) object returned from ProjectManager.isProject2(org.openide.filesystems.FileObject) method. To be created by ProjectFactory2 project factories.
Since:
org.netbeans.modules.projectapi 1.22
  • Constructor Details

    • Result

      public Result(Icon icon)
    • Result

      public Result(String displayName, String projectType, Icon icon)
      C'tor.
      Parameters:
      displayName - a display name or null if not available
      projectType - a project type or null if not available
      icon - an icon or null if not available
      Since:
      org.netbeans.modules.projectapi 1.60
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Get a human-readable display name for the project. May contain spaces, international characters, etc.
      Returns:
      a display name for the project or null if the display name cannot be found this way.
      Since:
      org.netbeans.modules.projectapi 1.60
    • getProjectType

      public String getProjectType()
      Get the project type e.g. "org-netbeans-modules-java-j2seproject"
      Returns:
      the project type or null if the project type cannot be found this way.
      Since:
      org.netbeans.modules.projectapi 1.60
    • getIcon

      public Icon getIcon()
      Get the project icon.
      Returns:
      project type icon for the result or null if the icon cannot be found this way.