org.netbeans.modules.java.api.common/0 1.37

org.netbeans.modules.java.api.common.project.ui
Class ProjectUISupport

java.lang.Object
  extended by org.netbeans.modules.java.api.common.project.ui.ProjectUISupport

public final class ProjectUISupport
extends Object

Misc project UI helper methods.

Since:
org.netbeans.modules.java.api.common/1 1.5

Method Summary
static FilterNode createFilteredLibrariesNode(Node original, UpdateHelper helper, String classPathId, String entryId, String webModuleElementName, ClassPathSupport cs, ReferenceHelper rh)
          Creates a filtered node for class path root.
static SourceGroup createLibrariesSourceGroup(FileObject root, String displayName, Icon icon, Icon openIcon)
          Creates SourceGroup implementation which can be passed to PackageView.createPackageView(SourceGroup).
static AbstractAction createPreselectPropertiesAction(Project project, String nodeName, String panelName)
          Create action which opens project properties on the given panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFilteredLibrariesNode

public static FilterNode createFilteredLibrariesNode(@NonNull
                                                     Node original,
                                                     @NullAllowed
                                                     UpdateHelper helper,
                                                     @NullAllowed
                                                     String classPathId,
                                                     @NullAllowed
                                                     String entryId,
                                                     @NullAllowed
                                                     String webModuleElementName,
                                                     @NullAllowed
                                                     ClassPathSupport cs,
                                                     @NullAllowed
                                                     ReferenceHelper rh)
Creates a filtered node for class path root. Created node decorates package nodes and file nodes under the Libraries Nodes. It removes all actions from these nodes except of file node's OpenAction and package node's FindAction. It also adds Show Javadoc action to both file and package nodes. It also adds Remove Root action to class path roots.

Parameters:
original - the original node
helper - used for implementing Remove Classpath action or null if the node should not have the Remove Classpath action
classPathId - ant property name of classpath to which these classpath root belongs or null if the node should not have the Remove Classpath action
entryId - ant property name of this classpath root or null if the node should not have Remove Classpath action
Returns:
filter node

createLibrariesSourceGroup

public static SourceGroup createLibrariesSourceGroup(FileObject root,
                                                     String displayName,
                                                     Icon icon,
                                                     Icon openIcon)
Creates SourceGroup implementation which can be passed to PackageView.createPackageView(SourceGroup).

Parameters:
root - the classpath root
displayName - the display name presented to user
icon - closed icon
openIcon - opened icon
Returns:

createPreselectPropertiesAction

public static AbstractAction createPreselectPropertiesAction(Project project,
                                                             String nodeName,
                                                             String panelName)
Create action which opens project properties on the given panel.


org.netbeans.modules.java.api.common/0 1.37

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.