Package org.eclipse.ui

Examples of org.eclipse.ui.IContributorResourceAdapter


      }
    } else if (adapter == IContributorResourceAdapter.class) {
      //if (resource==null) {
      //  return null;
      //}
      return new IContributorResourceAdapter() {
       
        @Override
        public IResource getAdaptedResource(IAdaptable adaptable) {
          if (!(adaptable instanceof JcrNode)) {
            return null;
View Full Code Here


      resource = (IResource) element;
    } else if (element instanceof IAdaptable) {
      final IAdaptable adaptable = (IAdaptable) element;
      resource = (IResource) adaptable.getAdapter(IResource.class);
      if (resource == null) {
        final IContributorResourceAdapter adapter = (IContributorResourceAdapter) adaptable
            .getAdapter(IContributorResourceAdapter.class);
        if (adapter != null)
          resource = adapter.getAdaptedResource(adaptable);
      }
    }

    return resource;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IContributorResourceAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.