]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui.dist/plugin.xml
Improve About view
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / plugin.xml
index 8521a2271b1414fb251e7346c5b5d43f900d0da2..02abdf274330156ed3d43858720bcff45085143f 100644 (file)
@@ -4,16 +4,40 @@
        <!-- Perspectives --> 
    <extension
          point="org.eclipse.ui.perspectives">
-      <perspective
-            name="SLC Distribution"
+               <perspective
+            name="SLC Repo"
             class="org.argeo.slc.client.ui.dist.DistributionPerspective"
             id="org.argeo.slc.client.ui.dist.distributionPerspective"
             icon="icons/distribution_perspective.gif">
-      </perspective>
+               </perspective>
+               <perspective
+            name="SLC Distribution"
+            class="org.argeo.slc.client.ui.dist.AnonymousDistributionPerspective"
+            id="org.argeo.slc.client.ui.dist.anonymousDistributionPerspective"
+            icon="icons/repo.gif">
+               </perspective>
    </extension>
    <!-- Views -->
    <extension
          point="org.eclipse.ui.views">
+      <view
+            class="org.argeo.eclipse.spring.SpringExtensionFactory"
+            id="org.argeo.slc.client.ui.dist.distributionsView"
+            icon="icons/search.gif"
+            name="Distributions">
+      </view>
+      <view
+            class="org.argeo.eclipse.spring.SpringExtensionFactory"
+            id="org.argeo.slc.client.ui.dist.anonymousDistributionsView"
+            icon="icons/search.gif"
+            name="Public Repository">
+      </view>
+      <view
+            class="org.argeo.slc.client.ui.dist.views.HelpView"
+            id="org.argeo.slc.client.ui.dist.helpView"
+            icon="icons/help.gif"
+            name="About">
+      </view>
       <view
             class="org.argeo.eclipse.spring.SpringExtensionFactory"
             id="org.argeo.slc.client.ui.dist.artifactsBrowser"
             icon="icons/search.gif"
             name="Query builder">
       </view>
-      <view
-            class="org.argeo.eclipse.spring.SpringExtensionFactory"
-            id="org.argeo.slc.client.ui.dist.distributionsView"
-            icon="icons/search.gif"
-            name="Distributions">
-      </view>
-          <view
+       <view
                 name="Progress View"
                 icon="icons/pview.gif"
                 category="org.eclipse.ui"
             defaultHandler="org.argeo.slc.client.ui.dist.commands.DisplayRepoInformation"
             id="org.argeo.slc.client.ui.dist.displayRepoInformation"
             name="Display repo info">
-       </command>
-               <!-- Workspaces CRUD --> 
-       <command
-            defaultHandler="org.argeo.slc.client.ui.dist.commands.PublishWorkspace"
-            id="org.argeo.slc.client.ui.dist.publishWorkspace"
-            name="Publish selected workspace">
        </command>
                <command
-            id="org.argeo.slc.client.ui.dist.createWorkspace"
-            defaultHandler="org.argeo.slc.client.ui.dist.commands.CreateWorkspace"
-            name="Create Workspace">
-       </command>
-       <command
-            id="org.argeo.slc.client.ui.dist.deleteWorkspace"
-            defaultHandler="org.argeo.slc.client.ui.dist.commands.DeleteWorkspace"
-            name="Delete chosen Workspace">
-       </command>
-       <command
             defaultHandler="org.argeo.slc.client.ui.dist.commands.ShowSizeColumn"
             id="org.argeo.slc.client.ui.dist.showSizeColumn"
             name="Show size column">
                        </state>
        </command>
 
-
-
                <!-- Command with Spring dependency injection -->
                <command
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
                        name="Remote Repo path">
                        </commandParameter>
        </command>
-               
                <command
             id="org.argeo.slc.client.ui.dist.runInOSGi"
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
                        id="workspace"
                        name="Workspace Name">
                        </commandParameter>
-       </command>
-               <command
-            id="org.argeo.slc.client.ui.dist.normalizeDistribution"
-            defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
-            name="Normalize Distribution">
-            <commandParameter
-                       id="workspace"
-                       name="Workspace Name">
-                       </commandParameter>
        </command>
                <command
             id="org.argeo.slc.client.ui.dist.registerRepository"
             name="Fetch repository">
             <commandParameter
                        id="targetRepoPath"
-                       name="Target repo path">
+                       name="Target repo uri">
                        </commandParameter>
        </command>
        
                <!-- TO MANIPULATE WORKSPACES -->
+               <!-- Workspaces CRUD --> 
+               <command
+            id="org.argeo.slc.client.ui.dist.createWorkspace"
+            defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+            name="Create Workspace">
+            <commandParameter
+                       id="workspacePrefix"
+                       name="Workspace prefix">
+                       </commandParameter>
+            <commandParameter
+                       id="targetRepoPath"
+                       name="Target repo node path">
+                       </commandParameter>
+       </command>
+               <command
+                       id="org.argeo.slc.client.ui.dist.deleteWorkspace"
+                       defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+                       name="Delete chosen Workspace">
+                       <commandParameter
+                               id="workspaceName"
+                               name="Workspace name">
+                       </commandParameter>
+                       <commandParameter
+                               id="targetRepoPath"
+                               name="Target repo node path">
+                       </commandParameter>
+       </command>
+       <command
+            id="org.argeo.slc.client.ui.dist.publishWorkspace"
+            defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+            name="Publish selected workspace">
+                       <commandParameter
+                               id="workspaceName"
+                               name="Workspace name">
+                       </commandParameter>
+                       <commandParameter
+                               id="targetRepoPath"
+                               name="Target repo node path">
+                       </commandParameter>
+       </command>
+       <command
+            id="org.argeo.slc.client.ui.dist.normalizeDistribution"
+            defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+            name="Normalize Distribution">
+                       <commandParameter
+                               id="workspaceName"
+                               name="Workspace name">
+                       </commandParameter>
+                       <commandParameter
+                               id="targetRepoPath"
+                               name="Target repo node path">
+                       </commandParameter>
+       </command>
                <command
             id="org.argeo.slc.client.ui.dist.copyWorkspace"
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
             name="Copy chosen Workspace">
             <commandParameter
-                       id="org.argeo.slc.client.ui.dist.workspaceName"
-                       name="Workspace Name">
+                       id="srcWkspName"
+                       name="Source Workspace Name">
+                       </commandParameter>
+            <commandParameter
+                       id="targetRepoPath"
+                       name="Target repo node path">
+                       </commandParameter>
+       </command>
+       <command
+            id="org.argeo.slc.client.ui.dist.mergeWorkspaces"
+            defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+            name="Copy chosen Workspace">
+            <commandParameter
+                       id="srcWkspName"
+                       name="Source Workspace Name">
+                       </commandParameter>
+          <commandParameter
+                       id="srcRepoPath"
+                       name="Source Repo Node path ">
+                       </commandParameter>
+           <commandParameter
+                       id="targetWkspName"
+                       name="Target Workspace Name">
+                       </commandParameter>
+            <commandParameter
+                       id="targetRepoPath"
+                       name="Target repo node path">
                        </commandParameter>
        </command>
        <command
             </command>
             -->
         </menuContribution>
+        <menuContribution
+               locationURI="toolbar:org.argeo.slc.client.ui.dist.anonymousDistributionsView">
+            <command
+               commandId="org.argeo.slc.client.ui.dist.refreshDistributionsView"
+                icon="icons/refresh.png"
+                label="Refresh"
+                tooltip="Refresh distributions view">
+            </command>
+        </menuContribution>
         <!-- Queries --> 
                <!-- <menuContribution
                 allPopups="false"