Changeset 23426 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-10-01T00:15:36+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/OSeaM.java
r23419 r23426 12 12 13 13 private OSeaMAction osm = null; 14 public SmedPluginManager manager = null; 14 15 15 16 @Override … … 17 18 osm = new OSeaMAction(); 18 19 osm.init(); 20 manager.setString("it works realy fine"); 19 21 return osm.getPM01SeaMap(); 20 22 } … … 28 30 @Override 29 31 public void setPluginManager(SmedPluginManager manager) { 30 // TODO Auto-generated method stub 31 32 this.manager = manager; 32 33 } 33 34 -
applications/editors/josm/plugins/smed/plugs/smed_about/build.xml
r23417 r23426 50 50 <property name="plugin.dist.dir" value="../../dist"/> 51 51 <property name="ant.build.javac.target" value="1.5"/> 52 <property name="plugin.jar" value="${plugin.dist.dir}/0 2_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/>52 <property name="plugin.jar" value="${plugin.dist.dir}/03_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/> 53 53 54 54 <!-- -
applications/editors/josm/plugins/smed/plugs/smed_ex/src/smed_ex/SmedEx.java
r23419 r23426 18 18 19 19 private boolean visible = true; 20 public SmedPluginManager manager = null; 20 21 21 22 private JPanel jPanel = null; // @jve:decl-index=0:visual-constraint="78,30" … … 48 49 @Override 49 50 public void setPluginManager(SmedPluginManager manager) { 50 // TODO Auto-generated method stub 51 51 this.manager = manager; 52 52 } 53 53 … … 82 82 @Override 83 83 public void actionPerformed(ActionEvent e) { 84 JOptionPane.showMessageDialog( null, "it works" ); 84 if(manager.getString() == null) JOptionPane.showMessageDialog( null, "it works" ); 85 else JOptionPane.showMessageDialog( null, manager.getString() ); 85 86 } 86 87 -
applications/editors/josm/plugins/smed/src/smed/plug/ifc/SmedPluggable.java
r23419 r23426 6 6 7 7 public interface SmedPluggable { 8 8 9 9 boolean start(); 10 10 boolean stop(); -
applications/editors/josm/plugins/smed/src/smed/plug/ifc/SmedPluginManager.java
r23236 r23426 2 2 3 3 public interface SmedPluginManager { 4 void showVisualMessage(String message); 4 5 void showVisualMessage(String message); 6 void setString(String string); 7 String getString(); 5 8 } -
applications/editors/josm/plugins/smed/src/smed/tabs/SmedTabbedPane.java
r23419 r23426 17 17 import smed.io.SmedFile; 18 18 import smed.plug.ifc.SmedPluggable; 19 import smed.plug.ifc.SmedPluginManager; 20 import smed.plug.manager.SmedPluginManagerImpl; 19 21 import smed.plug.util.SmedPluginLoader; 20 22 … … 44 46 int i = 0; 45 47 SmedFile splugDir = new SmedFile(pluginDirName + "/splug"); 48 SmedPluginManager manager = new SmedPluginManagerImpl(); 46 49 47 50 for(SmedPluggable p : plugins) { 51 p.setPluginManager(manager); 52 48 53 if(splugDir.isVisible(p.getFileName())) { 49 54 panel = p.getComponent();
Note:
See TracChangeset
for help on using the changeset viewer.