本文整理汇总了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));
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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));
}
示例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);
}
示例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);
}