當前位置: 首頁>>代碼示例>>Java>>正文


Java TopComponent.PERSISTENCE_ONLY_OPENED屬性代碼示例

本文整理匯總了Java中org.openide.windows.TopComponent.PERSISTENCE_ONLY_OPENED屬性的典型用法代碼示例。如果您正苦於以下問題:Java TopComponent.PERSISTENCE_ONLY_OPENED屬性的具體用法?Java TopComponent.PERSISTENCE_ONLY_OPENED怎麽用?Java TopComponent.PERSISTENCE_ONLY_OPENED使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.openide.windows.TopComponent的用法示例。


在下文中一共展示了TopComponent.PERSISTENCE_ONLY_OPENED屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createXmlMultiViewElement

@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,代碼行數:12,代碼來源:PUDataObject.java

示例2: createMultiViewEditorElement

@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);
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:12,代碼來源:AntProjectDataObject.java

示例3: createXmlMultiViewElement

@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,代碼行數:12,代碼來源:HibernateRevengDataObject.java

示例4: createEditor

@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,代碼行數:12,代碼來源:LayerDataObject.java

示例5: createMultiViewEditorElement

@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,代碼行數:10,代碼來源:SpringXMLConfigDataObject.java

示例6: createMultiViewEditorElement

@MultiViewElement.Registration(
    displayName="#CTL_SourceTabCaption",
    iconBase=POM_ICON,
    persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
    preferredID="maven.pom",
    mimeType=Constants.POM_MIME_TYPE,
    position=1
)
public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) {
    return new MultiViewEditorElement(context);
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:11,代碼來源:POMDataObject.java

示例7: createSettingsMultiViewEditorElement

@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,代碼行數:11,代碼來源:POMDataObject.java

示例8: createXmlMultiViewElement

@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,代碼行數:12,代碼來源:HibernateMappingDataObject.java

示例9: createTopComponentPersistentID

private String createTopComponentPersistentID (TopComponent tc, String preferredID) throws IOException {
    String compName = preferredID != null ? preferredID : null;
    // be prepared for null names, empty names and convert to filesystem friendly name
    if ((compName == null) || (compName.length() == 0)) {
        compName = DEFAULT_TC_NAME;
    }
    //Check if component id is not already present in cache of invalid ids
    boolean isUsed = true;
    String origName = compName;
    compName = escape(compName);
    String srcName = compName;
    int i = 1;
    synchronized(LOCK_IDS) {
        while (isUsed) {
            isUsed = false;
            String uniqueName = FileUtil.findFreeFileName(
                getComponentsLocalFolder(), srcName, "settings" // NOI18N
            );

            if (!srcName.equals(uniqueName) || globalIDSet.contains(uniqueName.toUpperCase(Locale.ENGLISH))) {
                isUsed = true;
                // #44293 - proper escaping to keep name synced with InstanceDataObject naming
                srcName = escape(origName + "_" + i);
                i++;
            }
            
        }

        topComponent2IDMap.put(tc, srcName);
        id2TopComponentMap.put(srcName, new PersistenceManager.TopComponentReference(tc,srcName));
        globalIDSet.add(srcName.toUpperCase(Locale.ENGLISH));
        if (persistenceType(tc) == TopComponent.PERSISTENCE_ONLY_OPENED) {
            topComponentPersistentOnlyOpenedID.add(srcName);
        }
    }
    
    return srcName;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:38,代碼來源:PersistenceManager.java

示例10: createMultiViewEditorElement

@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,代碼行數:12,代碼來源:YamlDataObject.java

示例11: createMultiViewEditorElement

@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);
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:12,代碼來源:JnlpDataObject.java

示例12: createMultiViewDTDElement

@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,代碼行數:11,代碼來源:EntityDataObject.java

示例13: createMultiViewEditorElement

@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,代碼行數:12,代碼來源:MfDataObject.java

示例14: createMultiViewEditorElement

@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);
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:11,代碼來源:XMLDataObject.java

示例15: createMultiViewEditorElement

@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);
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:9,代碼來源:LessCslLanguage.java


注:本文中的org.openide.windows.TopComponent.PERSISTENCE_ONLY_OPENED屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。