Java Code Examples for org.openide.filesystems.MIMEResolver#ExtensionRegistration

The following examples show how to use org.openide.filesystems.MIMEResolver#ExtensionRegistration . 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: 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 2
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 3
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 4
Source File: LanguageResolvers.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@MIMEResolver.ExtensionRegistration(displayName = "Simple Language", extension = { "sl", "SL" }, mimeType = "application/x-r", position = 2140000100)
public void SimpleLanguage() {}
 
Example 5
Source File: LanguageResolvers.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@MIMEResolver.ExtensionRegistration(displayName = "R", extension = { "r", "R" }, mimeType = "application/x-r", position = 2140000200)
public void R() {}
 
Example 6
Source File: LanguageResolvers.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@MIMEResolver.ExtensionRegistration(displayName = "Ruby", extension = { "rb", "RB", "Rb" }, mimeType = "application/x-ruby", position = 2140000300)
public void Ruby() {}
 
Example 7
Source File: LanguageResolvers.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@MIMEResolver.ExtensionRegistration(displayName = "Python", extension = { "py", "PY", "Py" }, mimeType = "text/x-python", position = 2140000400)
public void Python() {}
 
Example 8
Source File: DoFPMIMEType.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@MIMEResolver.ExtensionRegistration(displayName = "tt1", extension = "tt1", mimeType = "text/test1",position=1000)
public void tt1() {
}
 
Example 9
Source File: DoFPMIMEType.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@MIMEResolver.ExtensionRegistration(displayName = "tt3", extension = "tt3", mimeType = "text/test3",position=1002)
public void tt3() {
}
 
Example 10
Source File: DoFPMIMEType.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@MIMEResolver.ExtensionRegistration(displayName = "ttm1", extension = "ttm1", mimeType = "text/testm1",position=1003)
public void ttm1() {
}
 
Example 11
Source File: DoFPMIMEType.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@MIMEResolver.ExtensionRegistration(displayName = "ttm2", extension = "ttm2", mimeType = "text/testm2",position=1004)
public void ttm2() {
}