Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » CommandStack in IEditingDomainProvider
CommandStack in IEditingDomainProvider [message #417050] Mon, 25 February 2008 05:36 Go to next message
Eclipse UserFriend
Originally posted by: harkon.ogame.gmail.com

Hi!

I obtained a reference to the editor of an ecore model. There I can add
commands to the command stack. I found some implementations like:
CopyCreateCommand and so on...

But: How are these things working? Is there some documentation about
commands used for this IEditingDomainProvider command stack?

Cheers
harkon
Re: CommandStack in IEditingDomainProvider [message #417053 is a reply to message #417050] Mon, 25 February 2008 12:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33143
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030504000305070106010207
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Harkon,

Typically you'd use static methods like SetCommand.create to create
command. Those methods in turn delegate to the editing domain, which
delegates most command creations to the item provider of the command's
owner object. However you create a command, you simply execute it on
the command stack. Did you read the EMF.Edit overview yet?
< http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. emf.doc//references/overview/EMF.Edit.html>


http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. emf.doc//references/overview/EMF.Edit.html


harkon wrote:
> Hi!
>
> I obtained a reference to the editor of an ecore model. There I can
> add commands to the command stack. I found some implementations like:
> CopyCreateCommand and so on...
>
> But: How are these things working? Is there some documentation about
> commands used for this IEditingDomainProvider command stack?
>
> Cheers
> harkon
>


--------------030504000305070106010207
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Harkon,<br>
<br>
Typically you'd use static methods like SetCommand.create to create
command.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Strange URI format
Next Topic:How to listen to EMF clipboard?
Goto Forum:
  


Current Time: Tue Apr 30 15:11:45 GMT 2024

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

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

Back to the top