Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » ChangeChildPropertyValueRequest
ChangeChildPropertyValueRequest [message #196182] Wed, 09 July 2008 08:10
Eclipse UserFriend
Originally posted by: psytus.gmx.net

Hello, do somebody know how to use the ChangeChildPropertyValueRequest ?
It tried the following but the command I get is nullÂ…


public static void setCompartmentColor(GraphicalEditPart GEP, Color color,
String propertyID){

ChangeChildPropertyValueRequest req = new
ChangeChildPropertyValueRequest(
null, propertyID,
FigureUtilities.colorToInteger(color),xxxVisualIDRegistry
.getType(xxxCompartmentEditPart.VISUAL_ID));
final Command cmd = GEP.getParent().getCommand(req);
AbstractEMFOperation operation = new
AbstractEMFOperation(((GraphicalEditPart)GEP.getParent()).ge tEditingDomain(),
StringStatics.BLANK, null){
protected IStatus doExecute(IProgressMonitor
monitor, IAdaptable info) throws ExecutionException {
cmd.execute();

return null;
}
};

try {
operation.execute(new NullProgressMonitor(), null);
} catch (ExecutionException e) {

}
}

Thanks a lot !!!
Previous Topic:GMF properties sheet
Next Topic:filter edges / nodes
Goto Forum:
  


Current Time: Sat Jun 06 10:55:25 GMT 2020

Powered by FUDForum. Page generated in 0.01501 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top