Ejemplo n.º 1
0
  public void activate() {
    bounds = null;
    super.activate();

    if (getEditor() != null
        && getViewer() != null
        && getColumn() != null
        && getChart() != null
        && getColumnHead() != null) {
      Rectangle b = getPreferredBounds();
      Point loc = getViewer().computeToControl(b.getLocation(), true);
      getEditor().setInitialLocation(new org.eclipse.swt.graphics.Point(loc.x, loc.y));
      getEditor().setInitialSize(new org.eclipse.swt.graphics.Point(b.width, b.height));
    }
  }
Ejemplo n.º 2
0
 public void deactivate() {
   bounds = null;
   super.deactivate();
 }