]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui.dist/plugin.xml
+ clean repo model
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / plugin.xml
index 02abdf274330156ed3d43858720bcff45085143f..97637957699dde5dd421260980c348ab8fac6f8b 100644 (file)
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?eclipse version="3.4"?>
 <plugin>
-       <!-- Perspectives --> 
-   <extension
-         point="org.eclipse.ui.perspectives">
+       <!-- PERSPECTIVES --> 
+       <extension
+               point="org.eclipse.ui.perspectives">
                <perspective
-            name="SLC Repo"
+            name="SLC Factory"
             class="org.argeo.slc.client.ui.dist.DistributionPerspective"
             id="org.argeo.slc.client.ui.dist.distributionPerspective"
             icon="icons/distribution_perspective.gif">
             icon="icons/repo.gif">
                </perspective>
    </extension>
-   <!-- Views -->
+   <!-- VIEWS -->
    <extension
-         point="org.eclipse.ui.views">
-      <view
+               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
+               </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
+               </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
+               </view>
+               <view
             class="org.argeo.eclipse.spring.SpringExtensionFactory"
             id="org.argeo.slc.client.ui.dist.artifactsBrowser"
             icon="icons/packageBrowser.gif"
             name="Artifacts browser">
-      </view>
-      <view
+               </view>
+               <view
             class="org.argeo.eclipse.spring.SpringExtensionFactory"
             id="org.argeo.slc.client.ui.dist.queryArtifactsForm"
             icon="icons/searchForm.gif"
             name="Artifacts Form">
-      </view>
-      <view
+               </view>
+               <view
             class="org.argeo.eclipse.spring.SpringExtensionFactory"
             id="org.argeo.slc.client.ui.dist.queryBundlesForm"
             icon="icons/searchForm.gif"
-            name="Bundles Form">
-      </view>
-      <view
+                       name="Bundles Form">
+               </view>
+               <view
             class="org.argeo.eclipse.spring.SpringExtensionFactory"
             id="org.argeo.slc.client.ui.dist.queryArtifactsText"
             icon="icons/search.gif"
             name="Query builder">
-      </view>
-       <view
+               </view>
+               <view
                 name="Progress View"
                 icon="icons/pview.gif"
                 category="org.eclipse.ui"
                 class="org.eclipse.ui.ExtensionFactory:progressView"
                 id="org.eclipse.ui.views.ProgressView">
-          </view>
-   </extension>
-   <!-- Editors -->
-   <extension
-           point="org.eclipse.ui.editors">
-            <editor
-                 class="org.argeo.slc.client.ui.dist.editors.GenericBundleEditor"
-              id="org.argeo.slc.client.ui.dist.genericBundleEditor"
-              name="Bundle editor"
-              icon="icons/artifactVersionBase.gif"
-              default="false">
-        </editor>
-            <editor
-                 class="org.argeo.slc.client.ui.dist.editors.DistributionEditor"
-              id="org.argeo.slc.client.ui.dist.distributionEditor"
-              name="Distribution editor"
-              icon="icons/distribution_perspective.gif"
-              default="false">
-        </editor>
-    </extension>
-    <!-- Commands --> 
+               </view>
+       </extension>
+       <!-- EDITORS -->
+       <extension
+               point="org.eclipse.ui.editors">
+               <editor
+                       class="org.argeo.slc.client.ui.dist.editors.GenericBundleEditor"
+                       id="org.argeo.slc.client.ui.dist.genericBundleEditor"
+                       name="Bundle editor"
+                       icon="icons/artifactVersionBase.gif"
+                       default="false">
+               </editor>
+               <editor
+                       class="org.argeo.eclipse.spring.SpringExtensionFactory"
+                       id="org.argeo.slc.client.ui.dist.artifactVersionEditor"
+                       name="Artifact Version Editor"
+                       icon="icons/artifactVersionBase.gif"
+                       default="false">
+               </editor>
+               <editor
+                       class="org.argeo.eclipse.spring.SpringExtensionFactory"
+                       id="org.argeo.slc.client.ui.dist.modularDistVersionEditor"
+                       name="Modular Distribution Version Editor"
+                       icon="icons/modularDistributionVersion.gif"
+                       default="false">
+               </editor>
+               <editor
+                       class="org.argeo.eclipse.spring.SpringExtensionFactory"
+                       id="org.argeo.slc.client.ui.dist.distWorkspaceEditor"
+                       name="Distribution workspace editor"
+                       icon="icons/distribution_perspective.gif"
+                       default="false">
+               </editor>
+       </extension>
+
+    <!-- COMMANDS  --> 
        <extension
          point="org.eclipse.ui.commands">
