Class ProjectRendererCustomizer

java.lang.Object
ro.sync.exml.workspace.api.standalone.project.ProjectRendererCustomizer

@API(type=EXTENDABLE, src=PUBLIC) public abstract class ProjectRendererCustomizer extends Object
Base class which can be extended to customize the rendering of the files from the Project view in the stand-alone Oxygen installation.
Since:
20
  • Constructor Details

    • ProjectRendererCustomizer

      public ProjectRendererCustomizer()
  • Method Details

    • getDecorationIcon

      public Icon getDecorationIcon(File projectFile)
      Get the decoration icon for a certain file shown in the Project view. This callback comes very often, each time the Project Swing JTree is repainted, so the developers implementing it need to develop their own internal caches.
      Parameters:
      projectFile - The file in the Project view.
      Returns:
      the decoration icon or null if the default should be used instead. The decoration icon should be about 10x10 pixels.
    • getTooltip

      public String getTooltip(File projectFile, String defaultTooltip)
      Get the custom tooltip for a certain file shown in the Project view. This callback comes very often, each time the Project Swing JTree is repainted, so the developers implementing it need to develop their own internal caches.
      Parameters:
      projectFile - The file in the Project view.
      defaultTooltip - The default tooltip.
      Returns:
      the custom tooltip for a certain File shown in the Project view or null if the default should be used instead.
    • getName

      public String getName(File projectFile, String defaultName)
      Get the custom name for a certain file shown in the Project view. This callback comes very often, each time the Project Swing JTree is repainted, so the developers implementing it need to develop their own internal caches.
      Parameters:
      projectFile - The file in the Project view.
      defaultName - The default name.
      Returns:
      the custom name for a certain File shown in the Project view or null if the default should be used instead.