Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How can I add a command to the gef command stack?
How can I add a command to the gef command stack? [message #490456] Thu, 08 October 2009 17:27 Go to next message
Lisete  is currently offline Lisete
Messages: 8
Registered: July 2009
Junior Member
How can I add a command to the gef command stack without creating an action or using a edit policy?

Lisete
Re: How can I add a command to the gef command stack? [message #490781 is a reply to message #490456] Sat, 10 October 2009 16:01 Go to previous message
Pratik Shah is currently offline Pratik Shah
Messages: 1077
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0103_01CA49A1.6B1C4EA0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable

viewer.getEditDomain().getCommandStack().execute(command);
"Lisete" <lisete.rodrigues.santos@gmail.com> wrote in message =
news:hal7e8$q7t$1@build.eclipse.org...
How can I add a command to the gef command stack without creating an =
action or using a edit policy?

Lisete
------=_NextPart_000_0103_01CA49A1.6B1C4EA0
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3Dtext/html;charset=3Dutf-8>
<META content=3D"MSHTML 6.00.6000.16890" name=3DGENERATOR></HEAD>
<BODY id=3DMailContainerBody=20
style=3D"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" =
leftMargin=3D0=20
topMargin=3D0 CanvasTabStop=3D"true" name=3D"Compose message area">
<DIV><FONT=20
face=3DCalibri>viewer.getEditDomain().getCommandStack().execute(command);=
</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Lisete" &lt;<A=20
title=3D"mailto:lisete.rodrigues.santos@gmail.com&#10;CTRL + Click to =
follow link"=20
=
href=3D"mailto:lisete.rodrigues.santos@gmail.com">lisete.rodrigues.santos=
@gmail.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:hal7e8$q7t$1@build.eclipse.org">news:hal7e8$q7t$1@build.ecli=
pse.org</A>...</DIV>How=20
can I add a command to the gef command stack without creating an =
action or=20
using a edit policy?<BR><BR>Lisete</BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0103_01CA49A1.6B1C4EA0--
Previous Topic:Selecting the palette causes a properties view update?
Next Topic:[Draw2d] Custom Figures with hierarchy for GEF EditPart
Goto Forum:
  


Current Time: Sat Nov 01 10:31:03 GMT 2014

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

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