• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ExtensionList类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.openide.loaders.ExtensionList的典型用法代码示例。如果您正苦于以下问题:Java ExtensionList类的具体用法?Java ExtensionList怎么用?Java ExtensionList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ExtensionList类属于org.openide.loaders包,在下文中一共展示了ExtensionList类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: initExtensions

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
final void initExtensions() {
    ExtensionList list = new ExtensionList();
    Set mimes = new HashSet<String>();
    for (Language language : LanguageRegistry.getInstance()) {
        
        if(language.useCustomEditorKit()) {
            //do not try to load files which has their own editor support and dataobject
            continue;
        }
        mimes.add(language.getMimeType());
        list.addMimeType(language.getMimeType());
    }
    setExtensions(list);
    registeredMimes = mimes;
    initialized = true;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:17,代码来源:GsfDataLoader.java


示例2: testOldLoaderThatChangesActionsBecomesModified

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
public void testOldLoaderThatChangesActionsBecomesModified () throws Exception {
    NbLoaderPool.waitFinished();
    
    DataObject first = DataObject.find(fo);
    assertTrue(first.getLoader().getClass().getName().contains("Default"));

    ExtensionList el = new ExtensionList();
    el.addExtension("prop");
    oldL.setExtensions(el);
    NbLoaderPool.waitFinished();
    
    
    DataObject snd = DataObject.find(fo);
    assertEquals("They are the same as nothing has been notified yet", first, snd);
    
    NbLoaderPool.installationFinished();
    NbLoaderPool.waitFinished();
    
    DataObject third = DataObject.find(fo);
    if (third == snd) {
        fail("They should not be the same: " + third);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:24,代码来源:NbLoaderPoolDeserTest.java


示例3: readExternal

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
/** Reads nothing from the stream.
* @param oi ignored
*/
@Override
public void readExternal (ObjectInput oi)
throws IOException, ClassNotFoundException {
    SafeException se;
    try {
        super.readExternal (oi);
        se = null;
    } catch (SafeException se2) {
        se = se2;
    }

    setExtensions ((ExtensionList)oi.readObject ());
    if (se != null) {
        throw se;
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:20,代码来源:PropertiesDataLoader.java


示例4: DummyItemLoader

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
DummyItemLoader() {
    super("org.netbeans.spi.palette.DummyItemDataObject"); // NOI18N

    ExtensionList ext = new ExtensionList();
    ext.addExtension(ITEM_EXT);
    setExtensions(ext);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:DummyItemLoader.java


示例5: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
/** Does initialization. Initializes extension list. */
protected void initialize () {
    super.initialize();

    ExtensionList ext = new ExtensionList();
    ext.addExtension("txt"); // NOI18N
    ext.addExtension("doc"); // NOI18N
    ext.addExtension("me"); // for read.me files // NOI18N
    ext.addExtension("policy"); // NOI18N
    ext.addExtension("mf"); // for manifest.mf files // NOI18N
    ext.addExtension("MF"); //  -""- // NOI18N
    ext.addExtension("log"); // log files are nice to be readable // NOI18N
    setExtensions(ext);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:15,代码来源:AnnotationProviderTest.java


示例6: PropertiesDataLoader

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
/** Creates new PropertiesDataLoader. */
public PropertiesDataLoader() {
    super("org.netbeans.modules.properties.PropertiesDataObject"); // NOI18N
    
    // Set extentions. Due performance reasons do it here instead in initialize method.
    // During startup it's in findPrimaryFile method called getExtensions method. If the 
    // extentions list was not set in constructor the initialize method would be called
    // during startup, but we want to avoid the initialize call since we don't need
    // actions and display name initialized during startup time.
    ExtensionList extList = new ExtensionList();
    extList.addExtension(PROPERTIES_EXTENSION);
    // Add .impl for CORBA module.
    extList.addExtension("impl"); // NOI18N
    setExtensions(extList);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:16,代码来源:PropertiesDataLoader.java


示例7: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
/** Does initialization. Initializes display name,
 * extension list and the actions. */
@Override
protected void initialize () {
    super.initialize();
    
    ExtensionList ext = getExtensions();
    ext.addExtension (ENT_EXT);
    ext.addMimeType (EntityDataObject.MIME_TYPE);
    ext.addMimeType ("application/xml-external-parsed-entity"); // http://www.ietf.org/rfc/rfc3023.txt // NOI18N
    setExtensions (ext);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:EntityDataLoader.java


示例8: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
@Override
protected void initialize() {
    super.initialize();
    ExtensionList extensions = new ExtensionList();
    extensions.addMimeType(SQL_MIME_TYPE);
    setExtensions(extensions);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SQLDataLoader.java


示例9: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
@Override
protected void initialize() {
    super.initialize();
    ExtensionList extensions = new ExtensionList();
    extensions.addExtension("sql");
    setExtensions(extensions);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:SQLEditorSupportConsoleTest.java


示例10: DummyDataLoader

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
public DummyDataLoader() {
    super("org.openidex.search.DummyDataObject");
    
    ExtensionList extList = new ExtensionList();
    extList.addExtension(dummyExt);
    setExtensions(extList);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:DummyDataLoader.java


示例11: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
@Override
protected void initialize() {
    super.initialize();
    ExtensionList extensions = new ExtensionList();
    extensions.addExtension(JAVA_EXTENSION);
    extensions.addMimeType(JAVA_MIME_TYPE);
    setExtensions(extensions);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:JavaDataLoader.java


示例12: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
/** Initizalized loader, i.e. its extension list. Overrides superclass method. */
@Override
protected void initialize () {
    super.initialize();

    ExtensionList extensions = new ExtensionList ();
    extensions.addMimeType(PDF_MIME_TYPE);
    extensions.addMimeType("application/x-pdf");                    //NOI18N
    extensions.addMimeType("application/vnd.pdf");                  //NOI18N
    extensions.addMimeType("application/acrobat");                  //NOI18N
    extensions.addMimeType("text/pdf");                             //NOI18N
    extensions.addMimeType("text/x-pdf");                           //NOI18N
    setExtensions (extensions);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:15,代码来源:PDFDataLoader.java


示例13: ImageDataLoader

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
/** Creates new image loader. */
public ImageDataLoader() {
    // Set the representation class.
    super("org.netbeans.modules.image.ImageDataObject"); // NOI18N
    
    ExtensionList ext = new ExtensionList();
    ext.addMimeType(GIF_MIME_TYPE);
    ext.addMimeType(JPEG_MIME_TYPE);
    ext.addMimeType(PNG_MIME_TYPE);
    setExtensions(ext);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:ImageDataLoader.java


示例14: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
@Override
protected void initialize() {
    super.initialize();
    ExtensionList extensions = new ExtensionList();
    extensions.addExtension(".ldbg");
    extensions.addExtension(".linterp");
    extensions.addMimeType(LexerDebuggerEditorKit.LEXER_DEBUGGER_MIME_TYPE);
    setExtensions(extensions);
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:10,代码来源:LexerDebuggerDataLoader.java


示例15: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
@Override
protected void initialize() {
    super.initialize();
    ExtensionList extensions = new ExtensionList();
    extensions.addExtension(".pdbg");
    extensions.addExtension(".pinterp");
    extensions.addMimeType(ParserDebuggerEditorKit.PARSER_DEBUGGER_MIME_TYPE);
    setExtensions(extensions);
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:10,代码来源:ParserDebuggerDataLoader.java


示例16: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
@Override
protected void initialize() {
    super.initialize();
    ExtensionList extensions = new ExtensionList();
    extensions.addExtension(".g");
    extensions.addExtension(".g3");
    extensions.addExtension(".g4");
    extensions.addMimeType(GrammarEditorKit.GRAMMAR_MIME_TYPE);
    setExtensions(extensions);
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:11,代码来源:GrammarDataLoader.java


示例17: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
@Override
protected void initialize() {
    super.initialize();
    ExtensionList extensions = new ExtensionList();
    extensions.addExtension(".st");
    extensions.addExtension(".stg");
    extensions.addMimeType(StringTemplateEditorKit.TEMPLATE_MIME_TYPE);
    setExtensions(extensions);
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:10,代码来源:StringTemplateFileTypeDataLoader.java


示例18: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
@Override
protected void initialize() {
    super.initialize();
    ExtensionList extensions = new ExtensionList();
    extensions.addExtension(".go");
    extensions.addMimeType(GoEditorKit.GO_MIME_TYPE);
    setExtensions(extensions);
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:9,代码来源:GoDataLoader.java


示例19: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
@Override
protected void initialize() {
    super.initialize();
    
    ExtensionList ext = getExtensions();
    ext.addExtension(EXT);
    ext.addMimeType(MIME);
    setExtensions(ext);
}
 
开发者ID:daimor,项目名称:NBStudio,代码行数:10,代码来源:macDataLoader.java


示例20: initialize

import org.openide.loaders.ExtensionList; //导入依赖的package包/类
@Override
protected void initialize() {
    super.initialize();
    ExtensionList extensions = new ExtensionList();
    extensions.addExtension(".dot");
    extensions.addExtension(".gv");
    extensions.addMimeType("text/x-graphviz");
    setExtensions(extensions);
}
 
开发者ID:sharwell,项目名称:zgrnbviewer,代码行数:10,代码来源:GraphVizDataLoader.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java GitVcsApplicationSettings类代码示例发布时间:2022-05-22
下一篇:
Java BarLineScatterCandleBubbleDataProvider类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap