本文整理汇总了Java中org.netbeans.api.editor.mimelookup.MimeRegistration类的典型用法代码示例。如果您正苦于以下问题:Java MimeRegistration类的具体用法?Java MimeRegistration怎么用?Java MimeRegistration使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MimeRegistration类属于org.netbeans.api.editor.mimelookup包,在下文中一共展示了MimeRegistration类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createEditorKit
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType=DeclarativeHintTokenId.MIME_TYPE, service=EditorKit.class)
public static NbEditorKit createEditorKit() {
return new NbEditorKit() {
@Override public String getContentType() {
return DeclarativeHintTokenId.MIME_TYPE;
}
};
}
示例2: getLanguageInstance
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType = "text/less", service = Language.class)
public static Language<CPTokenId> getLanguageInstance() {
if(INSTANCE == null) {
INSTANCE = new LessLanguage().language();
}
return INSTANCE;
}
示例3: getLanguageInstance
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType = "text/scss", service = Language.class)
public static Language<CPTokenId> getLanguageInstance() {
if(INSTANCE == null) {
INSTANCE = new ScssLanguage().language();
}
return INSTANCE;
}
示例4: createPalette
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType = "text/x-niftygui+xml", service = PaletteController.class)
public static PaletteController createPalette() {
if (null == palette){
AbstractNode paletteRoot = new AbstractNode(Children.create(new CategoryChildFactory(), true));
paletteRoot.setName("Palette Root");
palette = PaletteFactory.createPalette( paletteRoot,new MyActions(),null,new MyHandler());
}
return palette;
}
示例5: register
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType="", service=BinaryIndexerFactory.class)
public static Factory register() {
return NoJavacHelper.hasWorkingJavac() ? new Factory() : null;
}
示例6: register
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType="text/x-java", service=CustomIndexerFactory.class)
public static Factory register() {
return NoJavacHelper.hasWorkingJavac() ? new Factory() : null;
}
示例7: getFileParseResultDataDefinition
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType=ParserDebuggerEditorKit.PARSER_DEBUGGER_MIME_TYPE, service=ParserDataDefinition.class)
public static ParserDataDefinition<FileParseResult> getFileParseResultDataDefinition() {
return FILE_PARSE_RESULT;
}
示例8: getReferenceParseTreeDataDefinition
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType=ParserDebuggerEditorKit.PARSER_DEBUGGER_MIME_TYPE, service=ParserDataDefinition.class)
public static ParserDataDefinition<ParserRuleContext> getReferenceParseTreeDataDefinition() {
return REFERENCE_PARSE_TREE;
}
示例9: getLexerTokensDataDefinition
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType=ParserDebuggerEditorKit.PARSER_DEBUGGER_MIME_TYPE, service=ParserDataDefinition.class)
public static ParserDataDefinition<Tagger<TokenTag<Token>>> getLexerTokensDataDefinition() {
return LEXER_TOKENS;
}
示例10: getCompiledModelDataDefinition
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType=GrammarEditorKit.GRAMMAR_MIME_TYPE, service=ParserDataDefinition.class)
public static ParserDataDefinition<CompiledModel> getCompiledModelDataDefinition() {
return COMPILED_MODEL;
}
示例11: getReferenceAnchorPointsDataDefinition
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType=GrammarEditorKit.GRAMMAR_MIME_TYPE, service=ParserDataDefinition.class)
public static ParserDataDefinition<List<Anchor>> getReferenceAnchorPointsDataDefinition() {
return REFERENCE_ANCHOR_POINTS;
}
示例12: getReferenceParseTreeDataDefinition
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType=GrammarEditorKit.GRAMMAR_MIME_TYPE, service=ParserDataDefinition.class)
public static ParserDataDefinition<GrammarSpecContext> getReferenceParseTreeDataDefinition() {
return REFERENCE_PARSE_TREE;
}
示例13: getAnnotatedParseTreeDataDefinition
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType=GrammarEditorKit.GRAMMAR_MIME_TYPE, service=ParserDataDefinition.class)
public static ParserDataDefinition<GrammarAnnotatedParseTree> getAnnotatedParseTreeDataDefinition() {
return ANNOTATED_PARSE_TREE;
}
示例14: getDynamicAnchorPointsDataDefinition
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType=GrammarEditorKit.GRAMMAR_MIME_TYPE, service=ParserDataDefinition.class)
public static ParserDataDefinition<List<Anchor>> getDynamicAnchorPointsDataDefinition() {
return DYNAMIC_ANCHOR_POINTS;
}
示例15: getLexerTokensDataDefinition
import org.netbeans.api.editor.mimelookup.MimeRegistration; //导入依赖的package包/类
@MimeRegistration(mimeType=GrammarEditorKit.GRAMMAR_MIME_TYPE, service=ParserDataDefinition.class)
public static ParserDataDefinition<Tagger<TokenTag<Token>>> getLexerTokensDataDefinition() {
return LEXER_TOKENS;
}