-               <!-- Command which do not need dependency injection -->
+               
+               <!-- Distribution Managemnt -->
                <command
-            defaultHandler="org.argeo.slc.client.ui.dist.commands.RefreshArtifactBrowser"
-            id="org.argeo.slc.client.ui.dist.refreshArtifactBrowser"
-            name="Refresh Artifact Browser">
+            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
-            defaultHandler="org.argeo.slc.client.ui.dist.commands.DisplayRepoInformation"
-            id="org.argeo.slc.client.ui.dist.displayRepoInformation"
-            name="Display repo info">
+            id="org.argeo.slc.client.ui.dist.openModuleEditor"
+            defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+            name="Open Workspace Editor">
+                       <commandParameter
+                               id="param.repoNodePath"
+                               name="Repo node path">
+                       </commandParameter>
+                       <commandParameter
+                               id="param.repoUri"
+                               name="Repo URI">
+                       </commandParameter>
+                       <commandParameter
+                               id="param.workspaceName"
+                               name="Workspace name">
+                       </commandParameter>
+                       <commandParameter
+                               id="param.modulePath"
+                               name="Module path name">
+                       </commandParameter>
        </command>
-               <command
-            defaultHandler="org.argeo.slc.client.ui.dist.commands.ShowSizeColumn"
-            id="org.argeo.slc.client.ui.dist.showSizeColumn"
-            name="Show size column">
-            <state 
-                               id="org.argeo.slc.client.ui.dist.showSizeColumn.toggleState">
-                               <class class="org.eclipse.jface.commands.ToggleState"> 
-                                       <parameter
-                                               name="default"
-                                       value="true" />
-                               </class>
-                       </state>
+       
+       <!-- Repository Management --> 
+       <command
+            id="org.argeo.slc.client.ui.dist.registerRepository"
+            defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+            name="Add Repository">
        </command>
-
-               <!-- Command with Spring dependency injection -->
-               <command
+       <command
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
             id="org.argeo.slc.client.ui.dist.unregisterRemoteRepo"
             name="Unregister remote repository">
                        </commandParameter>
        </command>
                <command
-            id="org.argeo.slc.client.ui.dist.runInOSGi"
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
-            name="Run in OSGi">
-            <commandParameter
-                       id="workspace"
-                       name="Workspace Name">
-                       </commandParameter>
+            id="org.argeo.slc.client.ui.dist.displayRepoInformation"
+            name="Display repository information">
        </command>
+       
+       <!-- Workspace Management -->
                <command
-            id="org.argeo.slc.client.ui.dist.registerRepository"
+            id="org.argeo.slc.client.ui.dist.openWorkspaceEditor"
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
-            name="Add Repository">
+            name="Open Workspace Editor">
+                       <commandParameter
+                               id="param.repoNodePath"
+                               name="Repo node path">
+                       </commandParameter>
+                       <commandParameter
+                               id="param.repoUri"
+                               name="Repo URI">
+                       </commandParameter>
+                       <commandParameter
+                               id="param.workspaceName"
+                               name="Workspace name">
+                       </commandParameter>
        </command>
-       
        <command
             id="org.argeo.slc.client.ui.dist.fetch"
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
                        name="Target repo uri">
                        </commandParameter>
        </command>
