Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » getAdapter and IPropertySheetPage Problems
getAdapter and IPropertySheetPage Problems [message #186246] Mon, 04 July 2005 09:45 Go to next message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

Hi,

I am developing a GEF-based RCP-application. Since my editor-parts ...
hope that's what they are called, have some quite complex attributes I
was not abele to use the normal PropertySheetPage. My next attempt was
to create my owwn PropertySheetPage. After creating a small dummy class
for this I am not able to link it in to the rst, since the getAdapter
method is never called with the key of type IPropertySheetPage. The only
calls I get are for IPropertySource.

What am I doing wrong?

Thanks in advance,
Chris
Re: getAdapter and IPropertySheetPage Problems [message #186335 is a reply to message #186246] Tue, 05 July 2005 05:42 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
HI

GEF's EDiagram example (accessible only from CVS) has a custom PropertySheetPage.

Regards

Ed Willink


Christofer Dutz wrote:
> Hi,
>
> I am developing a GEF-based RCP-application. Since my editor-parts ...
> hope that's what they are called, have some quite complex attributes I
> was not abele to use the normal PropertySheetPage. My next attempt was
> to create my owwn PropertySheetPage. After creating a small dummy class
> for this I am not able to link it in to the rst, since the getAdapter
> method is never called with the key of type IPropertySheetPage. The only
> calls I get are for IPropertySource.
>
> What am I doing wrong?
>
> Thanks in advance,
> Chris
Re: getAdapter and IPropertySheetPage Problems [message #186365 is a reply to message #186335] Tue, 05 July 2005 11:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

Thanks ... will have a look at that.

Ed Willink wrote:
> HI
>
> GEF's EDiagram example (accessible only from CVS) has a custom
> PropertySheetPage.
>
> Regards
>
> Ed Willink
>
>
> Christofer Dutz wrote:
>
>> Hi,
>>
>> I am developing a GEF-based RCP-application. Since my editor-parts ...
>> hope that's what they are called, have some quite complex attributes I
>> was not abele to use the normal PropertySheetPage. My next attempt was
>> to create my owwn PropertySheetPage. After creating a small dummy
>> class for this I am not able to link it in to the rst, since the
>> getAdapter method is never called with the key of type
>> IPropertySheetPage. The only calls I get are for IPropertySource.
>>
>> What am I doing wrong?
>>
>> Thanks in advance,
>> Chris
Re: getAdapter and IPropertySheetPage Problems [message #186396 is a reply to message #186335] Tue, 05 July 2005 14:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Ed Willink wrote:
> HI
>
> GEF's EDiagram example (accessible only from CVS) has a custom
> PropertySheetPage.
>
> Regards
>
> Ed Willink

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gef.exa mples.ediagram/src/org/eclipse/gef/examples/ediagram/model/p roperties/emf/?cvsroot=Tools_Project&only_with_tag=oldPr operties

The EDiagram example doesn't use the custom propery sheet page anymore.
However, the version that did is tagged in CVS.

Cheers,

~ Chris
Re: getAdapter and IPropertySheetPage Problems [message #186424 is a reply to message #186335] Tue, 05 July 2005 14:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

Could you please give mie a hint at where I can find this
CustomPropertyPage as I cecked-out the example but couldn't find any.
I guess you were talking about the org.eclipse.gef.examples.ediagram
project.

Chris

Ed Willink wrote:
> HI
>
> GEF's EDiagram example (accessible only from CVS) has a custom
> PropertySheetPage.
>
> Regards
>
> Ed Willink
>
>
> Christofer Dutz wrote:
>
>> Hi,
>>
>> I am developing a GEF-based RCP-application. Since my editor-parts ...
>> hope that's what they are called, have some quite complex attributes I
>> was not abele to use the normal PropertySheetPage. My next attempt was
>> to create my owwn PropertySheetPage. After creating a small dummy
>> class for this I am not able to link it in to the rst, since the
>> getAdapter method is never called with the key of type
>> IPropertySheetPage. The only calls I get are for IPropertySource.
>>
>> What am I doing wrong?
>>
>> Thanks in advance,
>> Chris
Re: getAdapter and IPropertySheetPage Problems [message #186440 is a reply to message #186396] Tue, 05 July 2005 15:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

Ok ... that could be the reason for me not finding it ;)

Chris Aniszczyk wrote:
> Ed Willink wrote:
>
>> HI
>>
>> GEF's EDiagram example (accessible only from CVS) has a custom
>> PropertySheetPage.
>>
>> Regards
>>
>> Ed Willink
>
>
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gef.exa mples.ediagram/src/org/eclipse/gef/examples/ediagram/model/p roperties/emf/?cvsroot=Tools_Project&only_with_tag=oldPr operties
>
>
> The EDiagram example doesn't use the custom propery sheet page anymore.
> However, the version that did is tagged in CVS.
>
> Cheers,
>
> ~ Chris
Re: getAdapter and IPropertySheetPage Problems [message #186480 is a reply to message #186396] Tue, 05 July 2005 16:54 Go to previous messageGo to next message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
Hi,

On 2005-07-05 16:26:48 +0200, Chris Aniszczyk <none@us.ibm.com> said:
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gef.exa mples.ediagram/src/org/eclipse/gef/examples/ediagram/model/p roperties/emf/?cvsroot=Tools_Project&only_with_tag=oldPr operties

This
>
version doesn't compile with the latest Eclipse (3.1) and GEF (3.1RC4)
versions...

The method setRootEntry(IPropertySheetEntry) in the type
PropertySheetPage is not applicable for the arguments
(UndoablePropertySheetEntry) EDiagramEditor.java org.eclipse.gef.examples.ediagram/src/org/eclipse/gef/exampl es/ediagram/editor line
199 5. Juli 2005 18:47:51
Re: getAdapter and IPropertySheetPage Problems [message #186617 is a reply to message #186480] Wed, 06 July 2005 09:00 Go to previous message
Andreas Holtz is currently offline Andreas HoltzFriend
Messages: 53
Registered: July 2009
Member
Jens v.P. schrieb am 05.07.2005 18:54:
> Hi,
>
> On 2005-07-05 16:26:48 +0200, Chris Aniszczyk <none@us.ibm.com> said:
>
>> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gef.exa mples.ediagram/src/org/eclipse/gef/examples/ediagram/model/p roperties/emf/?cvsroot=Tools_Project&only_with_tag=oldPr operties
>>
>
>
> This
>
>>
> version doesn't compile with the latest Eclipse (3.1) and GEF (3.1RC4)
> versions...
>
> The method setRootEntry(IPropertySheetEntry) in the type
> PropertySheetPage is not applicable for the arguments
> (UndoablePropertySheetEntry) EDiagramEditor.java
> org.eclipse.gef.examples.ediagram/src/org/eclipse/gef/exampl es/ediagram/editor
> line 199 5. Juli 2005 18:47:51
>

The reason is probably, that the class UndoablePropertySheetEntry is
final and the old example uses that class (it's a mix of GEF and EMF
classes). See my post "Why is UndoablePropertySheetEntry final?" and
Randys answer.

Andreas
Previous Topic:How to set the IAction disable on popup menu
Next Topic:FigureCanvas Bounds
Goto Forum:
  


Current Time: Thu Dec 12 18:16:47 GMT 2024

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

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

Back to the top