org.eclipse.swt.custom.ViewForm

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

org.eclipse.swt.custom.ViewForm

Postby asamoal » Wed Aug 13, 2003 3:03 am

Is there any intension to include the org.eclipse.swt.custom.ViewForm in the selectable custom jface controls?
//Leslie
asamoal
 
Posts: 24
Joined: Wed Aug 13, 2003 2:56 am
Location: Finland

Postby admin » Wed Aug 13, 2003 4:41 am

This is not really JFace control - ViewForm is SWT Custom control.
We will add it in next build.

Moreever we prepare support for contributing more controls by additional plugins, so you will able in future add your favorite control yourself. Well, of course we can make this a little faster :-)
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby asamoal » Wed Aug 13, 2003 6:08 am

Thanks for that promt reply. What i would also like to know is if you will or do support the JFace framework and if so what can i do with it (examples).

The dailogs and wizards work ok in JFace, but is that all the framework is all about?

In the absence of the ViewForm implementation in swt-designer do you see there being any problem if I insert it in the code and try to view it? I am getting a strange error like ... Only one control creation supported in one Block. See documentation for details ...

Where in the documentation is this? :-(
//Leslie
asamoal
 
Posts: 24
Joined: Wed Aug 13, 2003 2:56 am
Location: Finland

Postby admin » Wed Aug 13, 2003 7:29 pm

asamoal wrote:Thanks for that promt reply. What i would also like to know is if you will or do support the JFace framework and if so what can i do with it (examples).

Yes, Designer supports JFace, in particular following parts:
1. Viewers;
2. Content and Label providers;
3. Dialogs;
4. WizardPages;

asamoal wrote:The dailogs and wizards work ok in JFace, but is that all the framework is all about?

What do you want in addition?

asamoal wrote:In the absence of the ViewForm implementation in swt-designer do you see there being any problem if I insert it in the code and try to view it? I am getting a strange error like ... Only one control creation supported in one Block. See documentation for details ...

Where in the documentation is this? :-(

You are right, curretly this is not described in documentation.
Designer wants that each control was in separate block. Just try to create simple form and look in code. You will notice that it puts each control in its own block and these blocks in parent control block. So, when you remove some control, Designer just removes full block.
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby asamoal » Wed Aug 13, 2003 11:03 pm

OK! Thanks, I noticed those blocks and thought you had them there for a reason! Good job. I will place blocks around the controls and see if the viewform shows up; have you tried it or is it up to draw2d? :?:
//Leslie
asamoal
 
Posts: 24
Joined: Wed Aug 13, 2003 2:56 am
Location: Finland

Postby admin » Wed Aug 13, 2003 11:09 pm

asamoal wrote:OK! Thanks, I noticed those blocks and thought you had them there for a reason! Good job. I will place blocks around the controls and see if the viewform shows up; have you tried it or is it up to draw2d? :?:

Right now ViewForm is not supported, we need currently add each supported control in Designer source code. But Designer will support it in next build.
May be you can describe, why do you want to use ViewForm? I mean that in Eclipse it is used to show View's. Currently we think that we will implement generic support for ViewForm, i.e. you will able to place controls in four places: topLeft, topCenter, topRight and content. This will allow you to use ViewForm not only for View-like interface, but in any other method. But if you can describe how you want to use it, this will help us.
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby asamoal » Wed Aug 13, 2003 11:25 pm

admin wrote:
asamoal wrote:OK! Thanks, I noticed those blocks and thought you had them there for a reason! Good job. I will place blocks around the controls and see if the viewform shows up; have you tried it or is it up to draw2d? :?:

Right now ViewForm is not supported, we need currently add each supported control in Designer source code. But Designer will support it in next build.
May be you can describe, why do you want to use ViewForm? I mean that in Eclipse it is used to show View's. Currently we think that we will implement generic support for ViewForm, i.e. you will able to place controls in four places: topLeft, topCenter, topRight and content. This will allow you to use ViewForm not only for View-like interface, but in any other method. But if you can describe how you want to use it, this will help us.


The application I am building is a standalone and the Views just look too good in Eclipse I would like to implement them. It am using it just the way you described! and Adding a CTabFolder/CTabItem etc. I also wanted to use a similar method within a CTabItem with a CTabFolder to show IE using the ActiveX control! or Just plain HTML Preview with Java; that case I will not need the view within this [b]CTabItem/CTabFolder/ViewForm[b] combi: Is this crazy? Please tell me .... :wink:
//Leslie
asamoal
 
Posts: 24
Joined: Wed Aug 13, 2003 2:56 am
Location: Finland

Postby admin » Wed Aug 13, 2003 11:31 pm

asamoal wrote:The application I am building is a standalone and the Views just look too good in Eclipse I would like to implement them. It am using it just the way you described! and Adding a CTabFolder/CTabItem etc. I also wanted to use a similar method within a CTabItem with a CTabFolder to show IE using the ActiveX control! or Just plain HTML Preview with Java; that case I will not need the view within this [b]CTabItem/CTabFolder/ViewForm[b] combi: Is this crazy? Please tell me .... :wink:

Ok, we will try to add also method for creating not just ViewForm but Eclipse View-like ViewForm, i.e. with gradient CLabel as topLeft.


About crazy... I don't have experience with with ActiveX in SWT, so can not estimate how viable is such solution. :-)
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am


Return to SWT Designer

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest