Java Code Examples for org.netbeans.core.spi.multiview.MultiViewElement#Registration
The following examples show how to use
org.netbeans.core.spi.multiview.MultiViewElement#Registration .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TomcatInstanceNode.java From netbeans with Apache License 2.0 | 6 votes |
/** * Overrides the compatible XML DO behaviour for files without data objects * @param context * @return */ @MIMEResolver.Registration( displayName="org.netbeans.modules.tomcat5.resources.Bundle#TomcatResolver", position=380, resource="../../resources/tomcat-mime-resolver.xml" ) @MultiViewElement.Registration( displayName="org.netbeans.modules.tomcat5.ui.nodes.Bundle#CTL_SourceTabCaption", iconBase="org/netbeans/modules/tomcat5/resources/tomcat5.gif", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="xml.text", mimeType="text/tomcat5+xml", position=1 ) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 2
Source File: FXMLMultiViewHelper.java From netbeans with Apache License 2.0 | 5 votes |
@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); }
Example 3
Source File: LessCslLanguage.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration(displayName = "#LBL_LESSEditorTab", iconBase = "org/netbeans/modules/css/prep/cssprep.png", persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED, preferredID = "less.source", mimeType = "text/less", position = 1) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 4
Source File: ApacheConfDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@Messages("Source=&Source") @MultiViewElement.Registration( displayName="#Source", iconBase="org/netbeans/modules/languages/apacheconf/resources/apache_conf_file_16.png", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, mimeType=ApacheConfLanguageConfig.MIME_TYPE, preferredID="neon.source", position=1 ) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 5
Source File: SunDescriptorDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( mimeType={ DDType.IPLANET_MIME_TYPE_PREFIX + DDType.EJB_MIME_TYPE_SUFFIX, DDType.SUN_MIME_TYPE_PREFIX + DDType.EJB_MIME_TYPE_SUFFIX }, iconBase="org/netbeans/modules/j2ee/sun/ddloaders/resources/DDDataIcon.gif", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="multiview_xml_gf_ejb_overview", displayName="#CTL_OverviewTabCaption", position=1 ) public static MultiViewElement createEjbOveriewMultiViewElement(Lookup lookup) { return new SunEjbOverviewMultiViewElement(lookup.lookup(SunDescriptorDataObject.class)); }
Example 6
Source File: SymbolsDataObject.java From NBANDROID-V2 with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName = "#Source", iconBase = "org/nbandroid/netbeans/gradle/v2/layout/icons-symbols-16.png", mimeType = "text/x-android-symbols+xml", persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED, preferredID = "source", position = 1 ) public static MultiViewEditorElement createEditor(Lookup lkp) { return new MultiViewEditorElement(lkp); }
Example 7
Source File: IniDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@Messages("Source=&Source") @MultiViewElement.Registration( displayName="#Source", iconBase="org/netbeans/modules/languages/ini/resources/ini_file_16.png", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, mimeType=IniLanguageConfig.MIME_TYPE, preferredID="ini.source", position=1 ) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 8
Source File: SunDescriptorDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( mimeType={ DDType.IPLANET_MIME_TYPE_PREFIX + DDType.WEB_MIME_TYPE_SUFFIX, DDType.SUN_MIME_TYPE_PREFIX + DDType.WEB_MIME_TYPE_SUFFIX }, iconBase="org/netbeans/modules/j2ee/sun/ddloaders/resources/DDDataIcon.gif", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="multiview_xml_gf_web_over", displayName="#CTL_OverviewTabCaption", position=1 ) public static MultiViewElement createWebOverviewMultiViewElement(Lookup lookup) { return new SunWebOverviewMultiViewElement(lookup.lookup(SunDescriptorDataObject.class)); }
Example 9
Source File: XMLDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName="org.netbeans.modules.xml.Bundle#CTL_SourceTabCaption", iconBase="org/netbeans/modules/xml/resources/xmlObject.gif", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="xml.text", mimeType=MIME_PLAIN_XML, position=1 ) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 10
Source File: DimensDataObject.java From NBANDROID-V2 with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName = "#Source", iconBase = "org/nbandroid/netbeans/gradle/v2/layout/icons-dimens-16.png", mimeType = "text/x-android-dimens+xml", persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED, preferredID = "source", position = 1 ) public static MultiViewEditorElement createEditor(Lookup lkp) { return new MultiViewEditorElement(lkp); }
Example 11
Source File: AttrsDataObject.java From NBANDROID-V2 with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName = "#Source", iconBase = "org/nbandroid/netbeans/gradle/v2/layout/icons-attrs-16.png", mimeType = "text/x-android-attrs+xml", persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED, preferredID = "source", position = 1 ) public static MultiViewEditorElement createEditor(Lookup lkp) { return new MultiViewEditorElement(lkp); }
Example 12
Source File: ScssCslLanguage.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration(displayName = "#LBL_SCSSEditorTab", iconBase = "org/netbeans/modules/css/prep/cssprep.png", persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED, preferredID = "scss.source", mimeType = "text/scss", position = 1) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 13
Source File: TplDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName="#CTL_SourceTabCaption", iconBase=ICON_LOCATION, persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="smarty.template", mimeType=TplDataLoader.MIME_TYPE, position=1 ) @Messages("CTL_SourceTabCaption=&Source") public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 14
Source File: PayaraDescriptorDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( mimeType = PAYARA_WEB_MIME_TYPE, iconBase = DD_ICON, persistenceType = PERSISTENCE_ONLY_OPENED, preferredID = "multiview_xml_payara_shared_environment", displayName = "#CTL_EnvTabCaption", position = 15 ) public static MultiViewElement createEnvMultiViewEnvironmentElement(Lookup lookup) { return new EnvironmentMultiViewElement(lookup.lookup(PayaraDescriptorDataObject.class)); }
Example 15
Source File: CssLanguage.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration(displayName = "#LBL_CSSEditorTab", iconBase = "org/netbeans/modules/css/resources/style_sheet_16.png", persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED, preferredID = "css.source", mimeType = "text/css", position = 1) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 16
Source File: EjbJarMultiViewDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName="#LBL_" + CMP_RELATIONSHIPS, iconBase=Utils.ICON_BASE_DD_VALID + ".gif", persistenceType=TopComponent.PERSISTENCE_NEVER, preferredID="dd_multiview_" + CMP_RELATIONSHIPS, mimeType="text/x-dd-ejbjar", position=1000 ) public static MultiViewElement getCmpRelationShips(Lookup context) { DataObject dObj = context.lookup(DataObject.class); assert dObj != null; return new CmpRelationshipsMultiViewElement((EjbJarMultiViewDataObject) dObj); }
Example 17
Source File: JspDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName="#LBL_JSPEditorTab", iconBase="org/netbeans/modules/web/core/resources/jsp16.gif", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="jsp.source", mimeType={JspLoader.JSP_MIME_TYPE, JspLoader.TAG_MIME_TYPE}, position=1 ) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new JspMultiViewEditorElement(context); }
Example 18
Source File: PayaraDescriptorDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( mimeType = PAYARA_WEB_MIME_TYPE, iconBase = DD_ICON, persistenceType = PERSISTENCE_ONLY_OPENED, preferredID = "multiview_xml_payara_shared_jms", displayName = "#CTL_JmsTabCaption", position = 10 ) public static MultiViewElement createJmsMultiViewElement(Lookup lookup) { return new JmsMultiViewElement(lookup.lookup(PayaraDescriptorDataObject.class)); }
Example 19
Source File: ColorsDataObject.java From NBANDROID-V2 with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName = "#Source", iconBase = "org/nbandroid/netbeans/gradle/v2/layout/icons-colors-16.png", mimeType = "text/text/x-android-colors+xml", persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED, preferredID = "source", position = 1 ) public static MultiViewEditorElement createEditor(Lookup lkp) { return new MultiViewEditorElement(lkp); }
Example 20
Source File: EntityDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@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); }