org.eclipse.xtend.ide
Class XtendResourceUiServiceProvider

java.lang.Object
  extended by org.eclipse.xtext.ui.resource.DefaultResourceUIServiceProvider
      extended by org.eclipse.xtend.ide.XtendResourceUiServiceProvider
All Implemented Interfaces:
IResourceServiceProvider, IResourceUIServiceProvider

public class XtendResourceUiServiceProvider
extends DefaultResourceUIServiceProvider

Author:
Sven Efftinge - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.IResourceServiceProvider
IResourceServiceProvider.Registry
 
Constructor Summary
XtendResourceUiServiceProvider(IResourceServiceProvider delegate)
           
 
Method Summary
 boolean canHandle(org.eclipse.emf.common.util.URI uri)
          Tells whether the given URI can be handled by this IResourceServiceProvider
 boolean canHandle(org.eclipse.emf.common.util.URI uri, org.eclipse.core.resources.IStorage storage)
          Compute whether the given storage is interesting in the context of Xtext.
 
Methods inherited from class org.eclipse.xtext.ui.resource.DefaultResourceUIServiceProvider
get, getContainerManager, getEncodingProvider, getLabelProvider, getReferenceUpdater, getResourceDescriptionManager, getResourceValidator, getURIEditorOpener, isJavaCoreAvailable, isJavaTargetFolder, setDescriptionLabelProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XtendResourceUiServiceProvider

@Inject
public XtendResourceUiServiceProvider(IResourceServiceProvider delegate)
Method Detail

canHandle

public boolean canHandle(org.eclipse.emf.common.util.URI uri)
Description copied from interface: IResourceServiceProvider
Tells whether the given URI can be handled by this IResourceServiceProvider

Specified by:
canHandle in interface IResourceServiceProvider
Overrides:
canHandle in class DefaultResourceUIServiceProvider
Returns:
true if the URI can be handled

canHandle

public boolean canHandle(org.eclipse.emf.common.util.URI uri,
                         org.eclipse.core.resources.IStorage storage)
Description copied from class: DefaultResourceUIServiceProvider
Compute whether the given storage is interesting in the context of Xtext. By default, it will delegate to DefaultResourceUIServiceProvider.canHandle(URI) and perform a subsequent check to filter storages from Java target folders.

Specified by:
canHandle in interface IResourceUIServiceProvider
Overrides:
canHandle in class DefaultResourceUIServiceProvider
Parameters:
uri - - might be null
storage - - might be null
Returns:
true if the uri / storage pair should be processed.