Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » CREATION_ROLE not working
CREATION_ROLE not working [message #104246] Thu, 15 February 2007 07:33 Go to next message
Eclipse UserFriend
Hi,

I m using GMF2.0M2.I have one custom CreationEditPolicy. I m overridding
createCommand method by which I shold be able to create one Note with the
Figure.

But itz not working.
installEditPolicy(EditPolicyRoles.CREATION_ROLE,

new CreationEditPolicy());
Re: CREATION_ROLE not working [message #104347 is a reply to message #104246] Thu, 15 February 2007 11:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

Did you mean using new MyCreationEditPolicy() ?

On Thu, 15 Feb 2007 18:03:52 +0530, Sandip Sahoo wrote:

> Hi,
>
> I m using GMF2.0M2.I have one custom CreationEditPolicy. I m overridding
> createCommand method by which I shold be able to create one Note with the
> Figure.
>
> But itz not working.
> installEditPolicy(EditPolicyRoles.CREATION_ROLE,
>
> new CreationEditPolicy());
Re: CREATION_ROLE not working [message #104435 is a reply to message #104347] Fri, 16 February 2007 01:11 Go to previous messageGo to next message
Eclipse UserFriend
yes..

"Vlad Ciubotariu" <vcciubot@uwaterloo.ca> wrote in message
news:pan.2007.02.15.16.09.48.894238@uwaterloo.ca...
> Did you mean using new MyCreationEditPolicy() ?
>
> On Thu, 15 Feb 2007 18:03:52 +0530, Sandip Sahoo wrote:
>
> > Hi,
> >
> > I m using GMF2.0M2.I have one custom CreationEditPolicy. I m overridding
> > createCommand method by which I shold be able to create one Note with
the
> > Figure.
> >
> > But itz not working.
> > installEditPolicy(EditPolicyRoles.CREATION_ROLE,
> >
> > new CreationEditPolicy());
>
Re: CREATION_ROLE not working [message #104561 is a reply to message #104435] Fri, 16 February 2007 05:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

Start debugging at the EditPart.getCommand(Request); that's the gate to
the all diagram editor functionality...

Sandip Sahoo wrote:
> yes..
>
> "Vlad Ciubotariu" <vcciubot@uwaterloo.ca> wrote in message
> news:pan.2007.02.15.16.09.48.894238@uwaterloo.ca...
>> Did you mean using new MyCreationEditPolicy() ?
>>
>> On Thu, 15 Feb 2007 18:03:52 +0530, Sandip Sahoo wrote:
>>
>>> Hi,
>>>
>>> I m using GMF2.0M2.I have one custom CreationEditPolicy. I m overridding
>>> createCommand method by which I shold be able to create one Note with
> the
>>> Figure.
>>>
>>> But itz not working.
>>> installEditPolicy(EditPolicyRoles.CREATION_ROLE,
>>>
>>> new CreationEditPolicy());
>
>
Re: CREATION_ROLE not working [message #104613 is a reply to message #104435] Fri, 16 February 2007 10:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

I have a post on how to do this:

search for a thread called "how to create programmatically a note
attachment", in that post I only create the note, but there's support to
create the attachment as well, I've seen it done somewhere maybe someone
else can point you to the right place.

vlad



On Fri, 16 Feb 2007 11:41:17 +0530, Sandip Sahoo wrote:

> yes..
>
> "Vlad Ciubotariu" <vcciubot@uwaterloo.ca> wrote in message
> news:pan.2007.02.15.16.09.48.894238@uwaterloo.ca...
>> Did you mean using new MyCreationEditPolicy() ?
>>
>> On Thu, 15 Feb 2007 18:03:52 +0530, Sandip Sahoo wrote:
>>
>> > Hi,
>> >
>> > I m using GMF2.0M2.I have one custom CreationEditPolicy. I m overridding
>> > createCommand method by which I shold be able to create one Note with
> the
>> > Figure.
>> >
>> > But itz not working.
>> > installEditPolicy(EditPolicyRoles.CREATION_ROLE,
>> >
>> > new CreationEditPolicy());
>>
Re: CREATION_ROLE not working [message #104768 is a reply to message #104613] Sat, 17 February 2007 01:16 Go to previous messageGo to next message
Eclipse UserFriend
I tried with the same.. But itz not working. Itz not at all entering into ..
I m using GMF2.0M2. Is it a Bug with this version?

protected Command getCreateCommand(CreateViewRequest request) {
-------------------------
}
"Vlad Ciubotariu" <vcciubot@uwaterloo.ca> wrote in message
news:pan.2007.02.16.15.11.52.233650@uwaterloo.ca...
> I have a post on how to do this:
>
> search for a thread called "how to create programmatically a note
> attachment", in that post I only create the note, but there's support to
> create the attachment as well, I've seen it done somewhere maybe someone
> else can point you to the right place.
>
> vlad
>
>
>
> On Fri, 16 Feb 2007 11:41:17 +0530, Sandip Sahoo wrote:
>
> > yes..
> >
> > "Vlad Ciubotariu" <vcciubot@uwaterloo.ca> wrote in message
> > news:pan.2007.02.15.16.09.48.894238@uwaterloo.ca...
> >> Did you mean using new MyCreationEditPolicy() ?
> >>
> >> On Thu, 15 Feb 2007 18:03:52 +0530, Sandip Sahoo wrote:
> >>
> >> > Hi,
> >> >
> >> > I m using GMF2.0M2.I have one custom CreationEditPolicy. I m
overridding
> >> > createCommand method by which I shold be able to create one Note with
> > the
> >> > Figure.
> >> >
> >> > But itz not working.
> >> > installEditPolicy(EditPolicyRoles.CREATION_ROLE,
> >> >
> >> > new CreationEditPolicy());
> >>
>
Re: CREATION_ROLE not working [message #104949 is a reply to message #104768] Mon, 19 February 2007 10:08 Go to previous message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

the request being sent is CreateViewAndElementRequest.

Put the breakpoint in EditPolicy.getCommand() first and then trace it to
see what's happening.

vlad

On Sat, 17 Feb 2007 11:46:04 +0530, Sandip Sahoo wrote:

> I tried with the same.. But itz not working. Itz not at all entering into ..
> I m using GMF2.0M2. Is it a Bug with this version?
>
> protected Command getCreateCommand(CreateViewRequest request) {
> -------------------------
> }
> "Vlad Ciubotariu" <vcciubot@uwaterloo.ca> wrote in message
> news:pan.2007.02.16.15.11.52.233650@uwaterloo.ca...
>> I have a post on how to do this:
>>
>> search for a thread called "how to create programmatically a note
>> attachment", in that post I only create the note, but there's support to
>> create the attachment as well, I've seen it done somewhere maybe someone
>> else can point you to the right place.
>>
>> vlad
>>
>>
>>
>> On Fri, 16 Feb 2007 11:41:17 +0530, Sandip Sahoo wrote:
>>
>> > yes..
>> >
>> > "Vlad Ciubotariu" <vcciubot@uwaterloo.ca> wrote in message
>> > news:pan.2007.02.15.16.09.48.894238@uwaterloo.ca...
>> >> Did you mean using new MyCreationEditPolicy() ?
>> >>
>> >> On Thu, 15 Feb 2007 18:03:52 +0530, Sandip Sahoo wrote:
>> >>
>> >> > Hi,
>> >> >
>> >> > I m using GMF2.0M2.I have one custom CreationEditPolicy. I m
> overridding
>> >> > createCommand method by which I shold be able to create one Note with
>> > the
>> >> > Figure.
>> >> >
>> >> > But itz not working.
>> >> > installEditPolicy(EditPolicyRoles.CREATION_ROLE,
>> >> >
>> >> > new CreationEditPolicy());
>> >>
>>
Previous Topic:How to disable deleting/creating nodes/connections in compartment?
Next Topic:How to programmatically delete/remove elements
Goto Forum:
  


Current Time: Thu May 08 14:58:02 EDT 2025

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

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

Back to the top