| org.netbeans.modules.gsf.Language
All known Subclasses: org.netbeans.modules.gsf.DefaultLanguage,
getBracketCompletion | BracketCompletion getBracketCompletion()(Code) | | Get a BracketCompletion helper, if any, for helping with bracket completion
|
getColoringManager | ColoringManager getColoringManager()(Code) | | Return the coloring manager for this language
|
getCompletionProvider | Completable getCompletionProvider()(Code) | | Get a code completion handler, if any
|
getDeclarationFinder | DeclarationFinder getDeclarationFinder()(Code) | | Get a Declaration finder, if any, for resolving declarations for a given identifier
|
getDisplayName | String getDisplayName()(Code) | | Return the display-name (user visible, and localized) name of this language.
It should be brief (one or two words). For example "Java", "C++", "Groovy",
"Visual Basic", etc.
|
getEditorActions | Action[] getEditorActions()(Code) | | Return Actions that will be provided in the editor context menu for this language.
|
getExtensions | String[] getExtensions()(Code) | | Return the set of common file extensions used for source files in this
type of language. It should not include the dot.
For example, for Java it would be { "java" }. For C++ it might
be { "cpp", "cc", "c++", "cxx" }. The first item in the array will be
considered the "primary" extension that will be used when creating new
files etc.
|
getFormatter | Formatter getFormatter()(Code) | | Get an Formatter, if any, for helping indent and reformat code
|
getGsfLanguage | GsfLanguage getGsfLanguage()(Code) | | Return a scanner (lexical analyzer, tokenizer) for use with this language.
|
getHintsProvider | HintsProvider getHintsProvider()(Code) | | Get an associated hints provider, if any
|
getIconBase | String getIconBase()(Code) | | Hmmmm this is a bit rough. The path would have to be relative to some resource...
I guess it would be relative to the specific plugin language class?
Example: "com/foo/bar/javascript.gif"
|
getIndexer | Indexer getIndexer()(Code) | | Get an associated indexer, if any
|
getInstantRenamer | InstantRenamer getInstantRenamer()(Code) | | Get a rename helper, if any, for instant renaming
|
getMimeType | String getMimeType()(Code) | | Return the mime-type of this language. For example text/x-java.
|
getOccurrencesFinder | OccurrencesFinder getOccurrencesFinder()(Code) | | Return the occurrences finder for this language
|
getParser | Parser getParser()(Code) | | Return a parser for use with this language. A parser is optional (in which
case getParser() may return null) but in that case a lot of functionality
will be disabled for this language.
|
getSemanticAnalyzer | SemanticAnalyzer getSemanticAnalyzer()(Code) | | Return the semantic analyzer for this language
|
getStructure | StructureScanner getStructure()(Code) | | Get a structure scanner which produces navigation/outline contents
|
useCustomEditorKit | boolean useCustomEditorKit()(Code) | | HACK: Some language supports may want to use their own editor kit
implementation (such as Schliemann) for some services. By returning
true here (which can be done by registering "useCustomEditorKit" on the
GsfPlugin folder for the mime type) GSF will not register its own editing
services for this mime type.
If you set this flag, you may need to register additional services on your
own. For example, if you still want GSF "Go To Declaration" functionality,
you need to register the GsfHyperlinkProvider.
The ruby/rhtml/ module provides an example of this.
NOTE: Code folding doesn't work until you enable code folding for your
editor kit; see GsfEditorKitFactory's reference to CODE_FOLDING_ENABLE for
an example.
|
|
|