-       
-               <!-- TO MANIPULATE WORKSPACES -->
-               <!-- Workspaces CRUD --> 
-               <command
-            id="org.argeo.slc.client.ui.dist.createWorkspace"
+       
+       <!-- <command
+            defaultHandler="org.argeo.slc.client.ui.dist.commands.MarkAsRelevantCategory"
+            id="org.argeo.slc.client.ui.dist.markAsRelevantCategory"
+            name="Mark as relevant category">
+       </command> --> 
+       
+       <command
+            id="org.argeo.slc.client.ui.dist.openGenerateBinariesWizard"
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
-            name="Create Workspace">
-            <commandParameter
-                       id="workspacePrefix"
-                       name="Workspace prefix">
-                       </commandParameter>
+            name="Generate Binaries...">
             <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">
+                               id="param.repoNodePath"
+                               name="Repo node path">
+                       </commandParameter>
                        <commandParameter
-                               id="workspaceName"
+                               id="param.workspaceName"
                                name="Workspace name">
                        </commandParameter>
                        <commandParameter
-                               id="targetRepoPath"
-                               name="Target repo node path">
+                               id="param.modulePath"
+                               name="Module path name">
                        </commandParameter>
        </command>
+       
        <command
-            id="org.argeo.slc.client.ui.dist.publishWorkspace"
+            id="org.argeo.slc.client.ui.dist.normalizeWorkspace"
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
-            name="Publish selected workspace">
+            name="Normalize Workspace">
                        <commandParameter
                                id="workspaceName"
                                name="Workspace name">
                        </commandParameter>
        </command>
        <command
-            id="org.argeo.slc.client.ui.dist.normalizeDistribution"
+            id="org.argeo.slc.client.ui.dist.manageWorkspaceAuth"
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
-            name="Normalize Distribution">
+            name="Manage workspace authorizations">
+            <commandParameter
+                       id="org.argeo.slc.client.ui.dist.workspaceName"
+                       name="Workspace Name">
+                       </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">
                                name="Target repo node path">
                        </commandParameter>
        </command>
+       
                <command
-            id="org.argeo.slc.client.ui.dist.copyWorkspace"
+            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>
+       
+       <!-- Workspaces CRUD --> 
+               <!-- Generic new and copy workspace -->
+               <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.mergeWorkspaces"
+            id="org.argeo.slc.client.ui.dist.copyWorkspace"
             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>
+       <!-- Specific for local java workspaces --> 
        <command
-            id="org.argeo.slc.client.ui.dist.manageWorkspaceAuth"
+            id="org.argeo.slc.client.ui.dist.createLocalJavaWorkspace"
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
-            name="Manage workspace authorizations">
+            name="Create Local Java Workspace">
             <commandParameter
-                       id="org.argeo.slc.client.ui.dist.workspaceName"
+                       id="workspacePrefix"
+                       name="Workspace prefix">
+                       </commandParameter>
+       </command>
+               <command
+            id="org.argeo.slc.client.ui.dist.copyLocalJavaWorkspace"
+            defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+            name="Copy chosen local Java Workspace">
+            <commandParameter
+                       id="srcWkspName"
+                       name="Source Workspace Name">
+                       </commandParameter>
+       </command>
+               
+               <!-- Not terminated delete command - does not really work -->
+       <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>
+       
+               <!-- Advanced commands --> 
+               <command
+            id="org.argeo.slc.client.ui.dist.doNothing"
+            defaultHandler="org.argeo.slc.client.ui.dist.commands.DoNothing"
+            name="Advanced">
+       </command>
+               <command
+            id="org.argeo.slc.client.ui.dist.runInOsgi"
+            defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+            name="Run in OSGi">
+            <commandParameter
+                       id="workspaceName"
                        name="Workspace Name">
                        </commandParameter>
        </command>
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
             name="Refresh Distributions View">
        </command>
