Revision 85

View differences:

org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.swing/org.gvsig.vectorediting.swing.impl/src/main/java/org/gvsig/vectorediting/swing/impl/DefaultEditingBehavior.java
82 82

  
83 83
  private Point adjustedPoint;
84 84

  
85
  // private StatusBarListener sbl = null;
86

  
87 85
  private JConsole console;
88 86

  
89 87
  private JDockPanel dockConsole = null;
......
159 157
      FLayers layers = mapControl.getMapContext().getLayers();
160 158
      for (int i = 0; i < layers.getLayersCount(); i++) {
161 159
        if (layers.getLayer(i) instanceof FLyrVect
162
            && layers.getLayer(i).isActive()) 
160
            && layers.getLayer(i).isActive())
163 161
          changeCurrentLayer((FLyrVect) layers.getLayer(i));
164 162
      }
165 163
    }
......
456 454

  
457 455
  /**
458 456
   * Sets the layer received as parameter as {@link #currentLayer}
459
   * 
457
   *
460 458
   * @param layer
461 459
   */
462 460
  private void changeCurrentLayer(FLyrVect layer)
......
475 473
    }
476 474
  }
477 475

  
478
  // /**
479
  // * Show coordinates at status bar
480
  // *
481
  // * @param point
482
  // */
483
  // private void showCoords(Point2D point) {
484
  // String[] axisText = new String[2];
485
  // axisText[0] = "X = ";
486
  // axisText[1] = "Y = ";
487
  //
488
  // ViewPort vp = mapControl.getMapContext().getViewPort();
489
  // IProjection iProj = vp.getProjection();
490
  // Point p = vp.convertToMapPoint(point);
491
  // Point2D p2D = new Point2D.Double(p.getX(), p.getY());
492
  //
493
  // sbl.setFractionDigits(p2D);
494
  // axisText = sbl.setCoorDisplayText(axisText);
495
  // MainFrame mF = PluginServices.getMainFrame();
496
  //
497
  // if (mF != null) {
498
  // mF.getStatusBar()
499
  // .setMessage(
500
  // "units",
501
  // PluginServices.getText(this, MapContext
502
  // .getDistanceNames()[vp.getDistanceUnits()]));
503
  // mF.getStatusBar().setControlValue("scale",
504
  // String.valueOf(mapControl.getMapContext().getScaleView()));
505
  // mF.getStatusBar().setMessage("projection", iProj.getAbrev());
506
  //
507
  // String[] coords = sbl.getCoords(p2D);
508
  // mF.getStatusBar().setMessage("x", axisText[0] + coords[0]);
509
  // mF.getStatusBar().setMessage("y", axisText[1] + coords[1]);
510
  // }
511
  //
512
  // }
513

  
514 476
  /**
515 477
   * Processes console entries from console. Tries to process entry in each type
516 478
   * of {@link #currentParam}. If there is some error, It will continue
517 479
   * checking. If entry has been processed, It will set value in
518 480
   * {@link #activeService}.
519
   * 
481
   *
520 482
   * @param response Console entry.
521 483
   * @throws InvalidEntryException If console entries has not been able to
522 484
   *           process, it will throw an exception to indicate that entry is not
......
603 565

  
604 566
  /**
605 567
   * Parse String to value.
606
   * 
568
   *
607 569
   * @param response String to be parsed.
608 570
   * @return Values of string.
609 571
   * @throws ParseValueException If there is error trying to parse
......
621 583

  
622 584
  /**
623 585
   * Parse String to point. Formats accepted: (x,y) and x,y.
624
   * 
586
   *
625 587
   * @param response String to be parsed.
626 588
   * @return Point of string.
627 589
   * @throws ParsePointException If there is error trying to parse
org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.swing/org.gvsig.vectorediting.swing.impl/src/main/java/org/gvsig/vectorediting/swing/impl/EditingCompoundBehavior.java
235 235

  
236 236
		if (this.selection == null){
237 237
			if (mc !=null) {
238
//				StatusBarListener sbl = new StatusBarListener(mc);
239 238
				PointSelectionListener psl = new PointSelectionListener(mc);
240 239
				this.selection = new CompoundBehavior(new Behavior[] {
241
						new PointBehavior(psl) }); //, new MouseMovementBehavior(sbl) });
240
						new PointBehavior(psl) });
242 241
				this.selection.setMapControl(mc);
243 242
			}
244 243
		} else {
org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.swing/org.gvsig.vectorediting.swing.impl/src/main/java/org/gvsig/vectorediting/swing/impl/DefaultEditingSwingManager.java
12 12
import java.awt.GridBagConstraints;
13 13
import java.awt.GridBagLayout;
14 14
import java.awt.Insets;
15
import java.util.List;
16 15

  
17 16
import javax.swing.JLabel;
18 17
import javax.swing.JOptionPane;

Also available in: Unified diff