Changeset 23419 in osm for applications/editors/josm/plugins/smed/src
- Timestamp:
- 2010-09-30T21:41:19+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/src/smed
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/src/smed/menu/file/TabManager.java
r23389 r23419 3 3 4 4 import javax.swing.DefaultListModel; 5 import javax.swing.I con;5 import javax.swing.ImageIcon; 6 6 import javax.swing.JComponent; 7 7 import javax.swing.JDialog; … … 16 16 import java.awt.event.ActionEvent; 17 17 import java.awt.event.ActionListener; 18 import java.awt.event.KeyEvent;19 import java.io.IOException;20 18 import java.util.List; 21 19 … … 334 332 int i = 0; 335 333 JTabbedPane tabbedPane = SmedTabbedPane.getTabbedPane(); 336 Icon icon = null;337 334 338 335 if(plugins != null) { … … 352 349 353 350 tabbedPane.removeAll(); 354 355 351 JComponent panel = null; 352 ImageIcon icon = null; 356 353 357 354 for(SmedPluggable p : plugins) { 358 355 if(splugDir.isVisible(p.getFileName()) && !splugDir.isDeleted(p.getFileName())) { 359 356 panel = p.getComponent(); 360 357 icon = p.getIcon(); 358 361 359 tabbedPane.addTab(p.getName(),icon, panel, p.getInfo()); 362 360 } -
applications/editors/josm/plugins/smed/src/smed/plug/ifc/SmedPluggable.java
r23382 r23419 1 1 package smed.plug.ifc; 2 2 3 import javax.swing.ImageIcon; 3 4 import javax.swing.JComponent; 4 5 … … 10 11 String getName(); 11 12 String getFileName(); 13 ImageIcon getIcon(); 12 14 String getInfo(); 13 15 JComponent getComponent(); -
applications/editors/josm/plugins/smed/src/smed/tabs/SmedTabAction.java
r23393 r23419 68 68 69 69 //Display the window. 70 frame.addWindowListener(new java.awt.event.WindowAdapter() { 71 public void windowClosing(java.awt.event.WindowEvent e) { 72 osmItem.setEnabled(true); 73 74 closeDialog(); 75 } 76 }); 70 77 frame.setSize(new Dimension(420, 460)); 71 78 // frame.pack(); -
applications/editors/josm/plugins/smed/src/smed/tabs/SmedTabbedPane.java
r23382 r23419 8 8 import java.util.List; 9 9 10 import javax.swing.I con;10 import javax.swing.ImageIcon; 11 11 import javax.swing.JComponent; 12 12 import javax.swing.JPanel; … … 38 38 39 39 if(plugins != null) { 40 I con icon = null;40 ImageIcon icon = null; 41 41 tabbedPane = new JTabbedPane(); 42 42 43 43 JComponent panel; 44 44 int i = 0; … … 48 48 if(splugDir.isVisible(p.getFileName())) { 49 49 panel = p.getComponent(); 50 icon = p.getIcon(); 50 51 51 52 tabbedPane.addTab(p.getName(),icon, panel, p.getInfo());
Note:
See TracChangeset
for help on using the changeset viewer.