Changeset 27359 in osm for applications/editors
- Timestamp:
- 2011-12-30T19:05:08+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewDialog.java
r26174 r27359 13 13 import java.io.FileInputStream; 14 14 import java.io.IOException; 15 import java.util.Arrays; 15 16 import java.util.Collections; 16 17 import java.util.HashSet; … … 22 23 import java.util.Set; 23 24 24 import javax.swing. JButton;25 import javax.swing.AbstractAction; 25 26 import javax.swing.JComboBox; 26 27 import javax.swing.JLabel; … … 28 29 29 30 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; 31 import org.openstreetmap.josm.gui.SideButton; 30 32 import org.openstreetmap.josm.plugins.graphview.core.access.AccessRulesetReader; 31 33 import org.openstreetmap.josm.plugins.graphview.core.visualisation.ColorScheme; … … 152 154 } 153 155 154 this.add(BorderLayout.CENTER, selectionPanel); 155 156 157 JPanel buttonPanel = new JPanel(); 158 JButton showLayerButton = new JButton(tr("Create/update graph")); 159 showLayerButton.addActionListener(new ActionListener() { 160 public void actionPerformed(ActionEvent e) { 161 plugin.createGraphViewLayer(); 162 } 163 }); 164 buttonPanel.add(showLayerButton); 165 166 this.add(BorderLayout.SOUTH, buttonPanel); 156 createLayout(selectionPanel, true, Arrays.asList(new SideButton[] { 157 new SideButton(new AbstractAction(tr("Create/update graph")) { 158 public void actionPerformed(ActionEvent e) { 159 plugin.createGraphViewLayer(); 160 } 161 }) 162 })); 167 163 168 164 updateSelections(); 169 165 this.preferences.addObserver(this); 170 171 166 } 172 167 -
applications/editors/josm/plugins/licensechange/src/org/openstreetmap/josm/plugins/licensechange/LicenseChangeDialog.java
r26373 r27359 14 14 import java.io.IOException; 15 15 import java.lang.reflect.InvocationTargetException; 16 import java.util.Arrays; 16 17 import java.util.ArrayList; 17 18 import java.util.Collection; … … 24 25 import javax.swing.JMenuItem; 25 26 import javax.swing.JOptionPane; 26 import javax.swing.JPanel;27 27 import javax.swing.JPopupMenu; 28 28 import javax.swing.JScrollPane; … … 93 93 tree.addTreeSelectionListener(new SelectionWatch()); 94 94 95 add(new JScrollPane(tree), BorderLayout.CENTER);96 97 JPanel buttonPanel = new JPanel(new GridLayout(1, 3));98 99 95 selectButton = new SideButton(marktr("Select"), "select", "LicenseChange", 100 96 tr("Set the selected elements on the map to the selected items in the list above."), this); 101 97 selectButton.setEnabled(false); 102 buttonPanel.add(selectButton); 103 buttonPanel.add(new SideButton(plugin.checkAction), "refresh");104 add(buttonPanel, BorderLayout.SOUTH);105 98 99 createLayout(tree, true, Arrays.asList(new SideButton[] { 100 selectButton, new SideButton(plugin.checkAction) 101 })); 106 102 } 107 103
Note:
See TracChangeset
for help on using the changeset viewer.