<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
- <!-- Perspectives -->
- <extension
- point="org.eclipse.ui.perspectives">
- <perspective
- name="SLC Distribution"
+ <!-- PERSPECTIVES -->
+ <extension
+ point="org.eclipse.ui.perspectives">
+ <perspective
+ name="SLC Factory"
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 -->
+ <!-- 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
+ 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/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
- class="org.argeo.eclipse.spring.SpringExtensionFactory"
- id="org.argeo.slc.client.ui.dist.distributionsView"
- icon="icons/search.gif"
- name="Distributions">
- </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 -->
- <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.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>
+
+ <!-- Distribution Managemnt -->
<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
id="org.argeo.slc.client.ui.dist.normalizeDistribution"
- defaultHandler="org.argeo.slc.client.ui.dist.commands.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.slc.client.ui.dist.commands.CopyWorkspace"
- name="Copy chosen Workspace">
+
+ <command
+ 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>
+ <!-- Repository Management -->
<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>
+ 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="Fetch repository">
<commandParameter
id="targetRepoPath"
- name="Target repo path">
+ name="Target repo uri">
</commandParameter>
</command>
-
- <!-- TO MANIPULATE WORKSPACES -->
+
+ <!-- <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="Generate Binaries...">
+ <commandParameter
+ id="param.repoNodePath"
+ name="Repo node path">
+ </commandParameter>
+ <commandParameter
+ id="param.workspaceName"
+ name="Workspace name">
+ </commandParameter>
+ <commandParameter
+ id="param.modulePath"
+ name="Module path name">
+ </commandParameter>
+ </command>
+
+ <command
+ id="org.argeo.slc.client.ui.dist.normalizeWorkspace"
+ defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+ name="Normalize 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.manageWorkspaceAuth"
defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
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">
+ </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>
+
+ <!-- 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.copyWorkspace"
+ defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+ name="Copy chosen Workspace">
+ <commandParameter
+ id="srcWkspName"
+ name="Source 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.createLocalJavaWorkspace"
+ defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+ name="Create Local Java Workspace">
+ <commandParameter
+ 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>
+ <commandParameter
+ id="modulePath"
+ name="Module Path"
+ optional="true">
+ </commandParameter>
+ </command>
<command
id="org.argeo.slc.client.ui.dist.refreshDistributionsView"
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
- id="org.argeo.slc.client.ui.dist.refreshDistributionOverviewPage"
- defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
- name="Refresh distribution overview page">
+ 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.deleteArtifacts"
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.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>
+ <!-- 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.runInOSGi"
+ commandId="org.argeo.slc.client.ui.dist.showSizeColumn"
icon="icons/showSize.gif"
- label="Run in OSGi"
- tooltip="Run in a spearate OSGi runtime">
+ 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 -->
<!-- <menuContribution
</menu>
</menuContribution> -->
</extension>
- <extension
+ <extension
point="org.eclipse.ui.activities">
<!-- TODO: find a way to exclude evrything -->
<activityPatternBinding