Home » Eclipse Projects » GEF » Construct Tabbed Properties at Runtime
Construct Tabbed Properties at Runtime [message #225931] |
Fri, 03 November 2006 18:45 |
Eclipse User |
|
|
|
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 #225946 is a reply to message #225931] |
Fri, 03 November 2006 19:10 |
Xiang Qinxian 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 #225954 is a reply to message #225931] |
Fri, 03 November 2006 19:18 |
Anthony Hunter 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 #225959 is a reply to message #225954] |
Fri, 03 November 2006 19:27 |
Eclipse User |
|
|
|
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 #225966 is a reply to message #225959] |
Fri, 03 November 2006 19:54 |
Eclipse User |
|
|
|
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. 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:<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. :-(<br>
<br>
<br>
AdamC wrote:
<blockquote cite="mideig56n$mek$1@utils.eclipse.org" type="cite">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.
<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"><something@eclipse.org></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>
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?
<br>
<br>
thanks!
<br>
adam </blockquote>
<br>
<br>
</blockquote>
</blockquote>
<br>
</body>
</html>
--------------050206060803060107070209--
|
|
|
Re: Construct Tabbed Properties at Runtime [message #225988 is a reply to message #225966] |
Fri, 03 November 2006 21:20 |
Eclipse User |
|
|
|
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
>>>
>>>
>
|
|
| | | |
Goto Forum:
Current Time: Fri Sep 27 03:06:20 GMT 2024
Powered by FUDForum. Page generated in 0.03484 seconds
|