Java Code Examples for org.openide.windows.TopComponent#PERSISTENCE_ONLY_OPENED
The following examples show how to use
org.openide.windows.TopComponent#PERSISTENCE_ONLY_OPENED .
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: JsLanguage.java From netbeans with Apache License 2.0 | 6 votes |
@MIMEResolver.ExtensionRegistration( extension={ "js", "sdoc", "jsx" }, displayName="#JsResolver", mimeType=JsTokenId.JAVASCRIPT_MIME_TYPE, position=190 ) @NbBundle.Messages("JsResolver=JavaScript Files") @MultiViewElement.Registration(displayName = "#LBL_JsEditorTab", iconBase = "org/netbeans/modules/javascript2/editor/resources/javascript.png", persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED, preferredID = "javascript.source", mimeType = JsTokenId.JAVASCRIPT_MIME_TYPE, position = 1) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 2
Source File: JadeLanguage.java From netbeans with Apache License 2.0 | 6 votes |
@MIMEResolver.ExtensionRegistration( extension={ "jade"}, displayName="#JadeResolver", mimeType=JadeTokenId.JADE_MIME_TYPE, position=191 ) @NbBundle.Messages("JadeResolver=Jade Files") @MultiViewElement.Registration(displayName = "#LBL_JadeEditorTab", iconBase = "org/netbeans/modules/javascript2/jade/resources/jade16.png", persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED, preferredID = "jade.source", mimeType = JadeTokenId.JADE_MIME_TYPE, position = 2) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 3
Source File: PersistenceManager.java From netbeans with Apache License 2.0 | 5 votes |
/** Tests if given top component with specified stringId is persistent. * This method is used for saving of TopComponent. * @param tc top component in question * @return true if component is persistent (which is by default), false * otherwise - top component's property exists saying "don't make me persistent" */ public boolean isTopComponentPersistent (TopComponent tc) { int persistenceType = persistenceType(tc); if ((TopComponent.PERSISTENCE_NEVER == persistenceType) || ((TopComponent.PERSISTENCE_ONLY_OPENED == persistenceType) && !tc.isOpened())) { return false; } return true; }
Example 4
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 5
Source File: JSFConfigDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( mimeType=JSFConfigLoader.MIME_TYPE, iconBase=JSFConfigNode.ICON_BASE, persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="faces.config.xml", displayName="#CTL_SourceTabCaption", position=100 ) @Messages("CTL_SourceTabCaption=Source") public static MultiViewEditorElement createXmlMultiViewElement(Lookup context) { return new JSFConfigMultiViewEditorElement(context); }
Example 6
Source File: TLDDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName="#LBL_TLDEditorTab", iconBase="org/netbeans/modules/web/taglib/resources/tag.gif", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="tld.source", mimeType=TLDLoader.TLD_MIMETYPE, position=1 ) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 7
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 8
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 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: XSLDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName="org.netbeans.modules.xsl.Bundle#CTL_SourceTabCaption", iconBase="org/netbeans/modules/xsl/resources/xslObject.gif", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="xsl.text", mimeType=MIME_TYPE, position=1 ) public static MultiViewEditorElement createMultiViewDTDElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 11
Source File: LatteDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName = "#LBL_Latte_EDITOR", iconBase = LATTE_ICON, mimeType = LatteLanguage.LATTE_MIME_TYPE, persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED, preferredID = "Latte", position = 1000 ) @Messages("LBL_Latte_EDITOR=Source") public static MultiViewEditorElement createMultiViewEditorElement(Lookup lookup) { return new MultiViewEditorElement(lookup); }
Example 12
Source File: MfDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@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); }
Example 13
Source File: AntProjectDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName="#CTL_SourceTabCaption", iconBase="org/apache/tools/ant/module/resources/AntIcon.gif", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="ant", mimeType=MIME_TYPE, position=1 ) @Messages("CTL_SourceTabCaption=&Source") public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 14
Source File: TwigDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@Messages("Source=&Source") @MultiViewElement.Registration( displayName = "#Source", iconBase = ICON_LOCATION, persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED, mimeType = TwigLanguage.TWIG_MIME_TYPE, preferredID = "php.twig.source", position = 1) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 15
Source File: JnlpDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@Messages("Source=&Source") @MultiViewElement.Registration( displayName="#Source", iconBase="org/netbeans/modules/javawebstart/resources/jnlp.gif", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, mimeType=JnlpDataLoader.REQUIRED_MIME, preferredID="jnlp.source", position=1 ) public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 16
Source File: SunDescriptorDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( mimeType={ DDType.SUN_MIME_TYPE_PREFIX + DDType.WEB_MIME_TYPE_SUFFIX, DDType.SUN_MIME_TYPE_PREFIX + DDType.EJB_MIME_TYPE_SUFFIX, DDType.SUN_MIME_TYPE_PREFIX + DDType.APP_CLI_MIME_TYPE_SUFFIX, DDType.GLASSFISH_MIME_TYPE_PREFIX + DDType.APP_CLI_MIME_TYPE_SUFFIX }, iconBase="org/netbeans/modules/j2ee/sun/ddloaders/resources/DDDataIcon.gif", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="multiview_xml_gf_shared_jms", displayName="#CTL_JmsTabCaption", position=10 ) public static MultiViewElement createJmsMultiViewElement(Lookup lookup) { return new JmsMultiViewElement(lookup.lookup(SunDescriptorDataObject.class)); }
Example 17
Source File: EarDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( displayName="#CTL_SourceTabCaption", iconBase="org/netbeans/modules/j2ee/ddloaders/ejb/DDDataIcon.gif", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="ear.dd", mimeType="text/x-dd-application", position=1 ) @Messages("CTL_SourceTabCaption=&Source") public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) { return new MultiViewEditorElement(context); }
Example 18
Source File: SunDescriptorDataObject.java From netbeans with Apache License 2.0 | 5 votes |
@MultiViewElement.Registration( mimeType=DDType.GLASSFISH_MIME_TYPE_PREFIX + DDType.APP_CLI_MIME_TYPE_SUFFIX, iconBase="org/netbeans/modules/j2ee/sun/ddloaders/resources/DDDataIcon.gif", persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED, preferredID="multiview_xml_gf_app_cli_overview", displayName="#CTL_OverviewTabCaption", position=1 ) public static MultiViewElement createAppCliOverviewViewElement(Lookup lookup) { return new SunAppClientOverviewMultiViewElement(lookup.lookup(SunDescriptorDataObject.class)); }
Example 19
Source File: PhpHierarchyTopComponent.java From netbeans with Apache License 2.0 | 4 votes |
@Override public int getPersistenceType() { return TopComponent.PERSISTENCE_ONLY_OPENED; }
Example 20
Source File: XmlMultiViewEditorSupport.java From netbeans with Apache License 2.0 | 4 votes |
public int getPersistenceType() { return TopComponent.PERSISTENCE_ONLY_OPENED; }