Using FormToolkit [message #445658] |
Mon, 08 November 2004 22:46 |
Eclipse User |
|
|
|
Originally posted by: german.meneses.uncompany.org
Hi, i'm develop a plug-in by my final work, i'm using a FormToolkit in a
MultiPageEditor and i try launch the plug-in this don't work, this is a
sample from Internet but don't work or i don't know :D.
This is the code:
///
void createPage1()
{
Composite composite = new Composite(getContainer(), SWT.NONE);
toolkit = new FormToolkit(composite.getDisplay());
form = toolkit.createScrolledForm(composite);
form.setText("Hello, Eclipse Forms");
form.getBody().setLayout( new GridLayout() );
int index = addPage(composite);
setPageText(index, Messages.getString("MultiPageEditor.3"));
//$NON-NLS-1$
}
///
Thanks for all information.
|
|
|
Re: Using FormToolkit [message #445715 is a reply to message #445658] |
Wed, 10 November 2004 00:54 |
Eclipse User |
|
|
|
Originally posted by: german.meneses.uncompany.org
well, the error is that the new instance of eclipse that load the plugin
don't finding the class org.eclipse.ui.forms.widget.FormToolkit and
doesn't make the page, but i don't know how include this class, can any
body help me??
** sorry by my english
Germán Augusto Meneses Ríos wrote:
> Hi, i'm develop a plug-in by my final work, i'm using a FormToolkit in a
> MultiPageEditor and i try launch the plug-in this don't work, this is a
> sample from Internet but don't work or i don't know :D.
> This is the code:
> ///
> void createPage1()
> {
> Composite composite = new Composite(getContainer(), SWT.NONE);
> toolkit = new FormToolkit(composite.getDisplay());
> form = toolkit.createScrolledForm(composite);
> form.setText("Hello, Eclipse Forms");
> form.getBody().setLayout( new GridLayout() );
> int index = addPage(composite);
> setPageText(index, Messages.getString("MultiPageEditor.3"));
> //$NON-NLS-1$
> }
> ///
> Thanks for all information.
|
|
|
Powered by
FUDForum. Page generated in 0.04170 seconds