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


Java MultiViewElement.Registration方法代码示例

本文整理汇总了Java中org.netbeans.core.spi.multiview.MultiViewElement.Registration方法的典型用法代码示例。如果您正苦于以下问题:Java MultiViewElement.Registration方法的具体用法?Java MultiViewElement.Registration怎么用?Java MultiViewElement.Registration使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.netbeans.core.spi.multiview.MultiViewElement的用法示例。


在下文中一共展示了MultiViewElement.Registration方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createXmlMultiViewElement

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@MultiViewElement.Registration(
    mimeType=PUDataLoader.REQUIRED_MIME,
    iconBase=ICON,
    persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
    preferredID=PREFERRED_ID_SOURCE,
    displayName="#CTL_SourceTabCaption",
    position=2000
)
@Messages("CTL_SourceTabCaption=Source")
public static XmlMultiViewElement createXmlMultiViewElement(Lookup lookup) {
    return new XmlMultiViewElement(lookup.lookup(XmlMultiViewDataObject.class));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:PUDataObject.java

示例2: createMultiViewEditorElement

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@Messages("Source=&Source")
@MultiViewElement.Registration(
        displayName="#Source",
        iconBase="org/netbeans/modules/languages/manifest/manifest_file_16.png",
        persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
        mimeType=MfLanguageProvider.MIME_TYPE,
        preferredID="manifest.source",
        position=1
)
public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) {
    return new MultiViewEditorElement(context);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:MfDataObject.java

示例3: createXmlMultiViewElement

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@MultiViewElement.Registration(
    mimeType=HibernateMappingDataLoader.REQUIRED_MIME,
    iconBase=ICON,
    persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
    preferredID=VIEW_ID,
    displayName="#CTL_SourceTabCaption",
    position=1
)
@NbBundle.Messages("CTL_SourceTabCaption=Source")
public static MultiViewEditorElement createXmlMultiViewElement(Lookup lookup) {
    return new MultiViewEditorElement(lookup);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:HibernateMappingDataObject.java

示例4: create

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@MultiViewElement.Registration(
    displayName="Contextual",
    mimeType="text/context",
    persistenceType=TopComponent.PERSISTENCE_ALWAYS,
    preferredID="context"
)
public static CntxMVE create(Lookup lkp) {
    return new CntxMVE(lkp);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:10,代码来源:MultiViewProcessorTest.java

示例5: createMultiViewEditorElement

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@MultiViewElement.Registration(
    displayName="#CTL_SourceTabCaption",
    iconBase="org/netbeans/modules/java/resources/class.gif",
    persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
    preferredID="java.source",
    mimeType="text/x-java",
    position=2000
)
public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) {
    return new MultiViewEditorElement(context);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:JavaDataObject.java

示例6: createEditor

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@Messages("Source=&Source")
@MultiViewElement.Registration(
    displayName = "#Source",
    iconBase = LayerUtil.LAYER_ICON,
    mimeType = "text/x-netbeans-layer+xml",
    persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
    preferredID = "source",
    position = 1
)
public static MultiViewEditorElement createEditor(Lookup lkp) {
    return new MultiViewEditorElement(lkp);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:LayerDataObject.java

示例7: createMultiViewEditorElement

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@Messages("Source=&Source")
@MultiViewElement.Registration(displayName = "#Source",
        iconBase = "org/netbeans/modules/spring/beans/resources/spring.png",
        persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
        mimeType = SpringConstants.CONFIG_MIME_TYPE,
        preferredID = "spring.xml.config",
        position = 1)
public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) {
    return new MultiViewEditorElement(context);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:11,代码来源:SpringXMLConfigDataObject.java

示例8: forPOMEditor

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@MultiViewElement.Registration(
    displayName="#TAB_Effective",
    iconBase=POMDataObject.POM_ICON,
    persistenceType=TopComponent.PERSISTENCE_NEVER,
    preferredID="effectivePom",
    mimeType=Constants.POM_MIME_TYPE,
    position=101
)
@Messages("TAB_Effective=Effective")
public static MultiViewElement forPOMEditor(final Lookup editor) {
    return new EffPOMView(editor);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:EffectivePomMD.java

示例9: createXmlMultiViewElement

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@MultiViewElement.Registration(
    mimeType=HibernateRevengDataLoader.REQUIRED_MIME,
    iconBase=ICON,
    persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
    preferredID=VIEW_ID,
    displayName="#CTL_SourceTabCaption",
    position=1
)
@NbBundle.Messages("CTL_SourceTabCaption=Source")
public static MultiViewEditorElement createXmlMultiViewElement(Lookup lookup) {
    return new MultiViewEditorElement(lookup);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:HibernateRevengDataObject.java

示例10: createSettingsMultiViewEditorElement

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@MultiViewElement.Registration(
    displayName="#CTL_SourceTabCaption",
    iconBase=POM_ICON,
    persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
    preferredID="xml.text",
    mimeType=SETTINGS_MIME_TYPE,
    position=1
)
public static MultiViewEditorElement createSettingsMultiViewEditorElement(Lookup context) { // #202900 workaround
    return new MultiViewEditorElement(context);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:POMDataObject.java

示例11: createMultiViewEditorElement

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@MultiViewElement.Registration(
    displayName="org.netbeans.modules.javafx2.editor.Bundle#CTL_SourceTabCaption", // NOI18N
    iconBase="org/netbeans/modules/javafx2/editor/resources/fxmlObject.png", // NOI18N
    persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
    preferredID="xml.text", // NOI18N
    mimeType=JavaFXEditorUtils.FXML_MIME_TYPE,
    position=1
)
public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) {
    return new MultiViewEditorElement(context);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:FXMLMultiViewHelper.java

示例12: createMultiViewEditorElement

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@NbBundle.Messages("Source=&Source")
@MultiViewElement.Registration(
        displayName="#Source",
        iconBase="org/netbeans/modules/languages/yaml/yaml_files_16.png",
        persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
        mimeType=YamlTokenId.YAML_MIME_TYPE,
        preferredID="neon.source",
        position=1
)
public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) {
    return new MultiViewEditorElement(context);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:YamlDataObject.java

示例13: createXmlMultiViewElement

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@MultiViewElement.Registration(
    mimeType=HibernateCfgDataLoader.REQUIRED_MIME,
    iconBase=ICON,
    persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
    preferredID=SOURCE_VIEW_ID,
    displayName="#CTL_SourceTabCaption",
    position=2550
)
@NbBundle.Messages("CTL_SourceTabCaption=Source")
public static XmlMultiViewElement createXmlMultiViewElement(Lookup lookup) {
    return new XmlMultiViewElement(lookup.lookup(XmlMultiViewDataObject.class));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:HibernateCfgDataObject.java

示例14: createMultiViewDTDElement

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@MultiViewElement.Registration(
    displayName="org.netbeans.modules.xml.Bundle#CTL_SourceTabCaption",
    iconBase="org/netbeans/modules/xml/resources/entObject.gif",
    persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
    preferredID="entity.text",
    mimeType=MIME_TYPE,
    position=1
)
public static MultiViewEditorElement createMultiViewDTDElement(Lookup context) {
    return new MultiViewEditorElement(context);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:EntityDataObject.java

示例15: createMultiViewDTDElement

import org.netbeans.core.spi.multiview.MultiViewElement; //导入方法依赖的package包/类
@MultiViewElement.Registration(
    displayName="org.netbeans.modules.xml.Bundle#CTL_SourceTabCaption",
    iconBase="org/netbeans/modules/xml/resources/dtdObject.gif",
    persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
    preferredID="dtd.text",
    mimeType=DTDKit.MIME_TYPE,
    position=1
)
public static MultiViewEditorElement createMultiViewDTDElement(Lookup context) {
    return new MultiViewEditorElement(context);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:DTDDataObject.java


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