Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 124994 - RemoteFileEditorInput.getAdapter does not query registry
Summary: RemoteFileEditorInput.getAdapter does not query registry
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Michael Valenta CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 120340
  Show dependency tree
 
Reported: 2006-01-24 07:14 EST by Dani Megert CLA
Modified: 2006-01-24 08:15 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2006-01-24 07:14:21 EST
I20060124-0800.

We registered an adapter for IEditorInput but it is not working for RemoteFileEditorInput because it does not query the platform registry, instead getAdapter(...) is coded like this:

	public Object getAdapter(Class adapter) {
		if (adapter == IWorkbenchAdapter.class) {
			return this;
		}
		return null;
	}

You can either inherit from PlatformObject and replace 'return null' with   
  'return super.getAdapter(adapter);
or replace 'return null' with:
  return Platform.getAdapterManager().getAdapter(this, adapter);
Comment 1 Michael Valenta CLA 2006-01-24 08:15:29 EST
Fix released to HEAD