Class NodeUtils
java.lang.Object
org.netbeans.modules.maven.spi.nodes.NodeUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Image
getTreeFolderIcon
(boolean opened) Returns default folder icon asImage
.static void
openPomFile
(org.openide.filesystems.FileObject fo) open pom file for given FileObject, for items from local repository creates a read-only FO.static org.openide.filesystems.FileObject
readOnlyLocalRepositoryFile
(org.openide.filesystems.FileObject file) Produces a variant of a file in the local repository that the IDE will consider read-only.
-
Field Details
-
ICON_DEPENDENCY_JAR
Deprecated.since 2.93, please use the version fromIconResources
Icon for a dependency JAR file.- Since:
- 2.37
- See Also:
-
-
Method Details
-
getTreeFolderIcon
-
readOnlyLocalRepositoryFile
public static org.openide.filesystems.FileObject readOnlyLocalRepositoryFile(org.openide.filesystems.FileObject file) Produces a variant of a file in the local repository that the IDE will consider read-only. You can then useOpenCookie
orEditCookie
to open in a read-only text editor window.- Parameters:
file
- a file possibly in the local repository- Returns:
- the same file but from a transient r/o filesystem; or the original file, if a folder or not in the local repository
- Since:
- 2.10
-
openPomFile
public static void openPomFile(org.openide.filesystems.FileObject fo) open pom file for given FileObject, for items from local repository creates a read-only FO.- Parameters:
fo
-- Since:
- 2.67
-
IconResources