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 09:58 Go to next message
Dmitriy Dmitriy is currently offline Dmitriy Dmitriy
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 03:57 Go to previous message
Dmitriy Dmitriy is currently offline Dmitriy Dmitriy
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: Sat Aug 30 02:40:03 EDT 2014

Powered by FUDForum. Page generated in 0.45338 seconds