Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » adding a form editor page to generated editor
adding a form editor page to generated editor [message #54719] Fri, 29 September 2006 20:00 Go to next message
Eclipse UserFriend
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 #54893 is a reply to message #54719] Fri, 29 September 2006 20:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

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 #55053 is a reply to message #54893] Sat, 30 September 2006 04:37 Go to previous message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 191
Registered: July 2009
Senior Member
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 20:15 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: adding a form editor page to generated editor [message #592959 is a reply to message #54893] Sat, 30 September 2006 04:37 Go to previous message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 191
Registered: July 2009
Senior Member
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
Previous Topic:EODM initial documentation is posted
Next Topic:EMF Model Synchrinization with Multipage Editor (Tree based Editor and Text Editor)
Goto Forum:
  


Current Time: Fri Apr 26 12:37:13 GMT 2024

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

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

Back to the top