当前位置: 首页>>代码示例>>Java>>正文


Java MimeRegistration类代码示例

本文整理汇总了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;
        }
    };
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:HintDataObject.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:LessLanguage.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:ScssLanguage.java

示例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;
}
 
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:12,代码来源:NiftyGUIPaletteFactory.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:JavaBinaryIndexer.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:JavaCustomIndexer.java

示例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;
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:5,代码来源:ParserDebuggerParserDataDefinitions.java

示例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;
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:5,代码来源:ParserDebuggerParserDataDefinitions.java

示例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;
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:5,代码来源:ParserDebuggerParserDataDefinitions.java

示例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;
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:5,代码来源:GrammarParserDataDefinitions.java

示例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;
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:5,代码来源:GrammarParserDataDefinitions.java

示例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;
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:5,代码来源:GrammarParserDataDefinitions.java

示例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;
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:5,代码来源:GrammarParserDataDefinitions.java

示例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;
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:5,代码来源:GrammarParserDataDefinitions.java

示例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;
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:5,代码来源:GrammarParserDataDefinitions.java


注:本文中的org.netbeans.api.editor.mimelookup.MimeRegistration类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。