Changeset 6361 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2013-11-03T00:19:32+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
r6310 r6361 223 223 ImageryType t = ImageryType.fromUrlString(type); 224 224 this.cookies=cookies; 225 this.eulaAcceptanceRequired = eulaAcceptanceRequired; 225 226 if (t != null) { 226 227 this.imageryType = t; -
trunk/src/org/openstreetmap/josm/data/osm/event/SelectionEventManager.java
r6084 r6361 29 29 final SelectionChangedListener listener; 30 30 31 public ListenerInfo(SelectionChangedListener listener , boolean consolidate) {31 public ListenerInfo(SelectionChangedListener listener) { 32 32 this.listener = listener; 33 33 } … … 48 48 private final CopyOnWriteArrayList<ListenerInfo> normalListeners = new CopyOnWriteArrayList<ListenerInfo>(); 49 49 50 /** 51 * Constructs a new {@code SelectionEventManager}. 52 */ 50 53 public SelectionEventManager() { 51 54 DataSet.addSelectionListener(this); … … 56 59 throw new UnsupportedOperationException("IN_EDT mode not supported, you probably want to use IN_EDT_CONSOLIDATED."); 57 60 if (fireMode == FireMode.IN_EDT || fireMode == FireMode.IN_EDT_CONSOLIDATED) { 58 inEDTListeners.addIfAbsent(new ListenerInfo(listener , fireMode == FireMode.IN_EDT_CONSOLIDATED));61 inEDTListeners.addIfAbsent(new ListenerInfo(listener)); 59 62 } else { 60 normalListeners.addIfAbsent(new ListenerInfo(listener , false));63 normalListeners.addIfAbsent(new ListenerInfo(listener)); 61 64 } 62 65 } 63 66 64 67 public void removeSelectionListener(SelectionChangedListener listener) { 65 ListenerInfo searchListener = new ListenerInfo(listener , false);68 ListenerInfo searchListener = new ListenerInfo(listener); 66 69 inEDTListeners.remove(searchListener); 67 70 normalListeners.remove(searchListener); -
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r6296 r6361 220 220 LayerListDialog.createInstance(this); 221 221 addToggleDialog(LayerListDialog.getInstance()); 222 addToggleDialog(propertiesDialog = new PropertiesDialog( this));222 addToggleDialog(propertiesDialog = new PropertiesDialog()); 223 223 addToggleDialog(selectionListDialog = new SelectionListDialog()); 224 224 addToggleDialog(relationListDialog = new RelationListDialog()); 225 addToggleDialog(new CommandStackDialog( this));225 addToggleDialog(new CommandStackDialog()); 226 226 addToggleDialog(new UserListDialog()); 227 227 addToggleDialog(new HistoryDialog(), true); … … 229 229 addToggleDialog(validatorDialog = new ValidatorDialog()); 230 230 addToggleDialog(filterDialog = new FilterDialog()); 231 addToggleDialog(new ChangesetDialog( this), true);231 addToggleDialog(new ChangesetDialog(), true); 232 232 addToggleDialog(new MapPaintDialog()); 233 233 toolBarToggle.setFloatable(false); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java
r6336 r6361 41 41 import org.openstreetmap.josm.data.osm.event.DatasetEventManager; 42 42 import org.openstreetmap.josm.data.osm.event.DatasetEventManager.FireMode; 43 import org.openstreetmap.josm.gui.MapFrame;44 43 import org.openstreetmap.josm.gui.MapView; 45 44 import org.openstreetmap.josm.gui.SideButton; … … 243 242 } 244 243 245 public ChangesetDialog(MapFrame mapFrame) { 244 /** 245 * Constructs a new {@code ChangesetDialog}. 246 */ 247 public ChangesetDialog() { 246 248 super( 247 249 tr("Changesets"), -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r6336 r6361 40 40 import org.openstreetmap.josm.command.PseudoCommand; 41 41 import org.openstreetmap.josm.data.osm.OsmPrimitive; 42 import org.openstreetmap.josm.gui.MapFrame;43 42 import org.openstreetmap.josm.gui.SideButton; 44 43 import org.openstreetmap.josm.gui.layer.OsmDataLayer; … … 76 75 private SelectAndZoomAction selectAndZoomAction = new SelectAndZoomAction(); 77 76 78 public CommandStackDialog(final MapFrame mapFrame) { 77 /** 78 * Constructs a new {@code CommandStackDialog}. 79 */ 80 public CommandStackDialog() { 79 81 super(tr("Command Stack"), "commandstack", tr("Open a list of all commands (undo buffer)."), 80 82 Shortcut.registerShortcut("subwindow:commandstack", tr("Toggle: {0}", … … 340 342 public class SelectAction extends AbstractAction implements IEnabledStateUpdating { 341 343 344 /** 345 * Constructs a new {@code SelectAction}. 346 */ 342 347 public SelectAction() { 343 super();344 348 putValue(NAME,tr("Select")); 345 349 putValue(SHORT_DESCRIPTION, tr("Selects the objects that take part in this command (unless currently deleted)")); 346 350 putValue(SMALL_ICON, ImageProvider.get("dialogs","select")); 347 348 351 } 349 352 -
trunk/src/org/openstreetmap/josm/gui/dialogs/LatLonDialog.java
r6101 r6361 163 163 164 164 public LatLonDialog(Component parent, String title, String help) { 165 super( Main.parent, tr("Add Node..."), new String[] { tr("Ok"), tr("Cancel") });165 super(parent, title, new String[] { tr("Ok"), tr("Cancel") }); 166 166 setButtonIcons(new String[] { "ok", "cancel" }); 167 configureContextsensitiveHelp( "/Action/AddNode", true);167 configureContextsensitiveHelp(help, true); 168 168 169 169 build(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r6248 r6361 195 195 setMinimumSize(new Dimension(0,0)); 196 196 this.preferredHeight = preferredHeight; 197 toggleAction = new ToggleDialogAction(name, "dialogs/"+iconName, tooltip, shortcut , iconName);197 toggleAction = new ToggleDialogAction(name, "dialogs/"+iconName, tooltip, shortcut); 198 198 String helpId = "Dialog/"+getClass().getName().substring(getClass().getName().lastIndexOf('.')+1); 199 199 toggleAction.putValue("help", helpId.substring(0, helpId.length()-6)); … … 229 229 public final class ToggleDialogAction extends JosmAction { 230 230 231 private ToggleDialogAction(String name, String iconName, String tooltip, Shortcut shortcut , String prefname) {231 private ToggleDialogAction(String name, String iconName, String tooltip, Shortcut shortcut) { 232 232 super(name, iconName, tooltip, shortcut, false); 233 233 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r6070 r6361 126 126 @Override 127 127 public void actionPerformed(ActionEvent e) { 128 fixErrors( e);128 fixErrors(); 129 129 } 130 130 }); … … 141 141 @Override 142 142 public void actionPerformed(ActionEvent e) { 143 ignoreErrors( e);143 ignoreErrors(); 144 144 } 145 145 }); … … 183 183 /** 184 184 * Fix selected errors 185 *186 * @param e187 185 */ 188 186 @SuppressWarnings("unchecked") 189 private void fixErrors( ActionEvent e) {187 private void fixErrors() { 190 188 TreePath[] selectionPaths = tree.getSelectionPaths(); 191 189 if (selectionPaths == null) … … 224 222 /** 225 223 * Set selected errors to ignore state 226 *227 * @param e228 224 */ 229 225 @SuppressWarnings("unchecked") 230 private void ignoreErrors( ActionEvent e) {226 private void ignoreErrors() { 231 227 int asked = JOptionPane.DEFAULT_OPTION; 232 228 boolean changed = false; -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r6336 r6361 77 77 import org.openstreetmap.josm.gui.DefaultNameFormatter; 78 78 import org.openstreetmap.josm.gui.ExtendedDialog; 79 import org.openstreetmap.josm.gui.MapFrame;80 79 import org.openstreetmap.josm.gui.MapView; 81 80 import org.openstreetmap.josm.gui.PopupMenuHandler; … … 222 221 /** 223 222 * Create a new PropertiesDialog 224 * @param mapFrame The parent map fram 225 */ 226 public PropertiesDialog(MapFrame mapFrame) { 223 */ 224 public PropertiesDialog() { 227 225 super(tr("Tags/Memberships"), "propertiesdialog", tr("Tags for selected objects."), 228 226 Shortcut.registerShortcut("subwindow:properties", tr("Toggle: {0}", tr("Tags/Memberships")), KeyEvent.VK_P, -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r6316 r6361 57 57 import org.openstreetmap.josm.actions.CopyAction; 58 58 import org.openstreetmap.josm.actions.JosmAction; 59 import org.openstreetmap.josm.actions.PasteTagsAction.TagPaster;60 59 import org.openstreetmap.josm.command.AddCommand; 61 60 import org.openstreetmap.josm.command.ChangeCommand; … … 80 79 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 81 80 import org.openstreetmap.josm.gui.tagging.TagEditorPanel; 82 import org.openstreetmap.josm.gui.tagging.TagModel;83 81 import org.openstreetmap.josm.gui.tagging.TaggingPreset; 84 82 import org.openstreetmap.josm.gui.tagging.TaggingPresetType; … … 182 180 JTabbedPane tabbedPane = new JTabbedPane(); 183 181 tabbedPane.add(tr("Tags and Members"), pnl); 184 referrerBrowser = new ReferringRelationsBrowser(getLayer(), referrerModel , this);182 referrerBrowser = new ReferringRelationsBrowser(getLayer(), referrerModel); 185 183 tabbedPane.add(tr("Parent Relations"), referrerBrowser); 186 184 tabbedPane.add(tr("Child Relations"), new ChildRelationBrowser(getLayer(), relation)); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ParentRelationLoadingTask.java
r6316 r6361 81 81 parents = new ArrayList<Relation>(); 82 82 this.child = child; 83 this.full = full; 83 84 } 84 85 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ReferringRelationsBrowser.java
r6084 r6361 68 68 } 69 69 70 public ReferringRelationsBrowser(OsmDataLayer layer, ReferringRelationsBrowserModel model , GenericRelationEditor relationEditor) {70 public ReferringRelationsBrowser(OsmDataLayer layer, ReferringRelationsBrowserModel model) { 71 71 this.model = model; 72 72 this.layer = layer; -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r6203 r6361 97 97 } 98 98 99 private Component buildSettingsPanel( final PreferenceTabbedPane gui) {99 private Component buildSettingsPanel() { 100 100 final JPanel p = new JPanel(new GridBagLayout()); 101 101 p.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); … … 118 118 imageryProviders = new ImageryProvidersPanel(gui, layerInfo); 119 119 pane.addTab(tr("Imagery providers"), imageryProviders); 120 pane.addTab(tr("Settings"), buildSettingsPanel( gui));120 pane.addTab(tr("Settings"), buildSettingsPanel()); 121 121 pane.addTab(tr("Offset bookmarks"), new OffsetBookmarksPanel(gui)); 122 122 loadSettings(); -
trunk/src/org/openstreetmap/josm/gui/util/StayOpenRadioButtonMenuItem.java
r5094 r6361 42 42 */ 43 43 public StayOpenRadioButtonMenuItem(Action a) { 44 super( );44 super(a); 45 45 } 46 46 -
trunk/src/org/openstreetmap/josm/io/OsmServerBackreferenceReader.java
r5881 r6361 103 103 public OsmServerBackreferenceReader(long id, OsmPrimitiveType type, boolean readFull) throws IllegalArgumentException { 104 104 this(id, type); 105 this.readFull = false;105 this.readFull = readFull; 106 106 } 107 107
Note:
See TracChangeset
for help on using the changeset viewer.