Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Can a Form be used with a Eclipse editor
Can a Form be used with a Eclipse editor [message #440243] Tue, 27 July 2004 14:49 Go to next message
Jainthra Fernandes is currently offline Jainthra FernandesFriend
Messages: 13
Registered: July 2009
Junior Member
I read the article at
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/pde- ui-home/working/EclipseForms/EclipseForms.html

and tried to use forms. But my editor is not a MultiPage editor.
public class XXX extends EditorPart{

public void createPartControl(Composite parent) {
FormToolkit toolkit = new FormToolkit(parent.getDisplay());
Form form = toolkit.createForm(parent);
form.setText("Hello, Eclipse Forms");

}
Re: Can a Form be used with a Eclipse editor [message #440245 is a reply to message #440243] Tue, 27 July 2004 15:10 Go to previous messageGo to next message
Henning Rogge is currently offline Henning RoggeFriend
Messages: 148
Registered: July 2009
Senior Member
Jainthra wrote:
> I read the article at
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/pde- ui-home/working/EclipseForms/EclipseForms.html
>
> and tried to use forms. But my editor is not a MultiPage editor.
> public class XXX extends EditorPart{
>
> public void createPartControl(Composite parent) {
> FormToolkit toolkit = new FormToolkit(parent.getDisplay());
> Form form = toolkit.createForm(parent);
> form.setText("Hello, Eclipse Forms");
>
> }
>

Yes, you can use them in any kind of editor/view/wizard.

Henning Rogge.
Re: Can a Form be used with a Eclipse editor [message #440383 is a reply to message #440245] Wed, 28 July 2004 21:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mlopez.voicerite.com

Henning Rogge wrote:

> Jainthra wrote:
>
>> I read the article at
>> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/pde- ui-home/working/EclipseForms/EclipseForms.html
>>
> Yes, you can use them in any kind of editor/view/wizard.
>
> Henning Rogge.

Are there sample packages that you can download that have code that you
can use to study this, the article only has snippets of code, and I'd
like to see a live sample.

Marcelo R. Lopez, Jr.
mlopez at voicerite dot com
Re: Can a Form be used with a Eclipse editor [message #440386 is a reply to message #440245] Wed, 28 July 2004 22:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mlopez.voicerite.com

Henning Rogge wrote:

> Jainthra wrote:
>
>> I read the article at
>> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/pde- ui-home/working/EclipseForms/EclipseForms.html
>>
>>
>> and tried to use forms. But my editor is not a MultiPage editor.
>> public class XXX extends EditorPart{
>>
>> public void createPartControl(Composite parent) {
>> FormToolkit toolkit = new FormToolkit(parent.getDisplay());
>> Form form = toolkit.createForm(parent);
>> form.setText("Hello, Eclipse Forms");
>>
>> }
>>
>
> Yes, you can use them in any kind of editor/view/wizard.
>
> Henning Rogge.

import org.eclipse.ui.part.ViewPart;

Where is this library supposed to be...I've downloaded and installed:

Eclipse 3.0
EMF
GEF
and VE

and it's not there.....

Marcelo R. Lopez, Jr.
Re: Can a Form be used with a Eclipse editor [message #440402 is a reply to message #440386] Thu, 29 July 2004 16:21 Go to previous message
Eclipse UserFriend
Originally posted by: mlopez.voicerite.com

Marcelo R. Lopez, Jr. wrote:
>
> import org.eclipse.ui.part.ViewPart;
>
> Where is this library supposed to be...I've downloaded and installed:
>
> Eclipse 3.0
> EMF
> GEF
> and VE
>
> and it's not there.....
>
> Marcelo R. Lopez, Jr.

Thanks to Jeff Myers who explained that ui.part.ViewPart was in the
workbench plugin.
Previous Topic:'JInternalFrame' in SWT
Next Topic:Can Eclipse Forms be used OUTSIDE of the workbench environment ?
Goto Forum:
  


Current Time: Fri May 10 18:35:42 GMT 2024

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

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

Back to the top