Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Method #getAdapter(Class) not get IContentOutlinePage
Method #getAdapter(Class) not get IContentOutlinePage [message #1032043] Tue, 02 April 2013 13:58 Go to next message
Dmitriy Dmitriy is currently offline Dmitriy DmitriyFriend
Messages: 2
Registered: April 2013
Junior Member
Hello!

I cerate new editor and try to add outline view. To perform it (according to documentation) I modify Method #getAdapter(Class) to catch IContentOutlinePage object:

// DEBUG
System.out.println(adapter);

if (IContentOutlinePage.class.equals(adapter)) {
// Do smf...
}

BUT! This method never get IContentOutlinePage! It takes only:

class java.lang.Object
interface org.eclipse.core.resources.IFile
interface org.eclipse.core.resources.IResource
interface org.eclipse.core.resources.IResource

Nothing more... WHY?!
Re: Method #getAdapter(Class) not get IContentOutlinePage [message #1032614 is a reply to message #1032043] Wed, 03 April 2013 07:57 Go to previous message
Dmitriy Dmitriy is currently offline Dmitriy DmitriyFriend
Messages: 2
Registered: April 2013
Junior Member
I found solution myself! I place method #getAdapter(Class) into incorrect class (not in the editor class).
Previous Topic:customized border or little fig
Next Topic:New WSDL editor source
Goto Forum:
  


Current Time: Thu Apr 25 11:26:26 GMT 2024

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

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

Back to the top