adding a form editor page to generated editor [message #54719] |
Fri, 29 September 2006 16:00  |
Eclipse User |
|
|
|
Originally posted by: duncan.krebsnet.com
Hi,
Using EMF to generate a base editor for my models seems great. Although
now I wan to add my own editor pages and am struggling in a couple of
areas. For example, say I have a form page that I want to add, I noticed
in the generated editor all pages are added through a ViewerPane class, is
the a requirement? Should I wrap my form page in a viewer? - Duncan
|
|
|
|
Re: adding a form editor page to generated editor [message #55053 is a reply to message #54893] |
Sat, 30 September 2006 00:37  |
Eclipse User |
|
|
|
Hi Duncan,
There are few steps to follow when creating an FormEditor
1. Your Editor should extend from org.eclipse.ui.forms.editor.FormEditor
( it internally extends the Multipage Editor)
2. All your pages should extend from org.eclipse.ui.forms.editor.FormPage
3.Override the addPages() of the FormEditor and use addPage(FormPage ..)
to add each and every page.
4. Model creation , resource loading and other features are just like
the Generated Editor of EMF. Please follow that editor for any
clarifications regarding the Model Creation and binding it to Editor.
Hope this helps you. If not please let me know , i shall clarify your
issues with the knowledge is have gained so far !
Thanks.
Kamesh
Ed Merks wrote:
> Duncan,
>
> Kamesh Sampath on the EMF newsgroup is working on a form editor, but I
> don't have much experience with that. You don't have to use
> ViewerPane. I'm not sure what approach Kamesh has used, in terms of
> starting with a sample forms editor and adding EMF to it or morphing
> the EMF generated editor into form editor.
>
>
> Duncan Krebs wrote:
>> Hi,
>> Using EMF to generate a base editor for my models seems great.
>> Although now I wan to add my own editor pages and am struggling in a
>> couple of areas. For example, say I have a form page that I want to
>> add, I noticed in the generated editor all pages are added through a
>> ViewerPane class, is the a requirement? Should I wrap my form page in
>> a viewer? - Duncan
--
Kamesh Sampath
|
|
|
Re: adding a form editor page to generated editor [message #592889 is a reply to message #54719] |
Fri, 29 September 2006 16:15  |
Eclipse User |
|
|
|
Duncan,
Kamesh Sampath on the EMF newsgroup is working on a form editor, but I
don't have much experience with that. You don't have to use ViewerPane.
I'm not sure what approach Kamesh has used, in terms of starting with a
sample forms editor and adding EMF to it or morphing the EMF generated
editor into form editor.
Duncan Krebs wrote:
> Hi,
> Using EMF to generate a base editor for my models seems great.
> Although now I wan to add my own editor pages and am struggling in a
> couple of areas. For example, say I have a form page that I want to
> add, I noticed in the generated editor all pages are added through a
> ViewerPane class, is the a requirement? Should I wrap my form page in
> a viewer? - Duncan
|
|
|
Re: adding a form editor page to generated editor [message #592959 is a reply to message #54893] |
Sat, 30 September 2006 00:37  |
Eclipse User |
|
|
|
Hi Duncan,
There are few steps to follow when creating an FormEditor
1. Your Editor should extend from org.eclipse.ui.forms.editor.FormEditor
( it internally extends the Multipage Editor)
2. All your pages should extend from org.eclipse.ui.forms.editor.FormPage
3.Override the addPages() of the FormEditor and use addPage(FormPage ..)
to add each and every page.
4. Model creation , resource loading and other features are just like
the Generated Editor of EMF. Please follow that editor for any
clarifications regarding the Model Creation and binding it to Editor.
Hope this helps you. If not please let me know , i shall clarify your
issues with the knowledge is have gained so far !
Thanks.
Kamesh
Ed Merks wrote:
> Duncan,
>
> Kamesh Sampath on the EMF newsgroup is working on a form editor, but I
> don't have much experience with that. You don't have to use
> ViewerPane. I'm not sure what approach Kamesh has used, in terms of
> starting with a sample forms editor and adding EMF to it or morphing
> the EMF generated editor into form editor.
>
>
> Duncan Krebs wrote:
>> Hi,
>> Using EMF to generate a base editor for my models seems great.
>> Although now I wan to add my own editor pages and am struggling in a
>> couple of areas. For example, say I have a form page that I want to
>> add, I noticed in the generated editor all pages are added through a
>> ViewerPane class, is the a requirement? Should I wrap my form page in
>> a viewer? - Duncan
--
Kamesh Sampath
|
|
|
Powered by
FUDForum. Page generated in 0.05584 seconds