Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Adding more tabs in property view in GMF
Adding more tabs in property view in GMF [message #92407] Sun, 14 January 2007 01:12 Go to next message
Eclipse UserFriend
Originally posted by: Lakshya.agarwal.gmail.com

Hi ,

In Property view for any building block I can see two tabs which are
Appereance and Advance. I want to change this tabbed property view like
want toadd few more for tabs for specifying other properties for this
building block. Can some one please suggest me how I can add more Tabs in
property make changes in them.

I am using GMF 1.02. I read this article
http://www.eclipse.org/articles/Article-Tabbed-Properties/ta bbed_properties_view.html

and over ridden

1. org.eclipse.ui.views.properties.tabbed.propertyContributor
2. org.eclipse.ui.views.properties.tabbed.propertyTabs
3. org.eclipse.ui.views.properties.tabbed.propertySections

extension points. But I am not able to get new property tab. Still I am
not able to add more tabs in property view

From above article I can see different examples ,but I am not able to see
how these examples are implemented. Please suggest me how can add more
tabs . If possible please help me with some example.


Thanks in Advance


Regards,

Lakshya.
Re: Adding more tabs in property view in GMF [message #92545 is a reply to message #92407] Mon, 15 January 2007 03:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

You can customize property sheet for generated diagram editor in 2.0
version.

Lakshya wrote:
> Hi ,
>
> In Property view for any building block I can see two tabs which are
> Appereance and Advance. I want to change this tabbed property view like
> want toadd few more for tabs for specifying other properties for this
> building block. Can some one please suggest me how I can add more Tabs
> in property make changes in them.
>
> I am using GMF 1.02. I read this article
> http://www.eclipse.org/articles/Article-Tabbed-Properties/ta bbed_properties_view.html
>
>
> and over ridden
> 1. org.eclipse.ui.views.properties.tabbed.propertyContributor
> 2. org.eclipse.ui.views.properties.tabbed.propertyTabs
> 3. org.eclipse.ui.views.properties.tabbed.propertySections
>
> extension points. But I am not able to get new property tab. Still I am
> not able to add more tabs in property view
>
> From above article I can see different examples ,but I am not able to
> see how these examples are implemented. Please suggest me how can add
> more tabs . If possible please help me with some example.
>
>
> Thanks in Advance
>
> Regards,
>
> Lakshya.
>
>
>
>
Re: Adding more tabs in property view in GMF [message #92614 is a reply to message #92545] Mon, 15 January 2007 05:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: schmelly.uni-paderborn.de

A few months ago we implemented additional property tabs for one of our
editors (GMF 1.0).

I think the important points were to set the correct contributor and
->category<- name in the
org.eclipse.ui.views.properties.tabbed.propertyTabs extension like follows:

<propertyTabs contributorId="org.eclipse.gmf.runtime.diagram.ui.properties ">
<propertyTab
category="Core"
id="yourid"/>
</propertyTabs>

I believe in GMF 1.0 there is a fixed number of (four?) predefined
categories but im not sure though.

best regards,
David

Dmitry Stadnik schrieb:
> You can customize property sheet for generated diagram editor in 2.0
> version.
>
> Lakshya wrote:
>> Hi ,
>>
>> In Property view for any building block I can see two tabs which are
>> Appereance and Advance. I want to change this tabbed property view
>> like want toadd few more for tabs for specifying other properties for
>> this building block. Can some one please suggest me how I can add more
>> Tabs in property make changes in them.
>>
>> I am using GMF 1.02. I read this article
>> http://www.eclipse.org/articles/Article-Tabbed-Properties/ta bbed_properties_view.html
>>
>>
>> and over ridden
>> 1. org.eclipse.ui.views.properties.tabbed.propertyContributor
>> 2. org.eclipse.ui.views.properties.tabbed.propertyTabs
>> 3. org.eclipse.ui.views.properties.tabbed.propertySections
>>
>> extension points. But I am not able to get new property tab. Still I
>> am not able to add more tabs in property view
>>
>> From above article I can see different examples ,but I am not able to
>> see how these examples are implemented. Please suggest me how can add
>> more tabs . If possible please help me with some example.
>>
>>
>> Thanks in Advance
>>
>> Regards,
>>
>> Lakshya.
>>
>>
>>
>>
Re: Adding more tabs in property view in GMF [message #92988 is a reply to message #92407] Mon, 15 January 2007 15:04 Go to previous message
Eclipse UserFriend
Hi

Look at GenPropertySheet in
http://wiki.eclipse.org/index.php/GMF_GenModel_Hints#GenProp ertySheet in the
genmodel hints for how to customize the properties view.

Since you have overridden
org.eclipse.ui.views.properties.tabbed.propertyContributor, you are starting
from scratch and need to check out the article on how to provide your own
contributor.

You likely want to follow David Schmelter's advice in the thread below and
just add new tabs and sections.

Cheers...
Anthony

"Lakshya " <Lakshya.agarwal@gmail.com> wrote in message
news:be0af9438a3072c4e20cc6b59ea064a6$1@www.eclipse.org...
> Hi ,
>
> In Property view for any building block I can see two tabs which are
> Appereance and Advance. I want to change this tabbed property view like
> want toadd few more for tabs for specifying other properties for this
> building block. Can some one please suggest me how I can add more Tabs in
> property make changes in them.
>
> I am using GMF 1.02. I read this article
> http://www.eclipse.org/articles/Article-Tabbed-Properties/ta bbed_properties_view.html
>
> and over ridden
> 1. org.eclipse.ui.views.properties.tabbed.propertyContributor
> 2. org.eclipse.ui.views.properties.tabbed.propertyTabs
> 3. org.eclipse.ui.views.properties.tabbed.propertySections
>
> extension points. But I am not able to get new property tab. Still I am
> not able to add more tabs in property view
>
> From above article I can see different examples ,but I am not able to see
> how these examples are implemented. Please suggest me how can add more
> tabs . If possible please help me with some example.
>
>
> Thanks in Advance
>
> Regards,
>
> Lakshya.
>
>
>
>
Previous Topic:dyanamic addition of new shape to the palette at runtime.
Next Topic:extending the Diagram notation interface
Goto Forum:
  


Current Time: Mon Sep 01 02:01:33 EDT 2025

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

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

Back to the top