Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Alter the location and the background color of EditPart
Alter the location and the background color of EditPart [message #1042657] Tue, 16 April 2013 18:12 Go to next message
Fatla 777 is currently offline Fatla 777Friend
Messages: 13
Registered: April 2013
Junior Member
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();
		}


How can I alter its background color !
Re: Alter the location and the background color of EditPart [message #1042659 is a reply to message #1042657] Tue, 16 April 2013 18:14 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33147
Registered: July 2009
Senior Member
Is this a GMF question?


On 16/04/2013 8:12 PM, Fatla 777 wrote:
> 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();
> }
>
> How can I alter its background color !


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Alter the location and the background color of EditPart [message #1042669 is a reply to message #1042659] Tue, 16 April 2013 18:21 Go to previous message
Fatla 777 is currently offline Fatla 777Friend
Messages: 13
Registered: April 2013
Junior Member
Yes.
Sorry I created on the GMF group.
Previous Topic:Alter the location and the background color of EditPart
Next Topic:Recursive loading
Goto Forum:
  


Current Time: Tue May 14 11:20:36 GMT 2024

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

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

Back to the top