Changeset 5988 in josm
- Timestamp:
- 2013-06-05T00:23:10+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/conflict/tags
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/tags/CombinePrimitiveResolverDialog.java
r5792 r5988 46 46 import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction; 47 47 import org.openstreetmap.josm.gui.help.HelpUtil; 48 import org.openstreetmap.josm.gui.util.GuiHelper; 48 49 import org.openstreetmap.josm.tools.CheckParameterUtil; 49 50 import org.openstreetmap.josm.tools.ImageProvider; … … 97 98 public static CombinePrimitiveResolverDialog getInstance() { 98 99 if (instance == null) { 99 instance = new CombinePrimitiveResolverDialog(Main.parent); 100 GuiHelper.runInEDTAndWait(new Runnable() { 101 @Override public void run() { 102 instance = new CombinePrimitiveResolverDialog(Main.parent); 103 } 104 }); 100 105 } 101 106 return instance; … … 129 134 * @param primitive the target primitive 130 135 */ 131 public void setTargetPrimitive( OsmPrimitive primitive) {136 public void setTargetPrimitive(final OsmPrimitive primitive) { 132 137 this.targetPrimitive = primitive; 133 updateTitle(); 134 if (primitive instanceof Way) { 135 pnlRelationMemberConflictResolver.initForWayCombining(); 136 } else if (primitive instanceof Node) { 137 pnlRelationMemberConflictResolver.initForNodeMerging(); 138 } 138 GuiHelper.runInEDTAndWait(new Runnable() { 139 @Override public void run() { 140 updateTitle(); 141 if (primitive instanceof Way) { 142 pnlRelationMemberConflictResolver.initForWayCombining(); 143 } else if (primitive instanceof Node) { 144 pnlRelationMemberConflictResolver.initForNodeMerging(); 145 } 146 } 147 }); 139 148 } 140 149 -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictResolverModel.java
r5832 r5988 19 19 import org.openstreetmap.josm.data.osm.RelationMember; 20 20 import org.openstreetmap.josm.data.osm.RelationToChildReference; 21 import org.openstreetmap.josm.gui.util.GuiHelper; 21 22 22 23 /** … … 191 192 public void refresh() { 192 193 updateNumConflicts(); 193 fireTableDataChanged(); 194 GuiHelper.runInEDTAndWait(new Runnable() { 195 @Override public void run() { 196 fireTableDataChanged(); 197 } 198 }); 194 199 } 195 200 -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java
r5266 r5988 15 15 16 16 import org.openstreetmap.josm.data.osm.TagCollection; 17 import org.openstreetmap.josm.gui.util.GuiHelper; 17 18 import org.openstreetmap.josm.tools.CheckParameterUtil; 18 19 … … 109 110 refreshNumConflicts(); 110 111 sort(); 111 fireTableDataChanged(); 112 GuiHelper.runInEDTAndWait(new Runnable() { 113 @Override public void run() { 114 fireTableDataChanged(); 115 } 116 }); 112 117 } 113 118 … … 160 165 } 161 166 } 162 fireTableDataChanged(); 167 GuiHelper.runInEDTAndWait(new Runnable() { 168 @Override public void run() { 169 fireTableDataChanged(); 170 } 171 }); 163 172 refreshNumConflicts(); 164 173 }
Note:
See TracChangeset
for help on using the changeset viewer.