]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Move global UI bindings to the product plugin 73/3973/2
authorReino Ruusu <reino.ruusu@semantum.fi>
Fri, 6 Mar 2020 15:16:42 +0000 (17:16 +0200)
committerReino Ruusu <reino.ruusu@semantum.fi>
Fri, 6 Mar 2020 15:36:57 +0000 (17:36 +0200)
gitlab #101

Change-Id: I83c0e42c400579cd3709b78146a5b07cdeac82d1

org.simantics.plant3d.ontology/graph/plant3d_viewpoint.pgraph
org.simantics.plant3d.product/.gitignore
org.simantics.plant3d.product/.project
org.simantics.plant3d.product/META-INF/MANIFEST.MF
org.simantics.plant3d.product/build.properties
org.simantics.plant3d.product/graph/plant3d_product.pgraph [new file with mode: 0644]
org.simantics.plant3d.product/plugin.xml
org.simantics.plant3d/plugin.xml

index 5be0264c6b26bac365eb34702ceb96b479dd1e74..e898991d149d142188d9f97a1b96fc64904528ee 100644 (file)
@@ -40,7 +40,7 @@ IMAGES.Tank : IMAGE.PngImage
     @L0.loadBytes "images/tank.png"
     
 MAC = P3D.P3DActionContext : VP.BrowseContext
-    VP.BrowseContext.IsIncludedIn PROJ.ProjectActionContext
+    // VP.BrowseContext.IsIncludedIn PROJ.ProjectActionContext - This is added in the product plugin
     
     @VP.actionContribution "Plant" L0.Library IMAGES.Factory VP.NewActionCategory P3D.Actions.NewPlant
 
index ae3c1726048cd06b9a143e0376ed46dd9b9a8d53..e696a2182079ab6d74b7cf6e0887e6ea60dfe9e5 100644 (file)
@@ -1 +1,2 @@
 /bin/
+/graph.tg
index 6ef52379484474d5901c5d42e252caffb5c7e42c..f9bddb1b9b6336f50ddca22ab83d6fdaf4e22128 100644 (file)
@@ -5,6 +5,11 @@
        <projects>
        </projects>
        <buildSpec>
+               <buildCommand>
+                       <name>org.simantics.graph.builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
                <buildCommand>
                        <name>org.eclipse.pde.ManifestBuilder</name>
                        <arguments>
@@ -18,5 +23,6 @@
        </buildSpec>
        <natures>
                <nature>org.eclipse.pde.PluginNature</nature>
+               <nature>org.simantics.graph.nature</nature>
        </natures>
 </projectDescription>
index b8e15b9118bac70de5bab97f1ad33e896ad3eee9..18b269a2377af3aeaf644e52c785031b6d02b662 100644 (file)
@@ -6,6 +6,10 @@ Bundle-Version: 1.0.0.qualifier
 Require-Bundle: org.eclipse.core.runtime,
  org.eclipse.ui;bundle-version="3.7.0",
  org.simantics.plant3d;bundle-version="1.0.0",
- org.simantics.project;bundle-version="1.0.1"
+ org.simantics.project;bundle-version="1.0.1",
+ org.simantics.project.ontology;bundle-version="1.2.0",
+ org.simantics.viewpoint.ontology;bundle-version="1.2.0",
+ org.simantics.plant3d.ontology;bundle-version="1.0.0",
+ org.simantics.layer0;bundle-version="1.1.0"
 Bundle-ActivationPolicy: lazy
 Bundle-Vendor: VTT
index 122283d1cb0236eb640911080cabc7c2f549b5bf..337705954a816521b660c20ef8f87605ec4ca81a 100644 (file)
@@ -1,4 +1,5 @@
 bin.includes = META-INF/,\
                .,\
                plugin.xml,\
-               splash.bmp
+               splash.bmp,\
+               graph.tg
diff --git a/org.simantics.plant3d.product/graph/plant3d_product.pgraph b/org.simantics.plant3d.product/graph/plant3d_product.pgraph
new file mode 100644 (file)
index 0000000..9bbc98d
--- /dev/null
@@ -0,0 +1,5 @@
+VP = <http://www.simantics.org/Viewpoint-1.2>\r
+PROJ = <http://www.simantics.org/Project-1.2>\r
+P3D = <http://www.simantics.org/Plant3D-0.1>\r
+\r
+P3D.P3DActionContext VP.BrowseContext.IsIncludedIn PROJ.ProjectActionContext\r
index 490a25e192d8354b905a769f675f6d378e125d1f..cde18becec6fd6cc1dfb293b79a84f3ffa07ba76 100644 (file)
          </property>
       </product>
    </extension>
-
+   <extension
+         point="org.simantics.ui.resourceEditorAdapter">
+      <adapter
+            editorId="org.simantics.plant3d.editor"
+            groupId="org.simantics.plant3dEditor.group"
+            image="platform:/plugin/org.simantics.plant3d/icons/factory.png"
+            label="Plant3D Editor"
+            priority="1"
+            type_uris="http://www.simantics.org/Plant3D-0.1/Plant">
+      </adapter>
+   </extension>
    <extension
          point="org.simantics.project.feature">
       <feature
@@ -35,7 +45,7 @@
          point="org.eclipse.ui.views">
       <view
             class="org.simantics.plant3d.browser.P3DBrowser:browseContext=http://www.simantics.org/CSG-0.1/CSGBrowseContext;browseContext=http://www.simantics.org/Plant3D-0.1/P3DBrowseContext"
-            icon="icons/factory.png"
+            icon="platform:/plugin/org.simantics.plant3d/icons/factory.png"
             id="org.simantics.plant3d.ModelBrowser"
             name="Model Browser"
             restorable="true">
@@ -45,7 +55,7 @@
          point="org.eclipse.ui.perspectives">
       <perspective
             class="org.simantics.plant3d.project.P3DPerspectiveFactory"
-            icon="icons/factory.png"
+            icon="platform:/plugin/org.simantics.plant3d/icons/factory.png"
             id="org.simantics.plant3d.perspective"
             name="Plant3D">
       </perspective>
index 7d6b9042023bfd46db81dea08077cf56a08ec246..8fb207a644fc6ed591c389e0502c669019a09654 100644 (file)
             name="Plant3D Editor">
       </editor>
    </extension>
-   <extension
-         point="org.simantics.ui.resourceEditorAdapter">
-      <adapter
-            editorId="org.simantics.plant3d.editor"
-            image="icons/factory.png"
-            label="Plant3D Editor"
-            priority="1"
-            type_uris="http://www.simantics.org/Plant3D-0.1/Plant">
-      </adapter>
-   </extension>
    <extension
          point="org.eclipse.ui.menus">
       <menuContribution