Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.ui.internal.ide
Class DefaultContributorResourceAdapter  view DefaultContributorResourceAdapter download DefaultContributorResourceAdapter.java

java.lang.Object
  extended byorg.eclipse.ui.internal.ide.DefaultContributorResourceAdapter
All Implemented Interfaces:
org.eclipse.ui.IContributorResourceAdapter

public class DefaultContributorResourceAdapter
extends java.lang.Object
implements org.eclipse.ui.IContributorResourceAdapter

The DefaultContributorResourceAdapter is the default implementation of the IContributorResourceAdapter used for one to one resource adaption.


Field Summary
private static org.eclipse.ui.IContributorResourceAdapter singleton
           
 
Constructor Summary
DefaultContributorResourceAdapter()
          Constructor for DefaultContributorResourceAdapter.
 
Method Summary
 org.eclipse.core.resources.IResource getAdaptedResource(org.eclipse.core.runtime.IAdaptable adaptable)
          Return the resource that the supplied adaptable adapts to.
static org.eclipse.ui.IContributorResourceAdapter getDefault()
          Return the default instance used for TaskList adapting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

private static org.eclipse.ui.IContributorResourceAdapter singleton
Constructor Detail

DefaultContributorResourceAdapter

public DefaultContributorResourceAdapter()
Constructor for DefaultContributorResourceAdapter.

Method Detail

getDefault

public static org.eclipse.ui.IContributorResourceAdapter getDefault()
Return the default instance used for TaskList adapting.


getAdaptedResource

public org.eclipse.core.resources.IResource getAdaptedResource(org.eclipse.core.runtime.IAdaptable adaptable)
Description copied from interface: org.eclipse.ui.IContributorResourceAdapter
Return the resource that the supplied adaptable adapts to. An IContributorResourceAdapter assumes that any object passed to it adapts to one equivalent resource.

Specified by:
getAdaptedResource in interface org.eclipse.ui.IContributorResourceAdapter