Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » JFace components in VE?
JFace components in VE? [message #108065] Sat, 24 September 2005 19:40 Go to next message
Eclipse UserFriend
Originally posted by: vasco.cs.cmu.edu

Hello,

I was wondering if we can use JFace components in the Visual Editor. I
can't find anything about it, which suggests that if we want to use JFace
we have to do it outside the VE? is this correct? Is there a set of JFace
components we can use in the menu?

Also, is there a way to search these newsgroup messages? I bet
sometimes the answers are alreay here, but I can't seem to find a way to
search for them.

Thanks,

Vasco
Re: JFace components in VE? [message #108136 is a reply to message #108065] Mon, 26 September 2005 12:27 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi Vasco Calais,

> I was wondering if we can use JFace components in the Visual Editor. I
> can't find anything about it, which suggests that if we want to use
> JFace we have to do it outside the VE? is this correct? Is there a set
> of JFace components we can use in the menu?

We plan to support this in 1.2 and are doing quite a lot of coding and
design in this are right now. Our current thoughts are that as a user
you'd have the choice of dropping a regular SWT or a JFace TreeViewer.
The feedback would be the same (as you're dropping onto composite
parent) and once you let go you will have code like

TreeViewer viewer = new TreeViewer(parent,SWT.NONE);

Now it gets interesting. If you have a property of the tree (such as
its layoutData) we could do

viewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));

or

Tree tree = viewer.getTree();
tree.setLayoutData(new GridData(GridData.FILL_BOTH));

Both work. the format has the advantage that there isn't another
instance variable required.

We also have the possibility that a user has an existing Tree they want
to make into a viewer so they begin opening a VE that has

Tree tree = new Tree(parent,SWT.NONE);

and after dropping the TreeViewer onto the tree itself it becomes

TreeViewer viewer = new TreeViewer(tree);

We also want to have a way from the VE that properties of both the Tree
and the TreeViewer can be altered. One way might be to merge the
properties of both into the property sheet, and we did prototype this
but thought it was too busy and hard for the user to separate which
property was from the tree and which was from the viewer. We are
looking at this right now, as well as how to indicate to the user on the
GUI and JavaBeans viewer the difference between a JFace Tree and a
regular SWT tree, and also how to manipulate its content provider, label
provider, etc...

any thoughts or ideas on this would be really appreciated. For example,
should there be a separate palette called JFace or should the JFace
things be merged onto the SWT palette somehow. Both have advantages and
disadvantages.

> Also, is there a way to search these newsgroup messages? I bet
> sometimes the answers are alreay here, but I can't seem to find a way to
> search for them.

I use Mozilla which has a pretty good search facility to query messages
containing keywords and stuff.

Best regards,

Joe
Re: JFace components in VE? [message #610869 is a reply to message #108065] Mon, 26 September 2005 12:27 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi Vasco Calais,

> I was wondering if we can use JFace components in the Visual Editor. I
> can't find anything about it, which suggests that if we want to use
> JFace we have to do it outside the VE? is this correct? Is there a set
> of JFace components we can use in the menu?

We plan to support this in 1.2 and are doing quite a lot of coding and
design in this are right now. Our current thoughts are that as a user
you'd have the choice of dropping a regular SWT or a JFace TreeViewer.
The feedback would be the same (as you're dropping onto composite
parent) and once you let go you will have code like

TreeViewer viewer = new TreeViewer(parent,SWT.NONE);

Now it gets interesting. If you have a property of the tree (such as
its layoutData) we could do

viewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));

or

Tree tree = viewer.getTree();
tree.setLayoutData(new GridData(GridData.FILL_BOTH));

Both work. the format has the advantage that there isn't another
instance variable required.

We also have the possibility that a user has an existing Tree they want
to make into a viewer so they begin opening a VE that has

Tree tree = new Tree(parent,SWT.NONE);

and after dropping the TreeViewer onto the tree itself it becomes

TreeViewer viewer = new TreeViewer(tree);

We also want to have a way from the VE that properties of both the Tree
and the TreeViewer can be altered. One way might be to merge the
properties of both into the property sheet, and we did prototype this
but thought it was too busy and hard for the user to separate which
property was from the tree and which was from the viewer. We are
looking at this right now, as well as how to indicate to the user on the
GUI and JavaBeans viewer the difference between a JFace Tree and a
regular SWT tree, and also how to manipulate its content provider, label
provider, etc...

any thoughts or ideas on this would be really appreciated. For example,
should there be a separate palette called JFace or should the JFace
things be merged onto the SWT palette somehow. Both have advantages and
disadvantages.

> Also, is there a way to search these newsgroup messages? I bet
> sometimes the answers are alreay here, but I can't seem to find a way to
> search for them.

I use Mozilla which has a pretty good search facility to query messages
containing keywords and stuff.

Best regards,

Joe
Previous Topic:PropertyDescriptor
Next Topic:Additional bean info
Goto Forum:
  


Current Time: Thu Mar 28 08:18:38 GMT 2024

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

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

Back to the top