Class TaskFactoryUtils
java.lang.Object
de.funfried.netbeans.plugins.external.formatter.ui.editor.TaskFactoryUtils
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.netbeans.modules.editor.indent.spi.IndentTask.Factory
getDefaultIndentTaskForMimePath
(String mimePath) Returns the cached default implementation ofIndentTask.Factory
for the givenmimePath
.org.netbeans.modules.editor.indent.spi.ReformatTask.Factory
getDefaultReformatTaskForMimePath
(String mimePath) Returns the cached default implementation ofReformatTask.Factory
for the givenmimePath
.
-
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 ofIndentTask.Factory
for the givenmimePath
.- Parameters:
mimePath
- the mime path for which to get theIndentTask.Factory
- Returns:
- the cached default implementation of
IndentTask.Factory
for the givenmimePath
-
getDefaultReformatTaskForMimePath
@NonNull public org.netbeans.modules.editor.indent.spi.ReformatTask.Factory getDefaultReformatTaskForMimePath(String mimePath) Returns the cached default implementation ofReformatTask.Factory
for the givenmimePath
.- Parameters:
mimePath
- the mime path for which to get theReformatTask.Factory
- Returns:
- the cached default implementation of
ReformatTask.Factory
for the givenmimePath
-