setId("change_variable_name"); //$NON-NLS-1$
setToolTipText(Messages.VarChangeAction_Change_Var_Name);
}
public void run() {
IUndoableOperation operation = new VarChangeOperation(adapter);
operation.addContext(adapter.getUndoContext());
IOperationHistory history = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
try {
history.execute(operation, null, null);
} catch (ExecutionException e) {
VisualSwingPlugin.getLogger().error(e);