ChangeChildPropertyValueRequest [message #196182] |
Wed, 09 July 2008 08:10 |
Eclipse User |
|
|
|
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 !!!
|
|
|
Powered by
FUDForum. Page generated in 0.01925 seconds