+               
+               <!-- Legacy -->
+               <command
+            defaultHandler="org.argeo.slc.client.ui.dist.commands.RefreshArtifactBrowser"
+            id="org.argeo.slc.client.ui.dist.refreshArtifactBrowser"
+            name="Refresh Artifact Browser">
+       </command>
+               
+       <command
+            defaultHandler="org.argeo.slc.client.ui.dist.commands.ShowSizeColumn"
+            id="org.argeo.slc.client.ui.dist.showSizeColumn"
+            name="Show size column">
+            <state 
+                               id="org.argeo.slc.client.ui.dist.showSizeColumn.toggleState">
+                               <class class="org.eclipse.jface.commands.ToggleState"> 
+                                       <parameter
+                                               name="default"
+                                       value="true" />
+                               </class>
+                       </state>
+       </command>
        <command
             id="org.argeo.slc.client.ui.dist.refreshDistributionOverviewPage"
             defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
             name="Remove selected artifacts">
        </command>
     </extension>
+    
+       <!-- MENU CONTRIBUTIONS --> 
        <extension
          id="menu:org.eclipse.ui.main.menu"
          point="org.eclipse.ui.menus">
-    
-         <!-- View Specific Menus --> 
-               <menuContribution
-               locationURI="toolbar:org.argeo.slc.client.ui.dist.artifactsBrowser">
-            <command
-               commandId="org.argeo.slc.client.ui.dist.showSizeColumn"
-                icon="icons/showSize.gif"
-                style="toggle" 
-                label="Show sizes"
-                tooltip="Warning: showing size column might reduce overall browser reactivity">
-            </command>
-                       <command
-               commandId="org.argeo.slc.client.ui.dist.refreshArtifactBrowser"
-                icon="icons/refresh.png"
-                       label="Refresh"
-                tooltip="Refresh the whole browser">
-            </command>
-        </menuContribution>
+               <!-- Distributions view tool bar --> 
                <menuContribution
                locationURI="toolbar:org.argeo.slc.client.ui.dist.distributionsView">
             <command
                 label="Register repository"
                 tooltip="Register a remote repository">
             </command>
-            <command
-               commandId="org.argeo.slc.client.ui.dist.refreshDistributionsView"
-                icon="icons/refresh.png"
-                label="Refresh"
-                tooltip="Refresh distributions view">
-            </command>
-           <!--
-            <command
+             <command
+                commandId="org.argeo.slc.client.ui.dist.doNothing"
+                 id="org.argeo.slc.client.ui.dist.advancedMenu"
+                 icon="icons/more.gif"
+                 tooltip="Access to advanced commands"
+                 style="pulldown">
+           </command>
+        </menuContribution>
+               <menuContribution locationURI="menu:org.argeo.slc.client.ui.dist.advancedMenu">
+               <command
+                               commandId="org.argeo.slc.client.ui.dist.refreshDistributionsView"
+                               icon="icons/refresh.png"
+                               label="Refresh"
+                               tooltip="Force the full refresh of the distribution tree (close all open connections)">
+                       </command>
+            <!-- <command
                commandId="org.argeo.slc.client.ui.dist.runInOSGi"
                 icon="icons/showSize.gif"
                 label="Run in OSGi"
                 tooltip="Run in a spearate OSGi runtime">
             </command>
             -->
-        </menuContribution>
+               </menuContribution>
+               <!-- Anonymous distribution view toolbar -->             
         <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">
+                tooltip="Force the full refresh of the distribution tree (close all open connections)">
+            </command>
+        </menuContribution>
+        <!-- Artifact Browser Tool bar --> 
+               <menuContribution
+               locationURI="toolbar:org.argeo.slc.client.ui.dist.artifactsBrowser">
+            <command
+               commandId="org.argeo.slc.client.ui.dist.showSizeColumn"
+                icon="icons/showSize.gif"
+                style="toggle" 
+                label="Show sizes"
+                tooltip="Warning: showing size column might reduce overall browser reactivity">
+            </command>
+                       <command
+               commandId="org.argeo.slc.client.ui.dist.refreshArtifactBrowser"
+                icon="icons/refresh.png"
+                       label="Refresh"
+                tooltip="Refresh the whole browser">
             </command>
         </menuContribution>
         <!-- Queries --> 
              </menu>
           </menuContribution> -->
        </extension>
-  <extension
+       <extension
            point="org.eclipse.ui.activities">
         <!-- TODO: find a way to exclude evrything -->
         <activityPatternBinding