+ register a default command in both RAP and RCP security base apps to provide generi...
[lgpl/argeo-commons.git] / security / plugins / org.argeo.security.ui.rap / plugin.xml
index c85c9666df144a9dd9dce86bc0af956c71c3875c..49506de26c1c7f9af3cfd03568babb9d8fd830d8 100644 (file)
      </menuContribution> -->
   </extension>
 
-   <extension point="org.eclipse.ui.commands">
-      <command
-            id="org.argeo.security.ui.rap.openChangePasswordDialog"
-            defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
-            name="Change Password">
-      </command>
-      <command
-            id="org.argeo.security.ui.rap.mainMenuCommand"
-            defaultHandler="org.argeo.security.ui.commands.OpenHomePerspective"
-            name="Main">
-      </command>
-    </extension>
+       <!-- COMMANDS --> 
+       <extension point="org.eclipse.ui.commands">
+               <command
+                       id="org.argeo.security.ui.rap.openChangePasswordDialog"
+                       defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+                       name="Change Password">
+               </command>
+               <command
+                       id="org.argeo.security.ui.rap.mainMenuCommand"
+                       defaultHandler="org.argeo.security.ui.commands.OpenHomePerspective"
+                       name="Main">
+               </command>
+               
+       <!-- Register a default command that enable an "open file" action in a single sourced application  -->  
+               <command
+                       defaultHandler="org.argeo.eclipse.spring.SpringExtensionFactory"
+                       id="org.argeo.security.ui.specific.openFile"
+                       name="OpenFile">
+                       <commandParameter
+                       id="param.fileName"
+                       name="The name of the file to open (optional)">
+                       </commandParameter>
+            <commandParameter
+                       id="param.fileURI"
+                       name="The URI of this file on the server">
+                       </commandParameter>
+                       <commandParameter
+                       id="param.filePath"
+                       name="The absolute path of this file on the server file system">
+                       </commandParameter>
+               </command>
+       </extension>
+       <!-- SERVICE HANDLERS --> 
+       <extension point="org.eclipse.rap.ui.serviceHandler">
+               <!-- The required rap specific handler to call the open file command over the internet-->
+               <serviceHandler
+                       class="org.argeo.eclipse.ui.specific.OpenFileService"
+                       id="org.argeo.security.ui.specific.openFileService">
+               </serviceHandler>
+       </extension>
     
-  <extension
+       <extension
            point="org.eclipse.ui.activities">
         <activity
               description="Anonymous"