Package org.eclipse.gef.examples.logicdesigner.model.commands

Examples of org.eclipse.gef.examples.logicdesigner.model.commands.LogicLabelCommand


    return getDropTextCommand((NativeDropRequest)request);
  return super.getCommand(request);
}

protected Command getDropTextCommand(NativeDropRequest request) {
  LogicLabelCommand command = new LogicLabelCommand((LogicLabel)getHost().getModel(), (String)request.getData());
  return command;
}
View Full Code Here


* @see DirectEditPolicy#getDirectEditCommand(DirectEditRequest)
*/
protected Command getDirectEditCommand(DirectEditRequest edit) {
  String labelText = (String)edit.getCellEditor().getValue();
  LogicLabelEditPart label = (LogicLabelEditPart)getHost();
  LogicLabelCommand command = new LogicLabelCommand((LogicLabel)label.getModel(),labelText);
  return command;
}
View Full Code Here

TOP

Related Classes of org.eclipse.gef.examples.logicdesigner.model.commands.LogicLabelCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.