protected final void build() {
   setTitle(tr("Conflicts in pasted tags"));
   for (OsmPrimitiveType type : OsmPrimitiveType.dataValues()) {
     resolvers.put(type, new TagConflictResolver());
     resolvers.get(type).getModel().addPropertyChangeListener(this);
   }
   getContentPane().setLayout(new GridBagLayout());
   mode = null;
   GridBagConstraints gc = new GridBagConstraints();
   gc.gridx = 0;
   gc.gridy = 0;
   gc.fill = GridBagConstraints.HORIZONTAL;
   gc.weightx = 1.0;
   gc.weighty = 0.0;
   getContentPane().add(buildSourceAndTargetInfoPanel(), gc);
   gc.gridx = 0;
   gc.gridy = 1;
   gc.fill = GridBagConstraints.BOTH;
   gc.weightx = 1.0;
   gc.weighty = 1.0;
   getContentPane().add(pnlTagResolver, gc);
   gc.gridx = 0;
   gc.gridy = 2;
   gc.fill = GridBagConstraints.HORIZONTAL;
   gc.weightx = 1.0;
   gc.weighty = 0.0;
   getContentPane().add(buildButtonPanel(), gc);
   InputMapUtils.addEscapeAction(getRootPane(), new CancelAction());
 }
Exemplo n.º 2
0
 /** Constructs a new {@code OsmPrimitiveTypesComboBox}. */
 public OsmPrimitiveTypesComboBox() {
   super(OsmPrimitiveType.dataValues().toArray());
 }