public final class ProjectUISupport extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
static String |
showVMOptionCustomizer(Window owner,
String options)
Opens the java VM Options customizer.
|
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)
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.original
- the original nodehelper
- used for implementing Remove Classpath action or null if
the node should not have the Remove Classpath actionclassPathId
- ant property name of classpath to which these classpath root belongs or null if
the node should not have the Remove Classpath actionentryId
- ant property name of this classpath root or null if
the node should not have Remove Classpath actionpublic static SourceGroup createLibrariesSourceGroup(FileObject root, String displayName, Icon icon, Icon openIcon)
SourceGroup
implementation which can be passed to
PackageView.createPackageView(SourceGroup)
.root
- the classpath rootdisplayName
- the display name presented to usericon
- closed iconopenIcon
- opened iconpublic static AbstractAction createPreselectPropertiesAction(Project project, String nodeName, String panelName)
@NonNull public static String showVMOptionCustomizer(Window owner, String options) throws Exception
owner
- the customizer dialog owneroptions
- the origin options to be preselected in the customizerException
- if it isn't possible to parse the vm options.