コード例 #1
0
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.gef.commands.Command#execute()
  */
 @Override
 public void execute() {
   transformationUnit.setActivated(status);
 }
コード例 #2
0
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.gef.commands.Command#undo()
  */
 @Override
 public void undo() {
   transformationUnit.setActivated(!status);
 }
コード例 #3
0
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.gef.commands.Command#canExecute()
  */
 @Override
 public boolean canExecute() {
   return transformationUnit.isActivated() != status;
 }