Changeset 23282 in osm for applications/editors/josm/plugins/smed/src
- Timestamp:
- 2010-09-20T07:48:28+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/src/smed
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/src/smed/Smed.java
r23261 r23282 32 32 private JMenuItem item; 33 33 private SmedTabAction SmedTab; 34 private List<SmedPluggable> plugins = null; 34 35 35 36 public Smed(PluginInformation info) { … … 147 148 } 148 149 150 public void setPlugins(List<SmedPluggable> plugins) { 151 this.plugins = plugins; 152 153 } 154 149 155 } -
applications/editors/josm/plugins/smed/src/smed/SmedFile.java
r23261 r23282 2 2 3 3 import java.io.File; 4 5 import smed.plug.util.JARFileFilter;6 4 7 5 public class SmedFile extends File{ -
applications/editors/josm/plugins/smed/src/smed/menu/SmedMenuBar.java
r23271 r23282 1 1 package smed.menu; 2 2 3 import java.awt.Rectangle; 3 4 import java.awt.event.ActionEvent; 4 5 import java.awt.event.ActionListener; 5 6 import java.awt.event.KeyEvent; 7 import java.util.ArrayList; 8 import java.util.List; 6 9 10 import javax.swing.JCheckBox; 7 11 import javax.swing.JDialog; 8 12 import javax.swing.JMenu; … … 12 16 import javax.swing.SwingUtilities; 13 17 18 import smed.Smed; 19 import smed.list.JCheckBoxList; 14 20 import smed.menu.file.HideAction; 21 import smed.plug.ifc.SmedPluggable; 15 22 16 23 public class SmedMenuBar extends JMenuBar { … … 24 31 JMenu menu, submenu; 25 32 JMenuItem menuItem; 26 33 27 34 public SmedMenuBar() { 28 35 menuBar = new JMenuBar(); … … 40 47 public void actionPerformed(java.awt.event.ActionEvent e) { 41 48 HideAction hideAction = new HideAction(); 49 JDialog dialogHide = hideAction.getHideDialog(); 50 JCheckBoxList hideList = hideAction.getHideList(); 51 52 JCheckBox jCheckBox = new JCheckBox(); 53 jCheckBox.setBounds(new Rectangle(5, 10, 300, 20)); 54 jCheckBox.setText("hello world"); 42 55 43 JDialog dialogHide = hideAction.getHideDialog(); 56 List<JCheckBox> hideCBList = new ArrayList<JCheckBox>(); 57 58 /* 59 for(SmedPluggable p : Smed.getPlugins() ) { 60 61 } 62 */ 63 64 hideList.add(jCheckBox); 65 44 66 45 67 dialogHide.setVisible(true); -
applications/editors/josm/plugins/smed/src/smed/menu/file/HideAction.java
r23272 r23282 21 21 22 22 import smed.list.JCheckBoxList; 23 public class HideAction { 23 public class HideAction extends JDialog { 24 24 25 25 /** … … 32 32 private JCheckBoxList hideList = null; 33 33 private JCheckBox jCheckBox = null; 34 35 34 36 /** 35 37 * This method initializes hideDialog … … 86 88 * @return javax.swing.JList 87 89 */ 88 p rivateJCheckBoxList getHideList() {90 public JCheckBoxList getHideList() { 89 91 if (hideList == null) { 90 92 hideList = new JCheckBoxList(); 91 93 hideList.setBounds(new Rectangle(20, 15, 315, 370)); 92 94 hideList.setBorder(LineBorder.createBlackLineBorder()); 93 hideList.add(getJCheckBox());94 95 } 95 96 return hideList; 96 97 } 97 /**98 * This method initializes jCheckBox99 *100 * @return javax.swing.JCheckBox101 */102 private JCheckBox getJCheckBox() {103 if (jCheckBox == null) {104 jCheckBox = new JCheckBox();105 jCheckBox.setBounds(new Rectangle(10, 10, 100, 20));106 }107 return jCheckBox;108 }109 110 98 } -
applications/editors/josm/plugins/smed/src/smed/tabs/SmedTabAction.java
r23271 r23282 6 6 import java.awt.event.ActionEvent; 7 7 import java.awt.event.KeyEvent; 8 import java.util.List; 8 9 9 10 import javax.swing.JFrame; … … 16 17 17 18 import smed.menu.SmedMenuBar; 19 import smed.plug.ifc.SmedPluggable; 18 20 19 21 public class SmedTabAction extends JosmAction { -
applications/editors/josm/plugins/smed/src/smed/tabs/SmedTabbedPane.java
r23261 r23282 18 18 19 19 public class SmedTabbedPane extends JPanel { 20 21 private List<SmedPluggable> plugins = null; 20 22 21 23 /** … … 27 29 super(new GridLayout(1, 1)); 28 30 29 List<SmedPluggable> plugins = null;30 31 String pluginDirName = Main.pref.getPluginsDirectory().getAbsolutePath(); 31 32 try { 32 33 plugins = SmedPluginLoader.loadPlugins(new File(pluginDirName + "/splug")); 34 33 35 } catch (IOException e) { 34 36 e.printStackTrace();
Note:
See TracChangeset
for help on using the changeset viewer.