java.lang.Object
de.funfried.netbeans.plugins.external.formatter.ui.editor.TaskFactoryUtils

public class TaskFactoryUtils extends Object
Custom implementation of the IndentTask.Factory which delegates the indenting tasks to the configured external formatter or to the internal NetBeans formatter.
Author:
bahlef
  • Constructor Details

    • TaskFactoryUtils

      public TaskFactoryUtils()
  • Method Details

    • getDefaultIndentTaskForMimePath

      @NonNull public static org.netbeans.modules.editor.indent.spi.IndentTask.Factory getDefaultIndentTaskForMimePath(String mimePath)
      Returns the cached default implementation of IndentTask.Factory for the given mimePath.
      Parameters:
      mimePath - the mime path for which to get the IndentTask.Factory
      Returns:
      the cached default implementation of IndentTask.Factory for the given mimePath
    • getDefaultReformatTaskForMimePath

      @NonNull public org.netbeans.modules.editor.indent.spi.ReformatTask.Factory getDefaultReformatTaskForMimePath(String mimePath)
      Returns the cached default implementation of ReformatTask.Factory for the given mimePath.
      Parameters:
      mimePath - the mime path for which to get the ReformatTask.Factory
      Returns:
      the cached default implementation of ReformatTask.Factory for the given mimePath