Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Using FormToolkit
Using FormToolkit [message #445658] Mon, 08 November 2004 22:46 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:CBanner notification ?
Next Topic:org.eclipse.swt.opengl/gtk/eclipse/swt/opengl/*
Goto Forum:
  


Current Time: Thu Sep 26 19:41:15 GMT 2024

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

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

Back to the top