Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problems using Node.createStyle(eClass)
Problems using Node.createStyle(eClass) [message #42539] Fri, 08 September 2006 05:13
Eclipse UserFriend
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: Tue Jul 22 19:15:54 EDT 2025

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

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

Back to the top