Alter the location and the background color of EditPar [message #1042666] |
Tue, 16 April 2013 14:20  |
Eclipse User |
|
|
|
Hello,
I have an EditPart I need to alter its location and background color.
I have managed to alter its location using:
ChangeBoundsRequest request = new ChangeBoundsRequest(RequestConstants.REQ_MOVE);
request.setEditParts(editPart);
request.setMoveDelta(newLocation);
Command cmd = editPart.getCommand(request);
if (cmd != null && cmd.canExecute()) {
cmd.execute();
}
I have managed to alter the background color by:
editPart.getContentPane().setBackgroundColor(color);
But whenever I close and re open the application,the color changes I made goes away!
How can I commit the background color !
[Updated on: Tue, 16 April 2013 15:34] by Moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07904 seconds