Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsOpening a wizard when creating a object...
https://www.eclipse.org/forums/index.php/mv/msg/130307/403372/#msg_403372
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.]]>kiril mitov2006-09-04T17:32:13-00:00Re: Opening a wizard when creating a object...
https://www.eclipse.org/forums/index.php/mv/msg/130307/403383/#msg_403383
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.
>]]>Ed Merks2006-09-05T12:25:21-00:00Re: Opening a wizard when creating a object...
https://www.eclipse.org/forums/index.php/mv/msg/130307/403437/#msg_403437
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.
>>]]>kiril mitov2006-09-08T06:57:42-00:00