Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problems using Node.createStyle(eClass)
Problems using Node.createStyle(eClass) [message #42539] Fri, 08 September 2006 09:13
Tanyu Trifonov is currently offline Tanyu TrifonovFriend
Messages: 73
Registered: July 2009
Member
Hi,

I'm trying to use Node.createStyle(eClass) in my XXXEditPartProvider but
without success. Here is the code

try {
AddCommand cmd= new AddCommand(ed, node.getStyles(), My_eClass);
ed.getCommandStack().execute(cmd);
} catch (Exception e)
{
e.printStackTrace();
}

But I've got the following exception:
java.lang.IllegalStateException: Cannot activate read/write transaction
in read-only transaction context

Can you give me any hints how to solve the problem?

Regards,
Trifonov
Previous Topic:Create generator model failed
Next Topic:Re: Root element
Goto Forum:
  


Current Time: Thu Dec 26 13:07:06 GMT 2024

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

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

Back to the top