예제 #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));
    }
  }
예제 #2
0
 public void deactivate() {
   bounds = null;
   super.deactivate();
 }