Class NodeUtils

java.lang.Object
org.netbeans.modules.maven.spi.nodes.NodeUtils

public class NodeUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated.
    since 2.93, please use the version from IconResources
  • Method Summary

    Modifier and Type
    Method
    Description
    static Image
    getTreeFolderIcon(boolean opened)
    Returns default folder icon as Image.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ICON_DEPENDENCY_JAR

      @Deprecated public static final String ICON_DEPENDENCY_JAR
      Deprecated.
      since 2.93, please use the version from IconResources
      Icon for a dependency JAR file.
      Since:
      2.37
      See Also:
  • Method Details

    • getTreeFolderIcon

      public static Image getTreeFolderIcon(boolean opened)
      Returns default folder icon as Image. Never returns null.
      Parameters:
      opened - wheter closed or opened icon should be returned.
    • 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 use OpenCookie or EditCookie 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