@Override
protected void updateTooltipCommand() {
// EAST
if (m_resizeDirection == IPositionConstants.EAST) {
final String newWidth = getNewWidth();
m_command = new EditCommand(m_widget) {
@Override
protected void executeEdit() throws Exception {
AnchorLayoutInfo.getAnchorData(m_widget).setAnchorWidth(newWidth);
}
};
}
// SOUTH
if (m_resizeDirection == IPositionConstants.SOUTH) {
final String newHeight = getNewHeight();
m_command = new EditCommand(m_widget) {
@Override
protected void executeEdit() throws Exception {
AnchorLayoutInfo.getAnchorData(m_widget).setAnchorHeight(newHeight);
}
};