use of org.eclipse.core.resources.IMarkerDelta in project flux by eclipse.
the class LiveEditUnits method checkForLiveUnitsInvolved.
protected void checkForLiveUnitsInvolved(IResourceDelta delta) {
IProject project = delta.getResource().getProject();
IMarkerDelta[] markerDeltas = delta.getMarkerDeltas();
if (project != null && repository.isConnected(project) && markerDeltas != null && markerDeltas.length > 0) {
IResource resource = delta.getResource();
String resourcePath = project.getName() + "/" + resource.getProjectRelativePath().toString();
ICompilationUnit unit = getLiveEditUnit(repository.getUsername(), resourcePath);
if (unit != null) {
try {
unit.reconcile(ICompilationUnit.NO_AST, true, null, null);
} catch (JavaModelException e) {
e.printStackTrace();
}
}
}
}
use of org.eclipse.core.resources.IMarkerDelta in project flux by eclipse.
the class Repository method metadataChanged.
public void metadataChanged(IResourceDelta delta) {
IProject project = delta.getResource().getProject();
IMarkerDelta[] markerDeltas = delta.getMarkerDeltas();
if (project != null && isConnected(project) && markerDeltas != null && markerDeltas.length > 0) {
sendMetadataUpdate(delta.getResource());
}
}
Aggregations