]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Move plant3d test-product specific contributions to product plugin. 73/3173/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 29 Aug 2019 21:21:15 +0000 (00:21 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 29 Aug 2019 21:21:15 +0000 (00:21 +0300)
This prevents polluting any products including the plant3d modeling
feature with unwanted UI contributions.

gitlab #29

Change-Id: I28ceb91db0d12da19afcd41789cf94397142bd06

org.simantics.plant3d.product/META-INF/MANIFEST.MF
org.simantics.plant3d.product/plugin.xml
org.simantics.plant3d/.settings/org.eclipse.jdt.core.prefs
org.simantics.plant3d/plugin.xml

index 4730f353a0075c51fe6583bfb5f0df6033b46ba9..199456f5b4a92e064407b54cd12198ea25b85785 100644 (file)
@@ -5,7 +5,9 @@ Bundle-SymbolicName: org.simantics.plant3d.product;singleton:=true
 Bundle-Version: 1.0.0.qualifier
 Bundle-Activator: org.simantics.plant3d.product.Activator
 Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.ui;bundle-version="3.7.0"
+ org.eclipse.ui;bundle-version="3.7.0",
+ org.simantics.plant3d;bundle-version="1.0.0",
+ org.simantics.project;bundle-version="1.0.1"
 Bundle-ActivationPolicy: lazy
 Bundle-RequiredExecutionEnvironment: JavaSE-1.6
 Bundle-Vendor: VTT
index c7215caf947ee3c84d911b29f5c569a41d9e5e41..490a25e192d8354b905a769f675f6d378e125d1f 100644 (file)
       </product>
    </extension>
 
+   <extension
+         point="org.simantics.project.feature">
+      <feature
+            class="org.simantics.plant3d.project.P3DProjectFeature"
+            id="org.simantics.plant3d.project.feature"
+            label="Plant3D Project"
+            published="true">
+         <installGroup
+               id="org.simantics.plant3d.installGroup"
+               version="[1.0.0,2.0.0)">
+         </installGroup>
+      </feature>
+   </extension>
+   <extension
+         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"
+            id="org.simantics.plant3d.ModelBrowser"
+            name="Model Browser"
+            restorable="true">
+      </view>
+   </extension>
+   <extension
+         point="org.eclipse.ui.perspectives">
+      <perspective
+            class="org.simantics.plant3d.project.P3DPerspectiveFactory"
+            icon="icons/factory.png"
+            id="org.simantics.plant3d.perspective"
+            name="Plant3D">
+      </perspective>
+   </extension>
+   <extension
+         point="org.eclipse.ui.perspectiveExtensions">
+      <perspectiveExtension
+            targetID="org.simantics.plant3d.perspective">
+         <view
+               id="org.simantics.plant3d.ModelBrowser"
+               minimized="false"
+               ratio="0.3"
+               relationship="left"
+               relative="org.eclipse.ui.editorss">
+         </view>
+         <view
+               id="org.simantics.browsing.ui.graph.propertyView"
+               minimized="false"
+               ratio="0.7"
+               relationship="bottom"
+               relative="org.eclipse.ui.editorss"
+               visible="true">
+         </view>
+         <view
+               id="org.simantics.browsing.ui.graph.propertyView:*"
+               minimized="false"
+               relationship="stack"
+               relative="org.simantics.browsing.ui.graph.propertyView"
+               visible="false">
+         </view>
+         <view
+               id="org.simantics.browsing.ui.graph.propertyViewPinned:*"
+               minimized="false"
+               relationship="stack"
+               relative="org.simantics.browsing.ui.graph.propertyView"
+               visible="false">
+         </view>
+         <view
+               id="org.eclipse.ui.views.ContentOutline"
+               minimized="false"
+               ratio="0.8"
+               relationship="right"
+               relative="org.eclipse.ui.editorss"
+               visible="true">
+         </view>
+      </perspectiveExtension>
+   </extension>
+   <extension
+         point="org.simantics.ui.perspectiveContextBinding">
+      <binding
+            contextIds="org.simantics.plant3d.context"
+            perspectiveId="org.simantics.plant3d.perspective">
+      </binding>
+   </extension>
+   <extension
+         point="org.eclipse.ui.menus">
+      <menuContribution
+            allPopups="false"
+            locationURI="menu:#FileNewMenu">
+         <command
+               commandId="org.simantics.plant3d.newPlant"
+               label="New Plant"
+               style="push">
+         </command>
+         <command
+               commandId="org.simantics.plant3d.newCSGModel"
+               label="New CSG Model"
+               style="push">
+         </command>
+      </menuContribution>
+   </extension>
 </plugin>
index c537b63063ce6052bdc49c5fd0745b078f162c90..0c68a61dca867ceb49e79d2402935261ec3e3809 100644 (file)
@@ -1,7 +1,7 @@
 eclipse.preferences.version=1
 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.source=1.8
index 29f03e32f7d392644b72b7378416454831c33e71..fe2eb710365bf831054890187265b1fde30af44c 100644 (file)
             type_uris="http://www.simantics.org/Plant3D-0.1/Plant">
       </adapter>
    </extension>
-   <extension
-         point="org.eclipse.ui.perspectives">
-      <perspective
-            class="org.simantics.plant3d.project.P3DPerspectiveFactory"
-            icon="icons/factory.png"
-            id="org.simantics.plant3d.perspective"
-            name="Plant3D">
-      </perspective>
-   </extension>
-   <extension
-         point="org.eclipse.ui.perspectiveExtensions">
-      <perspectiveExtension
-            targetID="org.simantics.plant3d.perspective">
-         <view
-               id="org.simantics.plant3d.ModelBrowser"
-               minimized="false"
-               ratio="0.3"
-               relationship="left"
-               relative="org.eclipse.ui.editorss">
-         </view>
-         <view
-               id="org.simantics.browsing.ui.graph.propertyView"
-               minimized="false"
-               ratio="0.7"
-               relationship="bottom"
-               relative="org.eclipse.ui.editorss"
-               visible="true">
-         </view>
-         <view
-               id="org.simantics.browsing.ui.graph.propertyView:*"
-               minimized="false"
-               relationship="stack"
-               relative="org.simantics.browsing.ui.graph.propertyView"
-               visible="false">
-         </view>
-         <view
-               id="org.simantics.browsing.ui.graph.propertyViewPinned:*"
-               minimized="false"
-               relationship="stack"
-               relative="org.simantics.browsing.ui.graph.propertyView"
-               visible="false">
-         </view>
-         <view
-               id="org.eclipse.ui.views.ContentOutline"
-               minimized="false"
-               ratio="0.8"
-               relationship="right"
-               relative="org.eclipse.ui.editorss"
-               visible="true">
-         </view>
-      </perspectiveExtension>
-   </extension>
-   <extension
-         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"
-            id="org.simantics.plant3d.ModelBrowser"
-            name="Model Browser"
-            restorable="true">
-      </view>
-   </extension>
    <extension
          point="org.eclipse.ui.menus">
-      <menuContribution
-            allPopups="false"
-            locationURI="menu:#FileNewMenu">
-         <command
-               commandId="org.simantics.plant3d.newPlant"
-               label="New Plant"
-               style="push">
-         </command>
-         <command
-               commandId="org.simantics.plant3d.newCSGModel"
-               label="New CSG Model"
-               style="push">
-         </command>
-      </menuContribution>
       <menuContribution
             allPopups="false"
             locationURI="toolbar:org.eclipse.ui.main.toolbar">
             commandId="org.simantics.plant3d.newCSGModel">
       </handler>
    </extension>
-   <extension
-         point="org.simantics.project.feature">
-      <feature
-            class="org.simantics.plant3d.project.P3DProjectFeature"
-            id="org.simantics.plant3d.project.feature"
-            label="Plant3D Project"
-            published="true">
-         <installGroup
-               id="org.simantics.plant3d.installGroup"
-               version="[1.0.0,2.0.0)">
-         </installGroup>
-      </feature>
-   </extension>
    <extension
          point="org.eclipse.ui.contexts">
       <context
             name="Plant3D Context">
       </context>
    </extension>
-   <extension
-         point="org.simantics.ui.perspectiveContextBinding">
-      <binding
-            contextIds="org.simantics.plant3d.context"
-            perspectiveId="org.simantics.plant3d.perspective">
-      </binding>
-   </extension>
    <extension
          point="org.simantics.browsing.ui.common.selectionProcessorBinding">
       <binding
          </implementation>
       </binding>
    </extension>
-
 </plugin>