Salome HOME
Issue #1708: Export - Apply is enabled when no objects is selected
[modules/shaper.git] / src / ExchangePlugin / plugin-Exchange.xml
old mode 100644 (file)
new mode 100755 (executable)
index b8e7117..abd5f75
@@ -1,19 +1,24 @@
+<!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
 <plugin>
-  <workbench id="Features">
+  <workbench id="Part">
     <group id="Exchange">
-      <feature
-        id="Import"
-        title="Import"
-        tooltip="Import shape"
-        icon=":icons/import.png">
-        <file_selector
-          id="import_file_selector"
-          title="Import file"
-          path=""
-          formats="BREP,STEP" />
-        <!-- TODO: pass formats as validator 
-        <validator id="Format" parameters="BREP:BREPImport,STEP:STEPImport" /> 
-        -->
+      <feature id="Import" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png" document="Part">
+        <file_selector id="file_path" title="Import file" path="">
+          <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,STEP|STP:STEP,IGES|IGS:IGES,XAO:XAO" />
+        </file_selector>
+      </feature>
+      <feature id="Export" title="Export" tooltip="Export to file" icon="icons/Exchange/export.png">
+        <source path="export_widget.xml" />
+      </feature>
+      <feature id="Dump" title="Dump" tooltip="Dump python script" icon="icons/Exchange/dump.png">
+        <export_file_selector id="file_path"
+                              type="save"
+                              title="Dump to file"
+                              path="">
+          <validator id="ExchangePlugin_ExportFormat"
+                     parameters="py:Python" />
+        </export_file_selector>
       </feature>
     </group>
   </workbench>