Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Construct Tabbed Properties at Runtime
Construct Tabbed Properties at Runtime [message #309669] Fri, 03 November 2006 18:45 Go to next message
Eclipse UserFriend
Originally posted by: something.eclipse.org

Hello,
I have a GEF view for which I am trying to provide tabbed
properties. However, since everything is data driven, I won't know the
tabs I need until runtime. Is there a way to provide tabs without using
the extension points?

thanks!
adam
Re: Construct Tabbed Properties at Runtime [message #309671 is a reply to message #309669] Fri, 03 November 2006 19:10 Go to previous messageGo to next message
Xiang Qinxian is currently offline Xiang QinxianFriend
Messages: 119
Registered: July 2009
Senior Member
AdamC 写道:
> Hello,
> I have a GEF view for which I am trying to provide tabbed
> properties. However, since everything is data driven, I won't know the
> tabs I need until runtime. Is there a way to provide tabs without using
> the extension points?
>
> thanks!
> adam
Hi,

No, TabbedProperties for special design target, that's design first and
use later, no design and no use, do designed and no changed.
So its api is same like cannot close view, fixed again changing.

Regards,

Qinxian
Re: Construct Tabbed Properties at Runtime [message #309672 is a reply to message #309669] Fri, 03 November 2006 19:18 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Adam,

Unfortunately the answer is no, no dynamic support.

As a workaround, what others have done is to have tabs for the domain
objects and then one section in the tab that changes dynamically and is
refreshed by calling composite.layout().

For example, your data model has a box.

When the box is selected on the diagram, the box tab and box section are
displayed. In the box section, you change the widgets in the composite based
on the real state of the box in your data model and call layout().

Let me know if this helps. If you can provide any more information on
"everything is data driven" it probably would help.

Cheers...
Anthony

"AdamC" <something@eclipse.org> wrote in message
news:eig2p7$7lm$2@utils.eclipse.org...
> Hello,
> I have a GEF view for which I am trying to provide tabbed properties.
> However, since everything is data driven, I won't know the tabs I need
> until runtime. Is there a way to provide tabs without using the extension
> points?
>
> thanks!
> adam
Re: Construct Tabbed Properties at Runtime [message #309674 is a reply to message #309672] Fri, 03 November 2006 19:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: something.eclipse.org

Thanks Anthony. I am using an xml (EMF) model, so I have a field called
"Category" that I wanted to use to construct the tabs. Since it sounds
like this won't work, I will look into using a multi-level hierarchy
instead of tabs. BTW - thanks so much for the article! Lately, it
seems like there is a shortage of updated Eclipse info. I can't even
find any new books in the pipeline.

Anthony Hunter wrote:
> Hi Adam,
>
> Unfortunately the answer is no, no dynamic support.
>
> As a workaround, what others have done is to have tabs for the domain
> objects and then one section in the tab that changes dynamically and is
> refreshed by calling composite.layout().
>
> For example, your data model has a box.
>
> When the box is selected on the diagram, the box tab and box section are
> displayed. In the box section, you change the widgets in the composite based
> on the real state of the box in your data model and call layout().
>
> Let me know if this helps. If you can provide any more information on
> "everything is data driven" it probably would help.
>
> Cheers...
> Anthony
>
> "AdamC" <something@eclipse.org> wrote in message
> news:eig2p7$7lm$2@utils.eclipse.org...
>> Hello,
>> I have a GEF view for which I am trying to provide tabbed properties.
>> However, since everything is data driven, I won't know the tabs I need
>> until runtime. Is there a way to provide tabs without using the extension
>> points?
>>
>> thanks!
>> adam
>
>
Re: Construct Tabbed Properties at Runtime [message #309678 is a reply to message #309674] Fri, 03 November 2006 19:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------050206060803060107070209
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Adam,

Coincidentally I was just playing this morning (it's Think Friday) to
learn how tabbed properties worked and I too found Anthony's example to
be extremely useful. I quickly reached the same conclusion as expressed
here: you can't generate the stuff dynamically. And looking at the
implementation, it can't easily be changed to support that. I was
chatting with Anthony just now, after reading this posting and he
pointed out that there is a bugzilla open for this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=131855

But it's just not very likely that the resource to do this will be
available. :-(


AdamC wrote:
> Thanks Anthony. I am using an xml (EMF) model, so I have a field
> called "Category" that I wanted to use to construct the tabs. Since
> it sounds like this won't work, I will look into using a multi-level
> hierarchy instead of tabs. BTW - thanks so much for the article!
> Lately, it seems like there is a shortage of updated Eclipse info. I
> can't even find any new books in the pipeline.
>
> Anthony Hunter wrote:
>> Hi Adam,
>>
>> Unfortunately the answer is no, no dynamic support.
>>
>> As a workaround, what others have done is to have tabs for the domain
>> objects and then one section in the tab that changes dynamically and
>> is refreshed by calling composite.layout().
>>
>> For example, your data model has a box.
>>
>> When the box is selected on the diagram, the box tab and box section
>> are displayed. In the box section, you change the widgets in the
>> composite based on the real state of the box in your data model and
>> call layout().
>>
>> Let me know if this helps. If you can provide any more information on
>> "everything is data driven" it probably would help.
>>
>> Cheers...
>> Anthony
>>
>> "AdamC" <something@eclipse.org> wrote in message
>> news:eig2p7$7lm$2@utils.eclipse.org...
>>> Hello,
>>> I have a GEF view for which I am trying to provide tabbed
>>> properties. However, since everything is data driven, I won't know
>>> the tabs I need until runtime. Is there a way to provide tabs
>>> without using the extension points?
>>>
>>> thanks!
>>> adam
>>
>>


--------------050206060803060107070209
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Adam,<br>
<br>
Coincidentally I was just playing this morning (it's Think Friday) to
learn how tabbed properties worked and I too found Anthony's example to
be extremely useful.&nbsp; I quickly reached the same conclusion as
expressed here: you can't generate the stuff dynamically.&nbsp; And looking
at the implementation, it can't easily be changed to support that.&nbsp; I
was chatting with Anthony just now, after reading this posting and he
pointed out that there is a bugzilla open for this:<br>
<blockquote><a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=131855">https://bugs.eclipse.org/bugs/show_bug.cgi?id=131855</a><br>
</blockquote>
But it's just not very likely that the resource to do this will be
available.&nbsp; :-(<br>
<br>
<br>
AdamC wrote:
<blockquote cite="mideig56n$mek$1@utils.eclipse.org" type="cite">Thanks
Anthony.&nbsp; I am using an xml (EMF) model, so I have a field called
"Category" that I wanted to use to construct the tabs.&nbsp; Since it sounds
like this won't work, I will look into using a multi-level hierarchy
instead of tabs.&nbsp; BTW - thanks so much for the article!&nbsp; Lately, it
seems like there is a shortage of updated Eclipse info.&nbsp; I can't even
find any new books in the pipeline.
<br>
<br>
Anthony Hunter wrote:
<br>
<blockquote type="cite">Hi Adam,
<br>
<br>
Unfortunately the answer is no, no dynamic support.
<br>
<br>
As a workaround, what others have done is to have tabs for the domain
objects and then one section in the tab that changes dynamically and is
refreshed by calling composite.layout().
<br>
<br>
For example, your data model has a box.
<br>
<br>
When the box is selected on the diagram, the box tab and box section
are displayed. In the box section, you change the widgets in the
composite based on the real state of the box in your data model and
call layout().
<br>
<br>
Let me know if this helps. If you can provide any more information on
"everything is data driven" it probably would help.
<br>
<br>
Cheers...
<br>
Anthony
<br>
<br>
"AdamC" <a class="moz-txt-link-rfc2396E" href="mailto:something@eclipse.org">&lt;something@eclipse.org&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:eig2p7$7lm$2@utils.eclipse.org">news:eig2p7$7lm$2@utils.eclipse.org</a>...
<br>
<blockquote type="cite">Hello,
<br>
&nbsp;&nbsp; I have a GEF view for which I am trying to provide tabbed
properties. However, since everything is data driven, I won't know the
tabs I need until runtime.&nbsp; Is there a way to provide tabs without
using the extension points?
<br>
<br>
thanks!
<br>
adam </blockquote>
<br>
<br>
</blockquote>
</blockquote>
<br>
</body>
</html>

--------------050206060803060107070209--
Re: Construct Tabbed Properties at Runtime [message #309682 is a reply to message #309678] Fri, 03 November 2006 21:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: something.eclipse.org

Thanks for the info. In this case, I'm just glad that I'm not stuck and
have a fall-back. I'm looking at implementing a 3 level hierarchy
instead of using tabs.

adam

Ed Merks wrote:
> Adam,
>
> Coincidentally I was just playing this morning (it's Think Friday) to
> learn how tabbed properties worked and I too found Anthony's example to
> be extremely useful. I quickly reached the same conclusion as expressed
> here: you can't generate the stuff dynamically. And looking at the
> implementation, it can't easily be changed to support that. I was
> chatting with Anthony just now, after reading this posting and he
> pointed out that there is a bugzilla open for this:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=131855
>
> But it's just not very likely that the resource to do this will be
> available. :-(
>
>
> AdamC wrote:
>> Thanks Anthony. I am using an xml (EMF) model, so I have a field
>> called "Category" that I wanted to use to construct the tabs. Since
>> it sounds like this won't work, I will look into using a multi-level
>> hierarchy instead of tabs. BTW - thanks so much for the article!
>> Lately, it seems like there is a shortage of updated Eclipse info. I
>> can't even find any new books in the pipeline.
>>
>> Anthony Hunter wrote:
>>> Hi Adam,
>>>
>>> Unfortunately the answer is no, no dynamic support.
>>>
>>> As a workaround, what others have done is to have tabs for the domain
>>> objects and then one section in the tab that changes dynamically and
>>> is refreshed by calling composite.layout().
>>>
>>> For example, your data model has a box.
>>>
>>> When the box is selected on the diagram, the box tab and box section
>>> are displayed. In the box section, you change the widgets in the
>>> composite based on the real state of the box in your data model and
>>> call layout().
>>>
>>> Let me know if this helps. If you can provide any more information on
>>> "everything is data driven" it probably would help.
>>>
>>> Cheers...
>>> Anthony
>>>
>>> "AdamC" <something@eclipse.org> wrote in message
>>> news:eig2p7$7lm$2@utils.eclipse.org...
>>>> Hello,
>>>> I have a GEF view for which I am trying to provide tabbed
>>>> properties. However, since everything is data driven, I won't know
>>>> the tabs I need until runtime. Is there a way to provide tabs
>>>> without using the extension points?
>>>>
>>>> thanks!
>>>> adam
>>>
>>>
>
Re: Construct Tabbed Properties at Runtime [message #317684 is a reply to message #309669] Wed, 11 July 2007 20:51 Go to previous messageGo to next message
Adam Cabler is currently offline Adam CablerFriend
Messages: 113
Registered: July 2009
Senior Member
Hey Anthony,
I just saw your contribution to the bug on this. Thanks - I can
really use this and can't wait to try it out.

adam
AdamC wrote:
> Hello,
> I have a GEF view for which I am trying to provide tabbed
> properties. However, since everything is data driven, I won't know
> the tabs I need until runtime. Is there a way to provide tabs without
> using the extension points?
>
> thanks!
> adam
Re: Construct Tabbed Properties at Runtime [message #322423 is a reply to message #317684] Fri, 16 November 2007 14:10 Go to previous messageGo to next message
maarten meijer is currently offline maarten meijerFriend
Messages: 146
Registered: July 2009
Senior Member
AdamC wrote:
> Hey Anthony,
> I just saw your contribution to the bug on this. Thanks - I can
> really use this and can't wait to try it out.
>
> adam
> AdamC wrote:
>> Hello,
>> I have a GEF view for which I am trying to provide tabbed
>> properties. However, since everything is data driven, I won't know
>> the tabs I need until runtime. Is there a way to provide tabs without
>> using the extension points?
>>
>> thanks!
>> adam
Which bug?
Re: Construct Tabbed Properties at Runtime [message #322445 is a reply to message #322423] Sun, 18 November 2007 11:43 Go to previous message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
On Fri, 16 Nov 2007 15:10:48 +0100, Maarten Meijer wrote:
> Which bug?

I'm guessing it's this one.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=131855

Regards,
Rem
Previous Topic:Sync Issues for web.xml
Next Topic:Reusing JDT's debugging facilities
Goto Forum:
  


Current Time: Tue Apr 16 15:42:13 GMT 2024

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

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

Back to the top