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