Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Custom property scheets
Custom property scheets [message #186431] Tue, 05 July 2005 15:03 Go to next message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

Hi,

I am creating a GEF RCP application and am working on the pöroperties of
my model-elements. As the property-structure is not quite simple, I
would like to link in my own property-editor which is shown when an
element is selected. What exactly do I have to do for this?

Tanks in advance,
Chris
Re: Custom property scheets [message #186625 is a reply to message #186431] Wed, 06 July 2005 09:03 Go to previous messageGo to next message
Andreas Holtz is currently offline Andreas HoltzFriend
Messages: 53
Registered: July 2009
Member
Christofer Dutz schrieb am 05.07.2005 17:03:
> Hi,
>
> I am creating a GEF RCP application and am working on the pöroperties of
> my model-elements. As the property-structure is not quite simple, I
> would like to link in my own property-editor which is shown when an
> element is selected. What exactly do I have to do for this?
>
> Tanks in advance,
> Chris
What do you mean with "property-editor"? Just the normal properyview in
Eclipse or something else?
Re: Custom property scheets [message #186660 is a reply to message #186625] Wed, 06 July 2005 12:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

Andreas Holtz wrote:
> Christofer Dutz schrieb am 05.07.2005 17:03:
>
>> Hi,
>>
>> I am creating a GEF RCP application and am working on the pöroperties
>> of my model-elements. As the property-structure is not quite simple, I
>> would like to link in my own property-editor which is shown when an
>> element is selected. What exactly do I have to do for this?
>>
>> Tanks in advance,
>> Chris
>
> What do you mean with "property-editor"? Just the normal properyview in
> Eclipse or something else?
Yes ... I can't use the simple default ProperyView in Eclipse and would
like to link in my own. As far as I understood the entire concept I have
to let my getAdapter method return a IPropertySheetPage Instance when
called with a IPropertySheetPage key. Unfortunately this request is
never done by Eclipse.

Chris
Re: Custom property scheets [message #186668 is a reply to message #186660] Wed, 06 July 2005 13:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

> Yes ... I can't use the simple default ProperyView in Eclipse and would
> like to link in my own. As far as I understood the entire concept I have
> to let my getAdapter method return a IPropertySheetPage Instance when
> called with a IPropertySheetPage key. Unfortunately this request is
> never done by Eclipse.

Are you making this getAdapter call in your editor and not your editpart?

Cheers,

~ Chris
Re: Custom property scheets [message #186675 is a reply to message #186668] Wed, 06 July 2005 14:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

Chris Aniszczyk wrote:
>> Yes ... I can't use the simple default ProperyView in Eclipse and
>> would like to link in my own. As far as I understood the entire
>> concept I have to let my getAdapter method return a IPropertySheetPage
>> Instance when called with a IPropertySheetPage key. Unfortunately this
>> request is never done by Eclipse.
>
>
> Are you making this getAdapter call in your editor and not your editpart?
>
> Cheers,
>
> ~ Chris
I simply inserted a breakpoint and th only time I get there ist when a
IPropertySource is requested.
I must admit that this entire Property-stuff is totaly stuffing my
brain. Had to work myself into SWT, GEF, RCP, and all the other stuff
and now I seem to be unable to properly digest this chunk of new concepts.

Chris
Re: Custom property scheets [message #186683 is a reply to message #186675] Wed, 06 July 2005 14:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

Christofer Dutz wrote:
> Chris Aniszczyk wrote:
>
>>> Yes ... I can't use the simple default ProperyView in Eclipse and
>>> would like to link in my own. As far as I understood the entire
>>> concept I have to let my getAdapter method return a
>>> IPropertySheetPage Instance when called with a IPropertySheetPage
>>> key. Unfortunately this request is never done by Eclipse.
>>
>>
>>
>> Are you making this getAdapter call in your editor and not your editpart?
>>
>> Cheers,
>>
>> ~ Chris
>
> I simply inserted a breakpoint and th only time I get there ist when a
> IPropertySource is requested.
> I must admit that this entire Property-stuff is totaly stuffing my
> brain. Had to work myself into SWT, GEF, RCP, and all the other stuff
> and now I seem to be unable to properly digest this chunk of new concepts.
>
> Chris

Just found my mistake ... wanted to add the PropertyPage to the EditPart
and not the Editor ... was is the point of this? I thought I could
register a PropertyPage for each EditPart that lets me edit this
components Properties. Am I on the wrong path here?
Re: Custom property scheets [message #186712 is a reply to message #186683] Wed, 06 July 2005 16:41 Go to previous messageGo to next message
Andreas Holtz is currently offline Andreas HoltzFriend
Messages: 53
Registered: July 2009
Member
Christofer Dutz schrieb am 06.07.2005 16:36:
> Just found my mistake ... wanted to add the PropertyPage to the EditPart
> and not the Editor ... was is the point of this? I thought I could
> register a PropertyPage for each EditPart that lets me edit this
> components Properties. Am I on the wrong path here?

The editparts return a propertySource-Object.
In the EDiagram-Example for each model-element you create an own
propertySource-class whose object will be returned by the
getPropertySource()-method.

Sample-Code (located in the editpart):

public Object getAdapter(Class key) {
if (IPropertySource.class == key) {
return getPropertySource();
}
return super.getAdapter(key);
}

protected IPropertySource getPropertySource() {
if (propertySource == null)
propertySource = createPropertySource();
return propertySource;
}

protected YourPropertySource createPropertySource() {
return new YourPropertySource();
}

Inspect the Ediagram-Example, it should help.

I hope I could help.

Andreas
Re: Custom property scheets [message #186719 is a reply to message #186431] Wed, 06 July 2005 16:57 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Off the top of my head, the only other implementation of a custom
property sheet page would be the webtools property page that is
*possibly* slated to be included in 3.2 (it exists somewhere in webtools
currently as internal)

I think this property sheet will solve a lot of the problems people have
using the current crappy one.

Here's a quick snapshot of it,
http://www.eclipse.org/webtools/initial-contribution/IBM/eva lGuides/TabbedPropertyEval.html?p=1

Cheers,

~ Chris

Christofer Dutz wrote:
> Hi,
>
> I am creating a GEF RCP application and am working on the pöroperties of
> my model-elements. As the property-structure is not quite simple, I
> would like to link in my own property-editor which is shown when an
> element is selected. What exactly do I have to do for this?
>
> Tanks in advance,
> Chris
Previous Topic:FigureCanvas Bounds
Next Topic:Changes since 3.0
Goto Forum:
  


Current Time: Fri Dec 27 02:53:30 GMT 2024

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

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

Back to the top