haidubogdan commented on code in PR #9289:
URL: https://github.com/apache/netbeans/pull/9289#discussion_r3038556364


##########
ide/languages.env/src/org/netbeans/modules/languages/env/EnvLanguage.java:
##########
@@ -38,12 +37,96 @@
 import org.netbeans.modules.parsing.spi.Parser;
 import org.netbeans.spi.lexer.Lexer;
 import org.netbeans.spi.lexer.LexerRestartInfo;
+import org.openide.awt.ActionID;
+import org.openide.awt.ActionReference;
+import org.openide.awt.ActionReferences;
+import org.openide.filesystems.MIMEResolver;
 import org.openide.util.*;
 import org.openide.windows.TopComponent;
 
[email protected](
+        resource = "resources/mime-resolver.xml",
+        displayName = "#LBL_Env_LOADER",
+        position = 1
+)
[email protected]({
+    "LBL_Env_LOADER=Env files"
+})
+
+@ActionReferences({
+    @ActionReference(
+            path = "Loaders/text/x-env/Actions",
+            id = @ActionID(category = "System", id = 
"org.openide.actions.OpenAction"),
+            position = 100,
+            separatorAfter = 200
+    ),
+    @ActionReference(
+            path = "Loaders/text/x-env/Actions",
+            id = @ActionID(category = "Edit", id = 
"org.openide.actions.CutAction"),
+            position = 300
+    ),
+    @ActionReference(
+            path = "Loaders/text/x-env/Actions",
+            id = @ActionID(category = "Edit", id = 
"org.openide.actions.CopyAction"),
+            position = 400
+    ),
+    @ActionReference(
+            path = "Loaders/text/x-env/Actions",
+            id = @ActionID(category = "Edit", id = 
"org.openide.actions.PasteAction"),
+            position = 500,
+            separatorAfter = 600
+    ),
+    @ActionReference(
+            path = "Loaders/text/x-env/Actions",
+            id = @ActionID(category = "Edit", id = 
"org.openide.actions.DeleteAction"),
+            position = 700
+    ),
+    @ActionReference(
+            path = "Loaders/text/x-env/Actions",
+            id = @ActionID(category = "System", id = 
"org.openide.actions.RenameAction"),
+            position = 800,
+            separatorAfter = 900
+    ),
+    @ActionReference(
+            path = "Loaders/text/x-env/Actions",
+            id = @ActionID(category = "System", id = 
"org.openide.actions.SaveAsTemplateAction"),
+            position = 1000,
+            separatorAfter = 1100
+    ),
+    @ActionReference(
+            path = "Loaders/text/x-env/Actions",
+            id = @ActionID(category = "System", id = 
"org.openide.actions.FileSystemAction"),
+            position = 1200,
+            separatorAfter = 1300
+    ),
+    @ActionReference(
+            path = "Loaders/text/x-env/Actions",
+            id = @ActionID(category = "System", id = 
"org.openide.actions.ToolsAction"),
+            position = 1400
+    ),
+    @ActionReference(
+            path = "Loaders/text/x-env/Actions",
+            id = @ActionID(category = "System", id = 
"org.openide.actions.PropertiesAction"),
+            position = 1500
+    ),
+    @ActionReference(
+            path = "Editors/text/x-env/Popup",
+            id = @ActionID(category = "Refactoring", id = 
"org.netbeans.modules.refactoring.api.ui.WhereUsedAction"),
+            position = 1600
+    ),}
+)
+
 @LanguageRegistration(mimeType = "text/x-env", useMultiview = true)
 public class EnvLanguage extends DefaultLanguageConfig {
 
+    public static final String MIME_TYPE = "text/x-env"; //NOI18N
+
+    @MIMEResolver.ExtensionRegistration(
+            extension = {"env", "Env"},
+            displayName = "Env",
+            mimeType = MIME_TYPE,
+            position = 193
+    )

Review Comment:
   I've removed the `mime-resolver.xml` for this pull request and kept the 
**EnvFileResolver**.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to