Changeset 29854 in osm for applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap
- Timestamp:
- 2013-08-21T03:47:16+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/CreateOrEditTurnRestrictionAction.java
r27879 r29854 11 11 import org.openstreetmap.josm.data.osm.Relation; 12 12 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 13 import org.openstreetmap.josm.tools.Shortcut;14 13 import org.openstreetmap.josm.plugins.turnrestrictions.editor.TurnRestrictionEditor; 15 14 import org.openstreetmap.josm.plugins.turnrestrictions.editor.TurnRestrictionEditorManager; 16 15 import org.openstreetmap.josm.plugins.turnrestrictions.editor.TurnRestrictionSelectionPopupPanel; 17 import org.openstreetmap.josm. plugins.turnrestrictions.preferences.PreferenceKeys;16 import org.openstreetmap.josm.tools.Shortcut; 18 17 19 18 /** -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/dnd/PrimitiveIdListProvider.java
r23192 r29854 3 3 import java.util.List; 4 4 5 import org.openstreetmap.josm.data.osm.PrimitiveId; ;5 import org.openstreetmap.josm.data.osm.PrimitiveId; 6 6 public interface PrimitiveIdListProvider { 7 7 /** -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/dnd/PrimitiveIdListTransferHandler.java
r23510 r29854 8 8 import javax.swing.TransferHandler; 9 9 10 import org.openstreetmap.josm.data.osm.PrimitiveId; 10 11 import org.openstreetmap.josm.tools.CheckParameterUtil; 11 12 -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/AdvancedEditorPanel.java
r24937 r29854 6 6 import java.awt.event.HierarchyEvent; 7 7 import java.awt.event.HierarchyListener; 8 import java.util.logging.Logger;9 8 10 9 import javax.swing.JPanel; … … 23 22 */ 24 23 public class AdvancedEditorPanel extends JPanel { 25 private static final Logger logger = Logger.getLogger(AdvancedEditorPanel.class.getName()); 24 //private static final Logger logger = Logger.getLogger(AdvancedEditorPanel.class.getName()); 26 25 27 26 private TurnRestrictionEditorModel model; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/BasicEditorPanel.java
r25463 r29854 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 5 import java.awt.Component;6 5 import java.awt.Dimension; 7 6 import java.awt.GridBagConstraints; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/JosmSelectionListModel.java
r26299 r29854 6 6 import java.util.List; 7 7 import java.util.Set; 8 import java.util.logging.Logger;9 8 10 9 import javax.swing.AbstractListModel; … … 36 35 */ 37 36 public class JosmSelectionListModel extends AbstractListModel implements EditLayerChangeListener, SelectionChangedListener, DataSetListener, PrimitiveIdListProvider{ 38 static private final Logger logger = Logger.getLogger(JosmSelectionListModel.class.getName()); 37 //static private final Logger logger = Logger.getLogger(JosmSelectionListModel.class.getName()); 39 38 40 39 private final List<OsmPrimitive> selection = new ArrayList<OsmPrimitive>(); -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/JosmSelectionPanel.java
r23571 r29854 11 11 import javax.swing.Action; 12 12 import javax.swing.BorderFactory; 13 import javax.swing.DefaultListSelectionModel;14 13 import javax.swing.JComponent; 15 14 import javax.swing.JLabel; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/MemberRoleCellEditor.java
r21010 r29854 3 3 4 4 import java.awt.Component; 5 import java.util.logging.Logger;6 5 7 6 import javax.swing.AbstractCellEditor; … … 19 18 */ 20 19 public class MemberRoleCellEditor extends AbstractCellEditor implements TableCellEditor { 21 static private Logger logger = Logger.getLogger(MemberRoleCellEditor.class.getName()); 20 //static private Logger logger = Logger.getLogger(MemberRoleCellEditor.class.getName()); 22 21 23 22 private AutoCompletingTextField editor = null; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/RelationMemberEditorModel.java
r23526 r29854 11 11 import java.util.List; 12 12 import java.util.Set; 13 import java.util.logging.Logger;14 13 15 14 import javax.swing.DefaultListSelectionModel; … … 25 24 26 25 public class RelationMemberEditorModel extends AbstractTableModel{ 27 static private final Logger logger = Logger.getLogger(RelationMemberEditorModel.class.getName()); 26 //static private final Logger logger = Logger.getLogger(RelationMemberEditorModel.class.getName()); 28 27 private final ArrayList<RelationMemberModel> members = new ArrayList<RelationMemberModel>(); 29 28 private OsmDataLayer layer; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/RelationMemberTable.java
r26666 r29854 18 18 import java.io.IOException; 19 19 import java.util.List; 20 import java.util.logging.Logger;21 20 22 21 import javax.swing.AbstractAction; … … 134 133 } 135 134 135 @SuppressWarnings("unchecked") 136 136 public void actionPerformed(ActionEvent evt) { 137 137 // tried to delegate to 'paste' action in the action map of the … … 247 247 } 248 248 249 @SuppressWarnings("unchecked") 249 250 @Override 250 251 public boolean importData(JComponent comp, Transferable t) { … … 323 324 } 324 325 326 @SuppressWarnings("unchecked") 325 327 public synchronized void drop(DropTargetDropEvent dtde) { 326 328 try { -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionComboBox.java
r23510 r29854 4 4 5 5 import org.openstreetmap.josm.data.Preferences; 6 import org.openstreetmap.josm.plugins.turnrestrictions.preferences.PreferenceKeys; 6 7 /** 7 8 * A combo box for selecting a turn restriction type. -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionComboBoxModel.java
r23192 r29854 5 5 import java.util.Observable; 6 6 import java.util.Observer; 7 import java.util.logging.Logger;8 7 9 8 import javax.swing.ComboBoxModel; … … 21 20 */ 22 21 public class TurnRestrictionComboBoxModel implements ComboBoxModel, Observer{ 23 static private final Logger logger = Logger.getLogger(TurnRestrictionComboBoxModel.class.getName()); 22 //static private final Logger logger = Logger.getLogger(TurnRestrictionComboBoxModel.class.getName()); 24 23 25 24 private TurnRestrictionEditorModel model; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditor.java
r26509 r29854 21 21 import java.util.Observable; 22 22 import java.util.Observer; 23 import java.util.logging.Logger;24 23 25 24 import javax.swing.AbstractAction; … … 46 45 import org.openstreetmap.josm.gui.DefaultNameFormatter; 47 46 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 47 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec; 48 48 import org.openstreetmap.josm.gui.SideButton; 49 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec;50 49 import org.openstreetmap.josm.gui.dialogs.relation.RelationEditor; 51 50 import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction; … … 58 57 59 58 public class TurnRestrictionEditor extends JDialog implements NavigationControler{ 60 final private static Logger logger = Logger.getLogger(TurnRestrictionEditor.class.getName()); 59 //final private static Logger logger = Logger.getLogger(TurnRestrictionEditor.class.getName()); 61 60 62 61 /** the property name for the current turn restriction -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditorManager.java
r23510 r29854 10 10 import java.util.Iterator; 11 11 import java.util.Map.Entry; 12 import java.util.logging.Logger;13 12 14 13 import org.openstreetmap.josm.data.osm.PrimitiveId; … … 23 22 */ 24 23 public class TurnRestrictionEditorManager extends WindowAdapter implements MapView.LayerChangeListener{ 25 static private final Logger logger = Logger.getLogger(TurnRestrictionEditorManager.class.getName()); 24 //static private final Logger logger = Logger.getLogger(TurnRestrictionEditorManager.class.getName()); 26 25 27 26 /** keeps track of open relation editors */ -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditorModel.java
r26299 r29854 5 5 import java.util.Observable; 6 6 import java.util.Set; 7 import java.util.logging.Logger;8 7 9 8 import javax.swing.event.TableModelEvent; … … 21 20 import org.openstreetmap.josm.data.osm.event.DataSetListener; 22 21 import org.openstreetmap.josm.data.osm.event.DatasetEventManager; 22 import org.openstreetmap.josm.data.osm.event.DatasetEventManager.FireMode; 23 23 import org.openstreetmap.josm.data.osm.event.NodeMovedEvent; 24 24 import org.openstreetmap.josm.data.osm.event.PrimitivesAddedEvent; … … 27 27 import org.openstreetmap.josm.data.osm.event.TagsChangedEvent; 28 28 import org.openstreetmap.josm.data.osm.event.WayNodesChangedEvent; 29 import org.openstreetmap.josm.data.osm.event.DatasetEventManager.FireMode;30 29 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 31 30 import org.openstreetmap.josm.gui.tagging.TagEditorModel; … … 40 39 */ 41 40 public class TurnRestrictionEditorModel extends Observable implements DataSetListener{ 42 static private final Logger logger = Logger.getLogger(TurnRestrictionEditorModel.class.getName()); 41 //static private final Logger logger = Logger.getLogger(TurnRestrictionEditorModel.class.getName()); 43 42 44 43 /** -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionLegEditor.java
r23571 r29854 59 59 */ 60 60 public class TurnRestrictionLegEditor extends JPanel implements Observer, PrimitiveIdListProvider { 61 static private final Logger logger = Logger.getLogger(TurnRestrictionLegEditor.class.getName()); 61 //static private final Logger logger = Logger.getLogger(TurnRestrictionLegEditor.class.getName()); 62 62 63 63 private JLabel lblOsmObject; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionSelectionPopupPanel.java
r23510 r29854 17 17 import java.util.Collection; 18 18 import java.util.HashSet; 19 import java.util.logging.Logger;20 19 21 20 import javax.swing.AbstractAction; … … 50 49 */ 51 50 public class TurnRestrictionSelectionPopupPanel extends JPanel{ 52 static private final Logger logger = Logger.getLogger(TurnRestrictionSelectionPopupPanel.class.getName()); 51 //static private final Logger logger = Logger.getLogger(TurnRestrictionSelectionPopupPanel.class.getName()); 53 52 54 53 /** the parent popup */ -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionTypeRenderer.java
r23510 r29854 1 1 package org.openstreetmap.josm.plugins.turnrestrictions.editor; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 2 4 3 5 import java.awt.Component; … … 15 17 import org.openstreetmap.josm.plugins.turnrestrictions.preferences.PreferenceKeys; 16 18 import org.openstreetmap.josm.tools.ImageProvider; 17 import static org.openstreetmap.josm.tools.I18n.tr;18 19 19 20 -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/VehicleExceptionEditor.java
r23571 r29854 16 16 import java.util.Observable; 17 17 import java.util.Observer; 18 import java.util.logging.Logger;19 18 20 19 import javax.swing.ButtonGroup; … … 36 35 */ 37 36 public class VehicleExceptionEditor extends JPanel implements Observer{ 38 static private final Logger logger = Logger.getLogger(VehicleExceptionEditor.class.getName()); 37 //static private final Logger logger = Logger.getLogger(VehicleExceptionEditor.class.getName()); 39 38 40 39 private TurnRestrictionEditorModel model; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/ViaList.java
r26345 r29854 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 5 import java.awt.Dimension;6 5 import java.awt.Toolkit; 7 6 import java.awt.datatransfer.Clipboard; … … 48 47 public class ViaList extends JList{ 49 48 50 static private final Logger logger = Logger.getLogger(ViaList.class.getName()); 49 //static private final Logger logger = Logger.getLogger(ViaList.class.getName()); 51 50 52 51 private ViaListModel model; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/ViaListModel.java
r23192 r29854 1 1 package org.openstreetmap.josm.plugins.turnrestrictions.editor; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 2 4 3 5 import java.util.ArrayList; … … 6 8 import java.util.Observable; 7 9 import java.util.Observer; 8 import java.util.logging.Logger;9 10 10 11 import javax.swing.AbstractListModel; … … 16 17 import org.openstreetmap.josm.plugins.turnrestrictions.dnd.PrimitiveIdListProvider; 17 18 import org.openstreetmap.josm.tools.CheckParameterUtil; 18 import static org.openstreetmap.josm.tools.I18n.tr;19 19 20 20 /** … … 23 23 */ 24 24 public class ViaListModel extends AbstractListModel implements PrimitiveIdListProvider, Observer{ 25 static private final Logger logger = Logger.getLogger(ViaListModel.class.getName()); 25 //static private final Logger logger = Logger.getLogger(ViaListModel.class.getName()); 26 26 27 27 private DefaultListSelectionModel selectionModel; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/list/TurnRestrictionCellRenderer.java
r23510 r29854 2 2 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 import static org.openstreetmap.josm.tools.I18n.trc; 4 5 5 6 import java.awt.Color; … … 11 12 import java.util.HashSet; 12 13 import java.util.Set; 13 import java.util.logging.Logger;14 14 15 15 import javax.swing.ImageIcon; … … 31 31 import org.openstreetmap.josm.plugins.turnrestrictions.preferences.PreferenceKeys; 32 32 import org.openstreetmap.josm.tools.ImageProvider; 33 import static org.openstreetmap.josm.tools.I18n.trc;34 33 35 34 /** … … 41 40 */ 42 41 public class TurnRestrictionCellRenderer extends JPanel implements ListCellRenderer, TableCellRenderer{ 43 static private final Logger logger = Logger.getLogger(TurnRestrictionCellRenderer.class.getName()); 42 //static private final Logger logger = Logger.getLogger(TurnRestrictionCellRenderer.class.getName()); 44 43 45 44 /** the names of restriction types */ -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/list/TurnRestrictionsInDatasetListModel.java
r26299 r29854 4 4 import java.util.LinkedList; 5 5 import java.util.List; 6 import java.util.logging.Logger;7 6 8 7 import javax.swing.DefaultListSelectionModel; … … 34 33 */ 35 34 public class TurnRestrictionsInDatasetListModel extends TurnRestrictionsListModel implements EditLayerChangeListener, DataSetListener { 36 private static final Logger logger = Logger.getLogger(TurnRestrictionsInDatasetListModel.class.getName()); 35 //private static final Logger logger = Logger.getLogger(TurnRestrictionsInDatasetListModel.class.getName()); 37 36 38 37 public TurnRestrictionsInDatasetListModel( -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/list/TurnRestrictionsInSelectionListModel.java
r23192 r29854 4 4 import java.util.HashSet; 5 5 import java.util.Set; 6 import java.util.logging.Logger;7 6 8 7 import javax.swing.DefaultListSelectionModel; … … 19 18 */ 20 19 public class TurnRestrictionsInSelectionListModel extends TurnRestrictionsListModel implements EditLayerChangeListener, SelectionChangedListener { 21 private static final Logger logger = Logger.getLogger(TurnRestrictionsInSelectionListModel.class.getName()); 20 //private static final Logger logger = Logger.getLogger(TurnRestrictionsInSelectionListModel.class.getName()); 22 21 23 22 public TurnRestrictionsInSelectionListModel( -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/list/TurnRestrictionsInSelectionView.java
r23192 r29854 12 12 import org.openstreetmap.josm.data.SelectionChangedListener; 13 13 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 import org.openstreetmap.josm.data.osm.event.DatasetEventManager.FireMode; 14 15 import org.openstreetmap.josm.data.osm.event.SelectionEventManager; 15 import org.openstreetmap.josm.data.osm.event.DatasetEventManager.FireMode;16 16 import org.openstreetmap.josm.gui.MapView; 17 17 import org.openstreetmap.josm.gui.MapView.EditLayerChangeListener; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/list/TurnRestrictionsListDialog.java
r27464 r29854 13 13 import java.util.HashSet; 14 14 import java.util.List; 15 import java.util.logging.Logger;16 15 17 16 import javax.swing.AbstractAction; … … 31 30 import org.openstreetmap.josm.data.osm.RelationMember; 32 31 import org.openstreetmap.josm.gui.MapView; 32 import org.openstreetmap.josm.gui.MapView.EditLayerChangeListener; 33 33 import org.openstreetmap.josm.gui.SideButton; 34 import org.openstreetmap.josm.gui.MapView.EditLayerChangeListener;35 34 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; 36 35 import org.openstreetmap.josm.gui.help.HelpUtil; … … 53 52 */ 54 53 public class TurnRestrictionsListDialog extends ToggleDialog{ 55 private static final Logger logger = Logger.getLogger(TurnRestrictionsListDialog.class.getName()); 54 //private static final Logger logger = Logger.getLogger(TurnRestrictionsListDialog.class.getName()); 56 55 57 56 /** checkbox for switching between the two list views */ -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/preferences/PreferenceKeys.java
r23510 r29854 1 1 package org.openstreetmap.josm.plugins.turnrestrictions.preferences; 2 3 import javax.swing.KeyStroke; 2 4 3 5 -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/preferences/PreferencesPanel.java
r27876 r29854 7 7 import java.awt.GridBagLayout; 8 8 import java.awt.Insets; 9 import java.util.logging.Logger;10 11 9 12 10 import javax.swing.BorderFactory; … … 30 28 */ 31 29 public class PreferencesPanel extends VerticallyScrollablePanel { 32 private static final Logger logger = Logger.getLogger(PreferencesPanel.class.getName()); 30 //private static final Logger logger = Logger.getLogger(PreferencesPanel.class.getName()); 33 31 private JRadioButton rbSetA; 34 32 private JRadioButton rbSetB; -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/qa/IssuesView.java
r24937 r29854 5 5 import java.util.Observable; 6 6 import java.util.Observer; 7 import java.util.logging.Logger;8 7 9 8 import javax.swing.JPanel; … … 17 16 */ 18 17 public class IssuesView extends VerticallyScrollablePanel implements Observer{ 19 static private final Logger logger = Logger.getLogger(IssuesView.class.getName()); 18 //static private final Logger logger = Logger.getLogger(IssuesView.class.getName()); 20 19 21 20 /** the issues model */ -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/qa/MissingTurnRestrictionLegError.java
r23593 r29854 1 1 package org.openstreetmap.josm.plugins.turnrestrictions.qa; 2 3 import static org.openstreetmap.josm.plugins.turnrestrictions.editor.NavigationControler.BasicEditorFokusTargets.FROM; 4 import static org.openstreetmap.josm.plugins.turnrestrictions.editor.NavigationControler.BasicEditorFokusTargets.TO; 5 import static org.openstreetmap.josm.tools.I18n.tr; 2 6 3 7 import java.awt.event.ActionEvent; … … 6 10 7 11 import org.openstreetmap.josm.plugins.turnrestrictions.editor.TurnRestrictionLegRole; 8 import static org.openstreetmap.josm.tools.I18n.tr;9 import static org.openstreetmap.josm.plugins.turnrestrictions.editor.NavigationControler.BasicEditorFokusTargets.*;10 12 11 13 /** -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/qa/WrongTurnRestrictionLegTypeError.java
r23593 r29854 10 10 import org.openstreetmap.josm.gui.DefaultNameFormatter; 11 11 import org.openstreetmap.josm.plugins.turnrestrictions.editor.NavigationControler; 12 import org.openstreetmap.josm.plugins.turnrestrictions.editor.NavigationControler.BasicEditorFokusTargets; 12 13 import org.openstreetmap.josm.plugins.turnrestrictions.editor.RelationMemberEditorModel; 13 14 import org.openstreetmap.josm.plugins.turnrestrictions.editor.TurnRestrictionLegRole; 14 import org.openstreetmap.josm.plugins.turnrestrictions.editor.NavigationControler.BasicEditorFokusTargets;15 15 16 16 /**
Note:
See TracChangeset
for help on using the changeset viewer.