Changeset 10763 in josm
- Timestamp:
- 2016-08-07T18:07:59+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
r10662 r10763 388 388 * @return true if all ways can be joined into a polygon 389 389 */ 390 pr otectedstatic boolean checkWaysArePolygon(Collection<Way> ways) {390 private static boolean checkWaysArePolygon(Collection<Way> ways) { 391 391 // For each way, nodes strictly between first and last should't be reference by an other way 392 392 for (Way way: ways) { -
trunk/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
r10601 r10763 109 109 110 110 /** 111 * Fetch the user info from the server. This is necessary if we don't know 112 * the users id yet 111 * Fetch the user info from the server. This is necessary if we don't know the users id yet 113 112 * 114 113 * @return the user info 115 114 * @throws OsmTransferException in case of any communication exception 116 115 */ 117 protected UserInfo fetchUserInfo() throws OsmTransferException { 118 OsmServerUserInfoReader reader = new OsmServerUserInfoReader(); 119 return reader.fetchUserInfo(getProgressMonitor().createSubTaskMonitor(1, false)); 116 private UserInfo fetchUserInfo() throws OsmTransferException { 117 return new OsmServerUserInfoReader().fetchUserInfo(getProgressMonitor().createSubTaskMonitor(1, false)); 120 118 } 121 119 -
trunk/src/org/openstreetmap/josm/corrector/ReverseWayNoTagCorrector.java
r10716 r10763 75 75 } 76 76 77 pr otectedstatic boolean confirmReverseWay(Way way, TagCollection tags) {77 private static boolean confirmReverseWay(Way way, TagCollection tags) { 78 78 String msg = trn( 79 79 // Singular, if a single tag is impacted -
trunk/src/org/openstreetmap/josm/data/osm/ChangesetCache.java
r10657 r10763 68 68 } 69 69 70 pr otectedvoid fireChangesetCacheEvent(final ChangesetCacheEvent e) {70 private void fireChangesetCacheEvent(final ChangesetCacheEvent e) { 71 71 GuiHelper.runInEDT(() -> { 72 72 for (ChangesetCacheListener l: listeners) { … … 76 76 } 77 77 78 pr otectedvoid update(Changeset cs, DefaultChangesetCacheEvent e) {78 private void update(Changeset cs, DefaultChangesetCacheEvent e) { 79 79 if (cs == null) return; 80 80 if (cs.isNew()) return; … … 123 123 } 124 124 125 pr otectedvoid remove(int id, DefaultChangesetCacheEvent e) {125 private void remove(int id, DefaultChangesetCacheEvent e) { 126 126 if (id <= 0) return; 127 127 Changeset cs = cache.get(id); -
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r10658 r10763 112 112 * @param eastNorth east/north 113 113 */ 114 protectedvoid setCoorInternal(LatLon coor, EastNorth eastNorth) {114 void setCoorInternal(LatLon coor, EastNorth eastNorth) { 115 115 if (coor != null) { 116 116 this.lat = coor.lat(); -
trunk/src/org/openstreetmap/josm/gui/bbox/TileSelectionBBoxChooser.java
r10378 r10763 684 684 } 685 685 686 pr otectedPoint getTopLeftCoordinates() {686 private Point getTopLeftCoordinates() { 687 687 return new Point(center.x - (getWidth() / 2), center.y - (getHeight() / 2)); 688 688 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java
r10611 r10763 483 483 } 484 484 485 pr otectedstatic void launchChangesetManager(Collection<Integer> toSelect) {485 private static void launchChangesetManager(Collection<Integer> toSelect) { 486 486 ChangesetCacheManager cm = ChangesetCacheManager.getInstance(); 487 487 if (cm.isVisible()) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r10611 r10763 116 116 * builds the GUI 117 117 */ 118 pr otectedvoid build() {118 private void build() { 119 119 model = new ConflictListModel(); 120 120 -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r10613 r10763 686 686 * @see LayerListModelListener#makeVisible(int, Layer) 687 687 */ 688 pr otectedvoid fireMakeVisible(int index, Layer layer) {688 private void fireMakeVisible(int index, Layer layer) { 689 689 for (LayerListModelListener listener : listeners) { 690 690 listener.makeVisible(index, layer); … … 697 697 * @see LayerListModelListener#refresh() 698 698 */ 699 pr otectedvoid fireRefresh() {699 private void fireRefresh() { 700 700 for (LayerListModelListener listener : listeners) { 701 701 listener.refresh(); … … 892 892 * Make sure the first of the selected layers is visible in the views of this model. 893 893 */ 894 pr otectedvoid ensureSelectedIsVisible() {894 private void ensureSelectedIsVisible() { 895 895 int index = selectionModel.getMinSelectionIndex(); 896 896 if (index < 0) … … 941 941 * 942 942 */ 943 pr otectedvoid ensureActiveSelected() {943 private void ensureActiveSelected() { 944 944 List<Layer> layers = getLayers(); 945 945 if (layers.isEmpty()) … … 963 963 * @return the active layer. null, if no active layer is available 964 964 */ 965 pr otectedLayer getActiveLayer() {965 private Layer getActiveLayer() { 966 966 return getLayerManager().getActiveLayer(); 967 }968 969 /**970 * Replies the scale layer. null, if no active layer is available.971 *972 * @return the scale layer. null, if no active layer is available973 * @deprecated Deprecated since it is unused in JOSM and does not really belong here. Can be removed soon (August 2016).974 * You can directly query MapView.975 */976 @Deprecated977 protected NativeScaleLayer getNativeScaleLayer() {978 return Main.isDisplayingMapView() ? Main.map.mapView.getNativeScaleLayer() : null;979 967 } 980 968 -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityAction.java
r10611 r10763 83 83 } 84 84 85 protectedvoid setVisibleFlag(boolean visible) {85 void setVisibleFlag(boolean visible) { 86 86 for (Layer l : model.getSelectedLayers()) { 87 87 l.setVisible(visible); … … 102 102 } 103 103 104 protectedvoid updateValues() {104 void updateValues() { 105 105 List<Layer> layers = model.getSelectedLayers(); 106 106 -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java
r10657 r10763 68 68 } 69 69 70 pr otectedvoid show(long id, HistoryBrowserDialog dialog) {70 private void show(long id, HistoryBrowserDialog dialog) { 71 71 if (dialogs.values().contains(dialog)) { 72 72 show(id); … … 78 78 } 79 79 80 pr otectedvoid show(long id) {80 private void show(long id) { 81 81 if (dialogs.keySet().contains(id)) { 82 82 dialogs.get(id).toFront(); … … 84 84 } 85 85 86 pr otectedboolean hasDialogWithCloseUpperLeftCorner(Point p) {86 private boolean hasDialogWithCloseUpperLeftCorner(Point p) { 87 87 for (HistoryBrowserDialog dialog: dialogs.values()) { 88 88 Point corner = dialog.getLocation(); … … 94 94 } 95 95 96 pr otectedvoid placeOnScreen(HistoryBrowserDialog dialog) {96 private void placeOnScreen(HistoryBrowserDialog dialog) { 97 97 WindowGeometry geometry = new WindowGeometry(WINDOW_GEOMETRY_PREF, WindowGeometry.centerOnScreen(new Dimension(850, 500))); 98 98 geometry.applySafe(dialog); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r10634 r10763 171 171 } 172 172 173 pr otectedvoid rememberError(String message) {173 private void rememberError(String message) { 174 174 this.errorMessages.add(message); 175 175 } … … 261 261 } 262 262 263 pr otectedString formatErrorMessages() {263 private String formatErrorMessages() { 264 264 StringBuilder sb = new StringBuilder(); 265 265 sb.append("<html>"); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r10345 r10763 84 84 } 85 85 86 pr otectedvoid build() {86 private void build() { 87 87 JPanel content = new JPanel(new BorderLayout()); 88 88 -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r10611 r10763 209 209 } 210 210 211 pr otectedvoid buildPanel() {211 private void buildPanel() { 212 212 setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); 213 213 add(new JLabel(preferenceSetting.getTitle()), GBC.eol().insets(0, 5, 0, 10).anchor(GBC.NORTHWEST)); -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AbstractTableListEditor.java
r9665 r10763 86 86 } 87 87 88 pr otectedvoid updateEnabledState() {88 private void updateEnabledState() { 89 89 setEnabled(entryList.getSelectedIndices().length == 1); 90 90 } -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreference.java
r10611 r10763 160 160 } 161 161 162 pr otectedJPanel buildSearchFieldPanel() {162 private JPanel buildSearchFieldPanel() { 163 163 JPanel pnl = new JPanel(new GridBagLayout()); 164 164 pnl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); … … 181 181 } 182 182 183 pr otectedJPanel buildActionPanel() {183 private JPanel buildActionPanel() { 184 184 JPanel pnl = new JPanel(new GridLayout(1, 3)); 185 185 … … 190 190 } 191 191 192 pr otectedJPanel buildPluginListPanel() {192 private JPanel buildPluginListPanel() { 193 193 JPanel pnl = new JPanel(new BorderLayout()); 194 194 pnl.add(buildSearchFieldPanel(), BorderLayout.NORTH); … … 215 215 } 216 216 217 pr otectedJTabbedPane buildContentPane() {217 private JTabbedPane buildContentPane() { 218 218 JTabbedPane pane = getTabPane(); 219 219 pnlPluginUpdatePolicy = new PluginUpdatePolicyPanel(); -
trunk/src/org/openstreetmap/josm/gui/preferences/server/ServerAccessPreference.java
r9625 r10763 47 47 * @return panel with server preferences tabs 48 48 */ 49 pr otectedJPanel buildTabbedServerPreferences() {49 private JPanel buildTabbedServerPreferences() { 50 50 JPanel pnl = new JPanel(new BorderLayout()); 51 51 pnl.add(getTabPane(), BorderLayout.CENTER); … … 58 58 * @return preferences panel for server settings 59 59 */ 60 pr otectedJPanel buildContentPanel() {60 private JPanel buildContentPanel() { 61 61 JPanel pnl = new JPanel(new GridBagLayout()); 62 62 GridBagConstraints gc = new GridBagConstraints(); -
trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java
r10680 r10763 169 169 } 170 170 171 pr otectedvoid setPropertyText(String propertyText) {171 private void setPropertyText(String propertyText) { 172 172 this.propertyText = propertyText; 173 173 } -
trunk/src/org/openstreetmap/josm/tools/TextTagParser.java
r10604 r10763 151 151 } 152 152 153 protectedstatic String unescape(String k) {153 static String unescape(String k) { 154 154 if (!(k.startsWith("\"") && k.endsWith("\""))) { 155 155 if (k.contains("=")) {
Note:
See TracChangeset
for help on using the changeset viewer.