]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/modulebrowser/SCLModuleBrowser.java
Allow creation of SCL modules to folders that are also module names
[simantics/platform.git] / bundles / org.simantics.scl.ui / src / org / simantics / scl / ui / modulebrowser / SCLModuleBrowser.java
index b175a3e600c14cc69db9c7e1a8e6ea23de1b6048..97bfc9fb8ed3de929960a15558023c9f63115570 100644 (file)
@@ -55,15 +55,14 @@ public class SCLModuleBrowser extends ViewPart {
         menuMgr.addMenuListener(new IMenuListener() {
             public void menuAboutToShow(IMenuManager manager) {
                 ModuleNameTreeEntry entry = (ModuleNameTreeEntry)content.getStructuredSelection().getFirstElement();
-                if(!entry.isModule)
-                    manager.add(new Action("New Module...") {
-                        @Override
-                        public void run() {
-                            CreateModuleDialog dialog = new CreateModuleDialog(content.getControl().getShell(), SCLModuleBrowser.this);
-                            dialog.setPackage(entry.fullName);
-                            dialog.open();
-                        }
-                    });
+                manager.add(new Action("New Module...") {
+                    @Override
+                    public void run() {
+                        CreateModuleDialog dialog = new CreateModuleDialog(content.getControl().getShell(), SCLModuleBrowser.this);
+                        dialog.setPackage(entry.fullName);
+                        dialog.open();
+                    }
+                });
             }
         });
         Menu menu = menuMgr.createContextMenu(content.getControl());