org.netbeans.core.spi.multiview.text.MultiViewEditorElement Java Examples

The following examples show how to use org.netbeans.core.spi.multiview.text.MultiViewEditorElement. 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 vote down vote up
/**
 * 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: JsonLanguage.java    From netbeans with Apache License 2.0 6 votes vote down vote up
@MIMEResolver.Registration(displayName = "jshintrc", resource = "jshintrc-resolver.xml", position = 124)
@MIMEResolver.ExtensionRegistration(
    extension={ "json" },
    displayName="#JsonResolver",
    mimeType=JsTokenId.JSON_MIME_TYPE,
    position=195
)
@NbBundle.Messages("JsonResolver=JSON Files")
@MultiViewElement.Registration(displayName = "#LBL_JsonEditorTab",
    iconBase = "org/netbeans/modules/javascript2/editor/resources/javascript.png",
    persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
    preferredID = "json.source",
    mimeType = JsTokenId.JSON_MIME_TYPE,
    position = 1)
public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) {
    return new MultiViewEditorElement(context);
}
 
Example #3
Source File: JsLanguage.java    From netbeans with Apache License 2.0 6 votes vote down vote up
@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 #4
Source File: JadeLanguage.java    From netbeans with Apache License 2.0 6 votes vote down vote up
@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 #5
Source File: HtmlDataObject.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@MultiViewElement.Registration(
        displayName="#LBL_HTMLEditorTab",
        iconBase="org/netbeans/modules/html/htmlObject.png",
        persistenceType=TopComponent.PERSISTENCE_ONLY_OPENED,
        preferredID="html.source",
        mimeType=HtmlLoader.HTML_MIMETYPE,
        position=1
    )
public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) {
    return new MultiViewEditorElement(context);
}
 
Example #6
Source File: StringsDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@MultiViewElement.Registration(
        displayName = "#Source",
        iconBase = "org/nbandroid/netbeans/gradle/v2/layout/icon-text-16.png",
        mimeType = "text/x-android-strings+xml",
        persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
        preferredID = "source",
        position = 1
)
public static MultiViewEditorElement createEditor(Lookup lkp) {
    return new MultiViewEditorElement(lkp);
}
 
Example #7
Source File: IdsDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@MultiViewElement.Registration(
        displayName = "#Source",
        iconBase = "org/nbandroid/netbeans/gradle/v2/layout/icons-ids-16.png",
        mimeType = "text/x-android-ids+xml",
        persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
        preferredID = "source",
        position = 1
)
public static MultiViewEditorElement createEditor(Lookup lkp) {
    return new MultiViewEditorElement(lkp);
}
 
Example #8
Source File: ProguardDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@MultiViewElement.Registration(
        displayName = "&Source",
        iconBase = "org/netbeans/modules/android/project/proguard/proguard.png",
        mimeType = "text/x-proguard",
        persistenceType = TopComponent.PERSISTENCE_NEVER,
        preferredID = "source",
        position = 1
)
public static MultiViewEditorElement createEditor(Lookup lkp) {
    return new MultiViewEditorElement(lkp);
}
 
Example #9
Source File: XSLDataObject.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@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 #10
Source File: UnknownValuesDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@MultiViewElement.Registration(
        displayName = "#Source",
        iconBase = "org/nbandroid/netbeans/gradle/v2/layout/icons-values-16.png",
        mimeType = "text/x-android-values+xml",
        persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
        preferredID = "source",
        position = 1
)
public static MultiViewEditorElement createEditor(Lookup lkp) {
    return new MultiViewEditorElement(lkp);
}
 
Example #11
Source File: MfDataObject.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@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 #12
Source File: ScssCslLanguage.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@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: LessCslLanguage.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@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 #14
Source File: XMLDataObject.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@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_XSD_XML,
    position=1
)
public static MultiViewEditorElement createMultiViewXSDEditorElement(Lookup context) {
    return new MultiViewEditorElement(context);
}
 
Example #15
Source File: XMLDataObject.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@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 #16
Source File: DTDDataObject.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #17
Source File: EntityDataObject.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #18
Source File: IntegersDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@MultiViewElement.Registration(
        displayName = "#Source",
        iconBase = "org/nbandroid/netbeans/gradle/v2/layout/icons-integers-16.png",
        mimeType = "text/x-android-integer+xml",
        persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
        preferredID = "source",
        position = 1
)
public static MultiViewEditorElement createEditor(Lookup lkp) {
    return new MultiViewEditorElement(lkp);
}
 
Example #19
Source File: FXMLMultiViewHelper.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@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 #20
Source File: DimensDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@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 #21
Source File: BoolsDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@MultiViewElement.Registration(
        displayName = "#Source",
        iconBase = "org/nbandroid/netbeans/gradle/v2/layout/icons-bools-16.png",
        mimeType = "text/x-android-bool+xml",
        persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
        preferredID = "source",
        position = 1
)
public static MultiViewEditorElement createEditor(Lookup lkp) {
    return new MultiViewEditorElement(lkp);
}
 
Example #22
Source File: SymbolsDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@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 #23
Source File: StylesDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@MultiViewElement.Registration(
        displayName = "#Source",
        iconBase = "org/nbandroid/netbeans/gradle/v2/layout/icons-styles-16.png",
        mimeType = "text/x-android-styles+xml",
        persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
        preferredID = "source",
        position = 1
)
public static MultiViewEditorElement createEditor(Lookup lkp) {
    return new MultiViewEditorElement(lkp);
}
 
Example #24
Source File: ColorsDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@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 #25
Source File: AttrsDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@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 #26
Source File: ArrayDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@MultiViewElement.Registration(
        displayName = "#Source",
        iconBase = "org/nbandroid/netbeans/gradle/v2/layout/icons-array-16.png",
        mimeType = "text/x-android-array+xml",
        persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
        preferredID = "source",
        position = 1
)
public static MultiViewEditorElement createEditor(Lookup lkp) {
    return new MultiViewEditorElement(lkp);
}
 
Example #27
Source File: MenuDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@MultiViewElement.Registration(
        displayName = "&Source",
        iconBase = "org/nbandroid/netbeans/gradle/v2/layout/menu.png",
        mimeType = "text/x-android-menu+xml",
        persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
        preferredID = "source",
        position = 1
)
public static MultiViewEditorElement createEditor(Lookup lkp) {
    return new MultiViewEditorElement(lkp);
}
 
Example #28
Source File: LayoutDataObject.java    From NBANDROID-V2 with Apache License 2.0 5 votes vote down vote up
@MultiViewElement.Registration(
        displayName = "&Source",
        iconBase = "org/nbandroid/netbeans/gradle/v2/layout/layout/activity.png",
        mimeType = "text/x-android-layout+xml",
        persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
        preferredID = "source",
        position = 1
)
public static MultiViewEditorElement createEditor(Lookup lkp) {
    return new LayoutMultiViewEditorElement(lkp);
}
 
Example #29
Source File: CfgPropsDataObject.java    From nb-springboot with Apache License 2.0 5 votes vote down vote up
@Messages("Source=&Source")
@MultiViewElement.Registration(
        displayName = "#Source",
        iconBase = "com/github/alexfalappa/nbspringboot/springboot-logo.png",
        persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
        mimeType = CfgPropsLanguage.MIME_TYPE,
        preferredID = "bootcfgprops.source",
        position = 1
)
public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) {
    return new MultiViewEditorElement(context);
}
 
Example #30
Source File: JPAFileDataObject.java    From jeddict with Apache License 2.0 5 votes vote down vote up
@NbBundle.Messages("Source=&Source")
@MultiViewElement.Registration(
        displayName = "#Source",
        iconBase = "io/github/jeddict/jpa/modeler/specification/model/file/JPA_FILE_ICON.png",
        persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
        mimeType = JPA_FILE_TYPE,
        preferredID = "jpa.source",
        position = 1
)
public static MultiViewEditorElement createMultiViewEditorElement(Lookup context) {
    return new MultiViewEditorElement(context);
}