Package ca.cgjennings.ui.textedit
Class HtmlCodeSupport
- java.lang.Object
-
- ca.cgjennings.ui.textedit.DefaultCodeSupport
-
- ca.cgjennings.ui.textedit.HtmlCodeSupport
-
- All Implemented Interfaces:
CodeSupport
public class HtmlCodeSupport extends DefaultCodeSupport
Code support for HTML markup.- Since:
- 3.4
- Author:
- Chris Jennings
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HtmlCodeSupport.HtmlNavigator
ANavigator
implementation for HTML files.
-
Constructor Summary
Constructors Constructor Description HtmlCodeSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Formatter
createFormatter()
Creates a suitable code formatter for the specified code type.Navigator
createNavigator(NavigationHost host)
Creates a suitable navigator panel for the specified code editor.void
install(CodeEditorBase editor)
Adds support for a code type to the editor.void
uninstall(CodeEditorBase editor)
Removes the previously added support.-
Methods inherited from class ca.cgjennings.ui.textedit.DefaultCodeSupport
fileChanged, languageIdFor
-
-
-
-
Method Detail
-
install
public void install(CodeEditorBase editor)
Description copied from interface:CodeSupport
Adds support for a code type to the editor.- Specified by:
install
in interfaceCodeSupport
- Overrides:
install
in classDefaultCodeSupport
-
uninstall
public void uninstall(CodeEditorBase editor)
Description copied from interface:CodeSupport
Removes the previously added support.- Specified by:
uninstall
in interfaceCodeSupport
- Overrides:
uninstall
in classDefaultCodeSupport
-
createNavigator
public Navigator createNavigator(NavigationHost host)
Description copied from interface:CodeSupport
Creates a suitable navigator panel for the specified code editor.- Specified by:
createNavigator
in interfaceCodeSupport
- Overrides:
createNavigator
in classDefaultCodeSupport
- Returns:
- the new navigator suited to the supported code type, or null if none is supported.
-
createFormatter
public Formatter createFormatter()
Description copied from interface:CodeSupport
Creates a suitable code formatter for the specified code type.- Specified by:
createFormatter
in interfaceCodeSupport
- Overrides:
createFormatter
in classDefaultCodeSupport
- Returns:
- a formatter that tidies source code, or null if none is available
-
-