Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWTForms in a xwt
XWTForms in a xwt [message #633576] Mon, 18 October 2010 12:59 Go to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 57
Registered: September 2009
Member
How can I import org.eclipse e4.xwt.forms classes in a java class (acces restriction) ?
My aim is to load XWT forms classes 'and metaclasses) in order to load a XWT file that contains Section element. I tried to copy the XWTForms.applyFormsProfile() method but it uses metaclass placed in a restricted package. Have you got an idea ?

Thanks.
Re: XWTForms in a xwt [message #633679 is a reply to message #633576] Mon, 18 October 2010 20:13 Go to previous messageGo to next message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
There are some tectcasees in the project org.eclipse.e4.xwt.tests. They are
helpful to understand how it works.

Best regards
Yves YANG
"Valoueee" <val.dupin@free.fr> wrote in message
news:i9hg64$fjf$1@news.eclipse.org...
> How can I import org.eclipse e4.xwt.forms classes in a java class (acces
> restriction) ?
> My aim is to load XWT forms classes 'and metaclasses) in order to load a
> XWT file that contains Section element. I tried to copy the
> XWTForms.applyFormsProfile() method but it uses metaclass placed in a
> restricted package. Have you got an idea ?
>
> Thanks.
>
Re: XWTForms in a xwt [message #633753 is a reply to message #633679] Tue, 19 October 2010 09:43 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 57
Registered: September 2009
Member
HEllo,

Thank you for your answer but examples use XWTForms.open(URL)

Finally, I used
XWT.registerMetaClass(org.eclipse.ui.forms.widgets.Section.c lass);
in order to load Section class used in my XWT file.

I works fine !


Re: XWTForms in a xwt [message #633935 is a reply to message #633753] Tue, 19 October 2010 23:41 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
Yes, XWTForm is a utility class, which loads all forms classes and other
necessary stuffs.

Best regards
Yves YANG
"Valoueee" <val.dupin@free.fr> wrote in message
news:i9jp1b$bqo$1@news.eclipse.org...
> HEllo,
>
> Thank you for your answer but examples use XWTForms.open(URL)
>
> Finally, I used
> XWT.registerMetaClass(org.eclipse.ui.forms.widgets.Section.c lass);
> in order to load Section class used in my XWT file.
>
> I works fine !
>
>
>
Previous Topic:What can you write in a CSS file for themeing the e4 Workbench?
Next Topic:e4 and JFace Wizards
Goto Forum:
  


Current Time: Sun Sep 21 00:20:09 GMT 2014

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

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