Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Opening a wizard when creating a object...
Opening a wizard when creating a object... [message #403372] Mon, 04 September 2006 17:32 Go to next message
kiril mitov is currently offline kiril mitovFriend
Messages: 128
Registered: July 2009
Senior Member
Hi all,
thanks for helping me.

I have generated an .editor plugin. There are different types of
customizations that might be done to the generated editor so that my
users would really like to work with the editor (btw-I personally prefer
not to modify anything).
So every time I build a new editor I always do one specific
customization - that is to add some wizards for creating the objects.
Many users prefer to have a wizard opened when they create a new object.

A colleague of mine has ones come with the following idea - to rewrite
the XyzActionBarContributor::generateCreateChildActions like this:
protected Collection generateCreateChildActions(...) {
Collection actions = new ArrayList();
if (descriptors != null) {
for (Iterator i = descriptors.iterator(); i.hasNext(); ) {
actions.add(new CreateChildActionDelegator(activeEditorPart,
selection, (CommandParameter) i.next()));
}
}
return actions;
}
Here CreateChildActionDelegator creates a specific action that knows how
to work with a specific wizard and delegates the functionality to the
new action.
Using this approach to create 2-3 wizard seems reasonable. But in the
moment I must implement an editor that will have a wizard for every
EStructuralFeature, EReference, etc. (This means around 20-30 wizards).
So I think it might be useful to have those wizards generated?
I have searched the bugzilla and the newsgroup but was unable to find a
similar post and an example solution to my problem.

Could somebody help me, or is it appropriate to add this as an
enhancement request?

Thank you.
Re: Opening a wizard when creating a object... [message #403383 is a reply to message #403372] Tue, 05 September 2006 12:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26215
Registered: July 2009
Senior Member
Kiril,

Our bugzilla count (mostly feature requests) exceeds 100 now and tends
to grow over time, so it's not likely that we can the steady stream of
new desires without significant contribution from the community. So it
seems like a reasonable feature requests, but it also seems unlikely we
will find time for it.


Kiril Mitov wrote:
> Hi all,
> thanks for helping me.
>
> I have generated an .editor plugin. There are different types of
> customizations that might be done to the generated editor so that my
> users would really like to work with the editor (btw-I personally prefer
> not to modify anything).
> So every time I build a new editor I always do one specific
> customization - that is to add some wizards for creating the objects.
> Many users prefer to have a wizard opened when they create a new object.
>
> A colleague of mine has ones come with the following idea - to rewrite
> the XyzActionBarContributor::generateCreateChildActions like this:
> protected Collection generateCreateChildActions(...) {
> Collection actions = new ArrayList();
> if (descriptors != null) {
> for (Iterator i = descriptors.iterator(); i.hasNext(); ) {
> actions.add(new CreateChildActionDelegator(activeEditorPart,
> selection, (CommandParameter) i.next()));
> }
> }
> return actions;
> }
> Here CreateChildActionDelegator creates a specific action that knows how
> to work with a specific wizard and delegates the functionality to the
> new action.
> Using this approach to create 2-3 wizard seems reasonable. But in the
> moment I must implement an editor that will have a wizard for every
> EStructuralFeature, EReference, etc. (This means around 20-30 wizards).
> So I think it might be useful to have those wizards generated?
> I have searched the bugzilla and the newsgroup but was unable to find a
> similar post and an example solution to my problem.
>
> Could somebody help me, or is it appropriate to add this as an
> enhancement request?
>
> Thank you.
>
Re: Opening a wizard when creating a object... [message #403437 is a reply to message #403383] Fri, 08 September 2006 06:57 Go to previous message
kiril mitov is currently offline kiril mitovFriend
Messages: 128
Registered: July 2009
Senior Member
Thanks Ed.
I will consider estimating the resources for implementing at least part of
the functionality.

Thanks again.

Ed Merks wrote:

> Kiril,

> Our bugzilla count (mostly feature requests) exceeds 100 now and tends
> to grow over time, so it's not likely that we can the steady stream of
> new desires without significant contribution from the community. So it
> seems like a reasonable feature requests, but it also seems unlikely we
> will find time for it.


> Kiril Mitov wrote:
>> Hi all,
>> thanks for helping me.
>>
>> I have generated an .editor plugin. There are different types of
>> customizations that might be done to the generated editor so that my
>> users would really like to work with the editor (btw-I personally prefer
>> not to modify anything).
>> So every time I build a new editor I always do one specific
>> customization - that is to add some wizards for creating the objects.
>> Many users prefer to have a wizard opened when they create a new object.
>>
>> A colleague of mine has ones come with the following idea - to rewrite
>> the XyzActionBarContributor::generateCreateChildActions like this:
>> protected Collection generateCreateChildActions(...) {
>> Collection actions = new ArrayList();
>> if (descriptors != null) {
>> for (Iterator i = descriptors.iterator(); i.hasNext(); ) {
>> actions.add(new CreateChildActionDelegator(activeEditorPart,
>> selection, (CommandParameter) i.next()));
>> }
>> }
>> return actions;
>> }
>> Here CreateChildActionDelegator creates a specific action that knows how
>> to work with a specific wizard and delegates the functionality to the
>> new action.
>> Using this approach to create 2-3 wizard seems reasonable. But in the
>> moment I must implement an editor that will have a wizard for every
>> EStructuralFeature, EReference, etc. (This means around 20-30 wizards).
>> So I think it might be useful to have those wizards generated?
>> I have searched the bugzilla and the newsgroup but was unable to find a
>> similar post and an example solution to my problem.
>>
>> Could somebody help me, or is it appropriate to add this as an
>> enhancement request?
>>
>> Thank you.
>>
Previous Topic:Loading
Next Topic:Ecore to DBSchema...Is sympedia's CDO same as the one in EMFT now
Goto Forum:
  


Current Time: Mon Nov 24 01:37:34 GMT 2014

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

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