Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Changing active TabItem in VE
Changing active TabItem in VE [message #90327] Tue, 10 May 2005 08:56 Go to next message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
Hello,

my problem is how I can change the active tabitem in VE...

My class has one TabFolder with two TabItems. There are several widgets
on each TabItem. Now I want to jump from one tabitem to the other
tabitem to reorder the widegts....
But unfortunately I do not know how to change the items....

Does anybody know how to jump from tabitem1 to tabitem2 in VE???

thx

Flik
Re: Changing active TabItem in VE [message #90370 is a reply to message #90327] Tue, 10 May 2005 09:30 Go to previous messageGo to next message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi Flik,

> my problem is how I can change the active tabitem in VE...
>
> My class has one TabFolder with two TabItems. There are several widgets
> on each TabItem. Now I want to jump from one tabitem to the other
> tabitem to reorder the widegts....
> But unfortunately I do not know how to change the items....
>
> Does anybody know how to jump from tabitem1 to tabitem2 in VE???

Right mouse click on the TabFolder and there should be a pop-up menu
that allows you to switch between tabs. Also on the JavaBeans tree
viewer select the TabItem and this will sync with the GUI so you'll see
the tabs switch.

One thing we should do is look at making it so on the GUI you can select
and switch from there so please open a bugzilla.

Best regards,

Joe Winchester
Re: Changing active TabItem in VE [message #90400 is a reply to message #90370] Tue, 10 May 2005 09:52 Go to previous messageGo to next message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hey,

thank you for answering my question.
But unfortunately it does not work. I have the version 3.0.1 of Eclipse
and the VE version 1.0.2.1. May it be that this could be the problem??

I have nearly clicked everywhere on the tabfolder - but there is no
possibility to change items... The pop-up menu only contains:
undo,redo,open,open type hierachy,rename field, delete,events and
customize layout.

I have only used the Shell-Container and the tabfolder-container (of
course several times beacause of creating some tabitems)...

I would be very pleased when you could help me!

thx

Flik

Joe Winchester schrieb:
> Hi Flik,
>
>> my problem is how I can change the active tabitem in VE...
>>
>> My class has one TabFolder with two TabItems. There are several
>> widgets on each TabItem. Now I want to jump from one tabitem to the
>> other tabitem to reorder the widegts....
>> But unfortunately I do not know how to change the items....
>>
>> Does anybody know how to jump from tabitem1 to tabitem2 in VE???
>
>
> Right mouse click on the TabFolder and there should be a pop-up menu
> that allows you to switch between tabs. Also on the JavaBeans tree
> viewer select the TabItem and this will sync with the GUI so you'll see
> the tabs switch.
>
> One thing we should do is look at making it so on the GUI you can select
> and switch from there so please open a bugzilla.
>
> Best regards,
>
> Joe Winchester
>
Re: Changing active TabItem in VE [message #90414 is a reply to message #90400] Tue, 10 May 2005 10:22 Go to previous messageGo to next message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi Flik,

> But unfortunately it does not work. I have the version 3.0.1 of Eclipse
> and the VE version 1.0.2.1. May it be that this could be the problem??

Doesn't work for me either from the pop-up menu. thanks for pointing
this out - it might be that by design we don't have it on the pop-up. I
know we do for Swing and the developers who know most about this are in
the US so I'll ping them when they have finished their cheerios and pop
tarts.

In the meantime on the JavaBeans viewer (the tree of the GUI controls)
you can select the children of the TabFolder and the GUI will update so
that the currently selected child becomes the active tab item. does
this work for you ?

Best regards,

Joe Winchester
Re: Changing active TabItem in VE [message #90428 is a reply to message #90414] Tue, 10 May 2005 10:37 Go to previous messageGo to next message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hello joe,

Thank you very much!!! The workaround using the JavaBeans Viewer runs
very well! Now I can change the tabitems.

May I ask you a second question to this subject?
How is the concrete procedure to add a tabfolder with e.g. three tabitems?
The way I did it was like this: I added a tabfolder to the shell and
then I drag three composites on this tabfolder. It seems that he has
created one tabitem for each of this composites.
Is this procedure correct - or isn't it?

Thank you very much

Flik

Joe Winchester schrieb:
> Hi Flik,
>
>> But unfortunately it does not work. I have the version 3.0.1 of
>> Eclipse and the VE version 1.0.2.1. May it be that this could be the
>> problem??
>
>
> Doesn't work for me either from the pop-up menu. thanks for pointing
> this out - it might be that by design we don't have it on the pop-up. I
> know we do for Swing and the developers who know most about this are in
> the US so I'll ping them when they have finished their cheerios and pop
> tarts.
>
> In the meantime on the JavaBeans viewer (the tree of the GUI controls)
> you can select the children of the TabFolder and the GUI will update so
> that the currently selected child becomes the active tab item. does
> this work for you ?
>
> Best regards,
>
> Joe Winchester
Re: Changing active TabItem in VE [message #90443 is a reply to message #90428] Tue, 10 May 2005 13:26 Go to previous messageGo to next message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi Flik,
> How is the concrete procedure to add a tabfolder with e.g. three tabitems?
> The way I did it was like this: I added a tabfolder to the shell and
> then I drag three composites on this tabfolder. It seems that he has
> created one tabitem for each of this composites.
> Is this procedure correct - or isn't it?

That's right - rather than show the TabItem as the child of the
TabFolder and the Control as the child of the TabItem what the VE does
is combine the two so you just drop the Control (in your case a
composite) onto the TabFolder and it creates the TabItem and the
setControl(...) method call. When you select the Control the property
sheet shows its properties as well as extra ones for tabImage, tabText
and tabToolTipText. This merging of the TabItem and its control into a
single sort of thing seemed to simplify things.

What we don't support however is letting you click on the GUI tab item
and switch tabs from this. We also for some reasons don't allow you to
switch tabs from the menu - we do for Swing so if you want to see this
drop a Swing JTabbedPane and some swing components beneath it and look
at the pop-up menu on the JTabbedPane.

Please do open a bugzilla feature request for enahancmenets to the SWT
TabFolder - if you do it rather than me it's sort of more likely to get
fixed as it's a customer request rather than me as a developer logging a
cool feature we should add in sometime soon.

Best regards,

Joe Winchester
thx - problem solved [message #90456 is a reply to message #90443] Tue, 10 May 2005 13:45 Go to previous messageGo to next message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
Hey Joe,

thank you very much for your great help!
I will open a feature request on the SWT-Tabfolder-thing.

Thanks

Flik


Joe Winchester schrieb:
> Hi Flik,
>
>> How is the concrete procedure to add a tabfolder with e.g. three
>> tabitems?
>> The way I did it was like this: I added a tabfolder to the shell and
>> then I drag three composites on this tabfolder. It seems that he has
>> created one tabitem for each of this composites.
>> Is this procedure correct - or isn't it?
>
>
> That's right - rather than show the TabItem as the child of the
> TabFolder and the Control as the child of the TabItem what the VE does
> is combine the two so you just drop the Control (in your case a
> composite) onto the TabFolder and it creates the TabItem and the
> setControl(...) method call. When you select the Control the property
> sheet shows its properties as well as extra ones for tabImage, tabText
> and tabToolTipText. This merging of the TabItem and its control into a
> single sort of thing seemed to simplify things.
>
> What we don't support however is letting you click on the GUI tab item
> and switch tabs from this. We also for some reasons don't allow you to
> switch tabs from the menu - we do for Swing so if you want to see this
> drop a Swing JTabbedPane and some swing components beneath it and look
> at the pop-up menu on the JTabbedPane.
>
> Please do open a bugzilla feature request for enahancmenets to the SWT
> TabFolder - if you do it rather than me it's sort of more likely to get
> fixed as it's a customer request rather than me as a developer logging a
> cool feature we should add in sometime soon.
>
> Best regards,
>
> Joe Winchester
Re: Changing active TabItem in VE [message #105920 is a reply to message #90443] Thu, 08 September 2005 19:08 Go to previous message
Annonygmouse is currently offline AnnonygmouseFriend
Messages: 2
Registered: July 2009
Junior Member
En/na Joe Winchester ha escrit:
> Hi Flik,
>
>> How is the concrete procedure to add a tabfolder with e.g. three
>> tabitems?
>> The way I did it was like this: I added a tabfolder to the shell and
>> then I drag three composites on this tabfolder. It seems that he has
>> created one tabitem for each of this composites.
>> Is this procedure correct - or isn't it?
>
>
> That's right - rather than show the TabItem as the child of the
> TabFolder and the Control as the child of the TabItem what the VE does
> is combine the two so you just drop the Control (in your case a
> composite) onto the TabFolder and it creates the TabItem and the
> setControl(...) method call. When you select the Control the property
> sheet shows its properties as well as extra ones for tabImage, tabText
> and tabToolTipText. This merging of the TabItem and its control into a
> single sort of thing seemed to simplify things.

Maybe I'm strange... but It did not simplify things for me... not untill
I searched this newsgroup did I found out how could I create a TabItem
from VE...

Anyway... time to try it :)


Thanks
Sebastià.
Re: Changing active TabItem in VE [message #607381 is a reply to message #90327] Tue, 10 May 2005 09:30 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi Flik,

> my problem is how I can change the active tabitem in VE...
>
> My class has one TabFolder with two TabItems. There are several widgets
> on each TabItem. Now I want to jump from one tabitem to the other
> tabitem to reorder the widegts....
> But unfortunately I do not know how to change the items....
>
> Does anybody know how to jump from tabitem1 to tabitem2 in VE???

Right mouse click on the TabFolder and there should be a pop-up menu
that allows you to switch between tabs. Also on the JavaBeans tree
viewer select the TabItem and this will sync with the GUI so you'll see
the tabs switch.

One thing we should do is look at making it so on the GUI you can select
and switch from there so please open a bugzilla.

Best regards,

Joe Winchester
Re: Changing active TabItem in VE [message #607383 is a reply to message #90370] Tue, 10 May 2005 09:52 Go to previous message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hey,

thank you for answering my question.
But unfortunately it does not work. I have the version 3.0.1 of Eclipse
and the VE version 1.0.2.1. May it be that this could be the problem??

I have nearly clicked everywhere on the tabfolder - but there is no
possibility to change items... The pop-up menu only contains:
undo,redo,open,open type hierachy,rename field, delete,events and
customize layout.

I have only used the Shell-Container and the tabfolder-container (of
course several times beacause of creating some tabitems)...

I would be very pleased when you could help me!

thx

Flik

Joe Winchester schrieb:
> Hi Flik,
>
>> my problem is how I can change the active tabitem in VE...
>>
>> My class has one TabFolder with two TabItems. There are several
>> widgets on each TabItem. Now I want to jump from one tabitem to the
>> other tabitem to reorder the widegts....
>> But unfortunately I do not know how to change the items....
>>
>> Does anybody know how to jump from tabitem1 to tabitem2 in VE???
>
>
> Right mouse click on the TabFolder and there should be a pop-up menu
> that allows you to switch between tabs. Also on the JavaBeans tree
> viewer select the TabItem and this will sync with the GUI so you'll see
> the tabs switch.
>
> One thing we should do is look at making it so on the GUI you can select
> and switch from there so please open a bugzilla.
>
> Best regards,
>
> Joe Winchester
>
Re: Changing active TabItem in VE [message #607384 is a reply to message #90400] Tue, 10 May 2005 10:22 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi Flik,

> But unfortunately it does not work. I have the version 3.0.1 of Eclipse
> and the VE version 1.0.2.1. May it be that this could be the problem??

Doesn't work for me either from the pop-up menu. thanks for pointing
this out - it might be that by design we don't have it on the pop-up. I
know we do for Swing and the developers who know most about this are in
the US so I'll ping them when they have finished their cheerios and pop
tarts.

In the meantime on the JavaBeans viewer (the tree of the GUI controls)
you can select the children of the TabFolder and the GUI will update so
that the currently selected child becomes the active tab item. does
this work for you ?

Best regards,

Joe Winchester
Re: Changing active TabItem in VE [message #607385 is a reply to message #90414] Tue, 10 May 2005 10:37 Go to previous message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hello joe,

Thank you very much!!! The workaround using the JavaBeans Viewer runs
very well! Now I can change the tabitems.

May I ask you a second question to this subject?
How is the concrete procedure to add a tabfolder with e.g. three tabitems?
The way I did it was like this: I added a tabfolder to the shell and
then I drag three composites on this tabfolder. It seems that he has
created one tabitem for each of this composites.
Is this procedure correct - or isn't it?

Thank you very much

Flik

Joe Winchester schrieb:
> Hi Flik,
>
>> But unfortunately it does not work. I have the version 3.0.1 of
>> Eclipse and the VE version 1.0.2.1. May it be that this could be the
>> problem??
>
>
> Doesn't work for me either from the pop-up menu. thanks for pointing
> this out - it might be that by design we don't have it on the pop-up. I
> know we do for Swing and the developers who know most about this are in
> the US so I'll ping them when they have finished their cheerios and pop
> tarts.
>
> In the meantime on the JavaBeans viewer (the tree of the GUI controls)
> you can select the children of the TabFolder and the GUI will update so
> that the currently selected child becomes the active tab item. does
> this work for you ?
>
> Best regards,
>
> Joe Winchester
Re: Changing active TabItem in VE [message #607386 is a reply to message #90428] Tue, 10 May 2005 13:26 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi Flik,
> How is the concrete procedure to add a tabfolder with e.g. three tabitems?
> The way I did it was like this: I added a tabfolder to the shell and
> then I drag three composites on this tabfolder. It seems that he has
> created one tabitem for each of this composites.
> Is this procedure correct - or isn't it?

That's right - rather than show the TabItem as the child of the
TabFolder and the Control as the child of the TabItem what the VE does
is combine the two so you just drop the Control (in your case a
composite) onto the TabFolder and it creates the TabItem and the
setControl(...) method call. When you select the Control the property
sheet shows its properties as well as extra ones for tabImage, tabText
and tabToolTipText. This merging of the TabItem and its control into a
single sort of thing seemed to simplify things.

What we don't support however is letting you click on the GUI tab item
and switch tabs from this. We also for some reasons don't allow you to
switch tabs from the menu - we do for Swing so if you want to see this
drop a Swing JTabbedPane and some swing components beneath it and look
at the pop-up menu on the JTabbedPane.

Please do open a bugzilla feature request for enahancmenets to the SWT
TabFolder - if you do it rather than me it's sort of more likely to get
fixed as it's a customer request rather than me as a developer logging a
cool feature we should add in sometime soon.

Best regards,

Joe Winchester
thx - problem solved [message #607387 is a reply to message #90443] Tue, 10 May 2005 13:45 Go to previous message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
Hey Joe,

thank you very much for your great help!
I will open a feature request on the SWT-Tabfolder-thing.

Thanks

Flik


Joe Winchester schrieb:
> Hi Flik,
>
>> How is the concrete procedure to add a tabfolder with e.g. three
>> tabitems?
>> The way I did it was like this: I added a tabfolder to the shell and
>> then I drag three composites on this tabfolder. It seems that he has
>> created one tabitem for each of this composites.
>> Is this procedure correct - or isn't it?
>
>
> That's right - rather than show the TabItem as the child of the
> TabFolder and the Control as the child of the TabItem what the VE does
> is combine the two so you just drop the Control (in your case a
> composite) onto the TabFolder and it creates the TabItem and the
> setControl(...) method call. When you select the Control the property
> sheet shows its properties as well as extra ones for tabImage, tabText
> and tabToolTipText. This merging of the TabItem and its control into a
> single sort of thing seemed to simplify things.
>
> What we don't support however is letting you click on the GUI tab item
> and switch tabs from this. We also for some reasons don't allow you to
> switch tabs from the menu - we do for Swing so if you want to see this
> drop a Swing JTabbedPane and some swing components beneath it and look
> at the pop-up menu on the JTabbedPane.
>
> Please do open a bugzilla feature request for enahancmenets to the SWT
> TabFolder - if you do it rather than me it's sort of more likely to get
> fixed as it's a customer request rather than me as a developer logging a
> cool feature we should add in sometime soon.
>
> Best regards,
>
> Joe Winchester
Re: Changing active TabItem in VE [message #610716 is a reply to message #90443] Thu, 08 September 2005 19:08 Go to previous message
Annonygmouse is currently offline AnnonygmouseFriend
Messages: 2
Registered: July 2009
Junior Member
En/na Joe Winchester ha escrit:
> Hi Flik,
>
>> How is the concrete procedure to add a tabfolder with e.g. three
>> tabitems?
>> The way I did it was like this: I added a tabfolder to the shell and
>> then I drag three composites on this tabfolder. It seems that he has
>> created one tabitem for each of this composites.
>> Is this procedure correct - or isn't it?
>
>
> That's right - rather than show the TabItem as the child of the
> TabFolder and the Control as the child of the TabItem what the VE does
> is combine the two so you just drop the Control (in your case a
> composite) onto the TabFolder and it creates the TabItem and the
> setControl(...) method call. When you select the Control the property
> sheet shows its properties as well as extra ones for tabImage, tabText
> and tabToolTipText. This merging of the TabItem and its control into a
> single sort of thing seemed to simplify things.

Maybe I'm strange... but It did not simplify things for me... not untill
I searched this newsgroup did I found out how could I create a TabItem
from VE...

Anyway... time to try it :)


Thanks
Sebastià.
Previous Topic:Menus under VE
Next Topic:Update Window1 from Window2
Goto Forum:
  


Current Time: Fri Apr 26 20:41:02 GMT 2024

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

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

Back to the top