CREATION_ROLE not working [message #104246] |
Thu, 15 February 2007 07:33  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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());
>> >>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.31867 seconds