Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-debug-dev] jdt launch shortcuts on non java files

On Thu, 2005-12-01 at 13:04 -0600, Michael Rennie wrote:
> Your file(s) can be adapted to an IJavaElement if you are using the
> java model (projects, packages, etc). 

I tried putting

if (type == IJavaElement.class) {
	return null;
}

in the getAdapter method for my editor and it doesn't seem to help.
Actually I also put a println in there and it looks like the getAdapter
method is never called at all. How could eclipse test if my object is
adaptable to IJavaElement without calling getAdapter?


-- 
Ryan Boder
http://bitwiserlabs.com



Back to the top