org.eclipse.xtext.generator
Interface IDerivedResourceMarkers

All Known Implementing Classes:
DerivedResourceMarkers

public interface IDerivedResourceMarkers

Since:
2.3
Author:
Sebastian Zarnekow - Initial contribution and API, Sven Efftinge

Method Summary
 org.eclipse.core.resources.IMarker findDerivedResourceMarker(org.eclipse.core.resources.IFile file, java.lang.String source)
          finds a single derived resource marker for the given file, corresponding to the given source.
 org.eclipse.core.resources.IMarker[] findDerivedResourceMarkers(org.eclipse.core.resources.IResource file)
          Find all derived resource marker for the given resource and its children (if existent).
 java.lang.Iterable<org.eclipse.core.resources.IMarker> findDerivedResourceMarkers(org.eclipse.core.resources.IResource file, java.lang.String generatorId)
          Find all derived resource marker for the given resource and its children (if existent), which were installed for the given generatorId.
 java.util.List<org.eclipse.core.resources.IFile> findDerivedResources(org.eclipse.core.resources.IContainer container, java.lang.String source)
           
 java.lang.String getSource(org.eclipse.core.resources.IMarker marker)
           
 boolean installMarker(org.eclipse.core.resources.IFile file, java.lang.String source)
           
 

Method Detail

installMarker

boolean installMarker(org.eclipse.core.resources.IFile file,
                      java.lang.String source)
                      throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

getSource

java.lang.String getSource(org.eclipse.core.resources.IMarker marker)
Returns:
the 'source' attribute of the given marker

findDerivedResourceMarker

org.eclipse.core.resources.IMarker findDerivedResourceMarker(org.eclipse.core.resources.IFile file,
                                                             java.lang.String source)
                                                             throws org.eclipse.core.runtime.CoreException
finds a single derived resource marker for the given file, corresponding to the given source.

Returns:
the first found marker in the given file with the given source attribute or null if no such marker could be found.
Throws:
org.eclipse.core.runtime.CoreException

findDerivedResourceMarkers

org.eclipse.core.resources.IMarker[] findDerivedResourceMarkers(org.eclipse.core.resources.IResource file)
                                                                throws org.eclipse.core.runtime.CoreException
Find all derived resource marker for the given resource and its children (if existent).

Returns:
the generator markers or an empty array if none.
Throws:
org.eclipse.core.runtime.CoreException

findDerivedResourceMarkers

java.lang.Iterable<org.eclipse.core.resources.IMarker> findDerivedResourceMarkers(org.eclipse.core.resources.IResource file,
                                                                                  java.lang.String generatorId)
                                                                                  throws org.eclipse.core.runtime.CoreException
Find all derived resource marker for the given resource and its children (if existent), which were installed for the given generatorId.

Returns:
the generator markers or an empty Iterable if none.
Throws:
org.eclipse.core.runtime.CoreException

findDerivedResources

java.util.List<org.eclipse.core.resources.IFile> findDerivedResources(org.eclipse.core.resources.IContainer container,
                                                                      java.lang.String source)
                                                                      throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException