Changeset 30004 in osm for applications/editors/josm/plugins/openstreetbugs
- Timestamp:
- 2013-10-06T21:18:56+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/openstreetbugs
- Files:
-
- 5 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbDialog.java
r27852 r30004 83 83 import org.openstreetmap.josm.plugins.osb.gui.action.OsbAction; 84 84 import org.openstreetmap.josm.plugins.osb.gui.action.OsbActionObserver; 85 import org.openstreetmap.josm.plugins.osb.gui.action.PointToNewIssueAction;86 85 import org.openstreetmap.josm.plugins.osb.gui.action.PopupFactory; 87 86 import org.openstreetmap.josm.plugins.osb.gui.action.ToggleConnectionModeAction; … … 103 102 private JButton closeIssue; 104 103 private JButton processQueue = new JButton(tr("Process queue")); 105 private JToggleButton newIssue = new JToggleButton();106 104 private JToggleButton toggleConnectionMode; 107 105 private JTabbedPane tabbedPane = new JTabbedPane(); … … 174 172 closeIssue.setToolTipText((String) closeIssue.getAction().getValue(Action.NAME)); 175 173 closeIssue.setIcon(OsbPlugin.loadIcon("icon_valid22.png")); 176 PointToNewIssueAction nia = new PointToNewIssueAction(newIssue, osbPlugin);177 newIssue.setAction(nia);178 newIssue.setToolTipText((String) newIssue.getAction().getValue(Action.NAME));179 newIssue.setIcon(OsbPlugin.loadIcon("icon_error_add22.png"));180 174 181 175 buttonPanel.add(toggleConnectionMode); 182 176 buttonPanel.add(refresh); 183 buttonPanel.add(newIssue);184 177 buttonPanel.add(addComment); 185 178 buttonPanel.add(closeIssue); … … 215 208 addComment.setHorizontalAlignment(SwingConstants.LEFT); 216 209 closeIssue.setHorizontalAlignment(SwingConstants.LEFT); 217 newIssue.setHorizontalAlignment(SwingConstants.LEFT);218 210 } else { 219 211 toggleConnectionMode.setText(null); … … 221 213 addComment.setText(null); 222 214 closeIssue.setText(null); 223 newIssue.setText(null);224 215 } 225 216 … … 227 218 closeIssueAction.addActionObserver(this); 228 219 setConnectionMode(offline); 229 230 220 231 221 MapView.addLayerChangeListener(this); -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbQueueListCellRenderer.java
r19282 r30004 41 41 import org.openstreetmap.josm.plugins.osb.gui.action.AddCommentAction; 42 42 import org.openstreetmap.josm.plugins.osb.gui.action.CloseIssueAction; 43 import org.openstreetmap.josm.plugins.osb.gui.action.NewIssueAction;44 43 import org.openstreetmap.josm.plugins.osb.gui.action.OsbAction; 45 44 … … 65 64 OsbAction action = (OsbAction) value; 66 65 Icon icon = null; 67 if(action instanceof NewIssueAction) { 68 icon = OsbPlugin.loadIcon("icon_error_add16.png"); 69 } else if(action instanceof AddCommentAction) { 66 if(action instanceof AddCommentAction) { 70 67 icon = OsbPlugin.loadIcon("add_comment16.png"); 71 68 } else if(action instanceof CloseIssueAction) { … … 85 82 return label; 86 83 } 87 88 84 }
Note:
See TracChangeset
for help on using the changeset viewer.