|
From: <pat...@us...> - 2010-01-05 20:56:40
|
Revision: 1007
http://cishell.svn.sourceforge.net/cishell/?rev=1007&view=rev
Author: pataphil
Date: 2010-01-05 20:56:33 +0000 (Tue, 05 Jan 2010)
Log Message:
-----------
* Added shortcut keys to Load, Save, View, and View With operations.
Modified Paths:
--------------
trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/load.properties
trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/save.properties
trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/save.xml
trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/view.properties
trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/viewwith.properties
trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveFactory.java
Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/load.properties
===================================================================
--- trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/load.properties 2010-01-04 20:01:51 UTC (rev 1006)
+++ trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/load.properties 2010-01-05 20:56:33 UTC (rev 1007)
@@ -1,6 +1,7 @@
menu_path=File/start
label=Load...
-description=This converter allows users to select file from the file system and load it to Data Model window
+shortcut=ctrl+alt+o
+description=This allows users to select file from the file system and load it to Data Model window
in_data=null
out_data=java.lang.Object
service.pid=org.cishell.reference.gui.persistence.load.FileLoad
Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/save.properties
===================================================================
--- trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/save.properties 2010-01-04 20:01:51 UTC (rev 1006)
+++ trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/save.properties 2010-01-05 20:56:33 UTC (rev 1007)
@@ -1,7 +1,10 @@
menu_path=File/start
label=Save...
+shortcut=ctrl+alt+s
description=Saves data to disk
in_data=java.lang.Object
out_data=null
service.pid=org.cishell.reference.gui.persistence.save.Save
-remoteable=false
+remoteable=true
+prefs_published=local
+receive_prefs=true
\ No newline at end of file
Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/save.xml
===================================================================
--- trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/save.xml 2010-01-04 20:01:51 UTC (rev 1006)
+++ trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/save.xml 2010-01-05 20:56:33 UTC (rev 1007)
@@ -6,7 +6,7 @@
<reference name="MTS" interface="org.osgi.service.metatype.MetaTypeService"/>
<service>
- <provide interface=
- "org.cishell.framework.algorithm.AlgorithmFactory"/>
+ <provide interface="org.cishell.framework.algorithm.AlgorithmFactory"/>
+ <provide interface="org.osgi.service.cm.ManagedService"/>
</service>
</component>
\ No newline at end of file
Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/view.properties
===================================================================
--- trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/view.properties 2010-01-04 20:01:51 UTC (rev 1006)
+++ trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/view.properties 2010-01-05 20:56:33 UTC (rev 1007)
@@ -1,5 +1,6 @@
menu_path=File/additions
label=View...
+shortcut=ctrl+alt+v
description=This algorithm does this and this...
in_data=java.lang.Object
out_data=null
Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/viewwith.properties
===================================================================
--- trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/viewwith.properties 2010-01-04 20:01:51 UTC (rev 1006)
+++ trunk/clients/gui/org.cishell.reference.gui.persistence/OSGI-INF/viewwith.properties 2010-01-05 20:56:33 UTC (rev 1007)
@@ -1,5 +1,6 @@
menu_path=File/additions
label=View with...
+shortcut=ctrl+alt+w
description=This algorithm does this and this...
in_data=java.lang.Object
out_data=null
Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveFactory.java
===================================================================
--- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveFactory.java 2010-01-04 20:01:51 UTC (rev 1006)
+++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveFactory.java 2010-01-05 20:56:33 UTC (rev 1007)
@@ -7,6 +7,8 @@
import org.cishell.framework.algorithm.Algorithm;
import org.cishell.framework.algorithm.AlgorithmFactory;
import org.cishell.framework.data.Data;
+import org.osgi.service.cm.ConfigurationException;
+import org.osgi.service.cm.ManagedService;
import org.osgi.service.component.ComponentContext;
/**
@@ -16,7 +18,7 @@
* no final file:X->file-ext:* converter.
*
*/
-public class SaveFactory implements AlgorithmFactory {
+public class SaveFactory implements AlgorithmFactory, ManagedService {
private CIShellContext ciShellContext;
/**
@@ -27,6 +29,9 @@
ciShellContext =
new LocalCIShellContext(componentContext.getBundleContext());
}
+
+ public void updated(Dictionary properties) throws ConfigurationException {
+ }
/**
* Create a Save algorithm
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|