Changeset 14153 in josm for trunk/src/org/openstreetmap/josm/gui/conflict/tags/CombinePrimitiveResolverDialog.java
- Timestamp:
- 2018-08-13T02:18:54+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/tags/CombinePrimitiveResolverDialog.java
r12940 r14153 31 31 import javax.swing.JSplitPane; 32 32 33 import org.openstreetmap.josm.Main;34 33 import org.openstreetmap.josm.actions.ExpertToggleAction; 35 34 import org.openstreetmap.josm.command.Command; … … 41 40 import org.openstreetmap.josm.data.osm.Way; 42 41 import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil; 42 import org.openstreetmap.josm.gui.MainApplication; 43 43 import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction; 44 44 import org.openstreetmap.josm.gui.help.HelpUtil; … … 66 66 * Models have to be <strong>populated</strong> before the dialog is launched. Example: 67 67 * <pre> 68 * CombinePrimitiveResolverDialog dialog = new CombinePrimitiveResolverDialog(Main .parent);68 * CombinePrimitiveResolverDialog dialog = new CombinePrimitiveResolverDialog(MainApplication.getMainFrame()); 69 69 * dialog.getTagConflictResolverModel().populate(aTagCollection); 70 70 * dialog.getRelationMemberConflictResolverModel().populate(aRelationLinkCollection); … … 370 370 prepareGUIBeforeConflictResolutionStarts(); 371 371 setMinimumSize(new Dimension(400, 400)); 372 new WindowGeometry(getClass().getName() + ".geometry", WindowGeometry.centerInWindow(Main .parent,372 new WindowGeometry(getClass().getName() + ".geometry", WindowGeometry.centerInWindow(MainApplication.getMainFrame(), 373 373 new Dimension(800, 600))).applySafe(this); 374 374 setApplied(false); … … 521 521 UserCancelException canceled = GuiHelper.runInEDTAndWaitAndReturn(() -> { 522 522 // Build conflict resolution dialog 523 final CombinePrimitiveResolverDialog dialog = new CombinePrimitiveResolverDialog(Main.parent, tagModel, relModel); 523 final CombinePrimitiveResolverDialog dialog = new CombinePrimitiveResolverDialog( 524 MainApplication.getMainFrame(), tagModel, relModel); 524 525 525 526 // Ensure a proper title is displayed instead of a previous target (fix #7925) … … 580 581 if (!ConditionalOptionPaneUtil.showConfirmationDialog( 581 582 "combine_tags", 582 Main .parent,583 MainApplication.getMainFrame(), 583 584 "<html>" + msg + "</html>", 584 585 tr("Combine confirmation"), … … 614 615 if (!ConditionalOptionPaneUtil.showConfirmationDialog( 615 616 "combine_tags", 616 Main .parent,617 MainApplication.getMainFrame(), 617 618 "<html>" + msg + "</html>", 618 619 tr("Combine confirmation"),
Note:
See TracChangeset
for help on using the changeset viewer.