public IResourceDescription getNew() { return dirtyResource.getDescription(); }
public URI getUri() { return dirtyResource.getURI(); } };
public String getContent(URI uri) { IDirtyResource dirtyResource = DirtyStateManager.this.findDirtyResourcebyURIorNormalizedURI(uri); if (dirtyResource != null) return dirtyResource.getActualContents(); return null; }
public String getContent(URI uri) { IDirtyResource dirtyResource = findDirtyResourcebyURIorNormalizedURI(uri); if (dirtyResource != null) return dirtyResource.getContents(); return null; }
public IResourceDescription getOld() { return dirtyResource.getDescription(); }
public URI getUri() { return dirtyResource.getURI(); } };
public Iterable<IEObjectDescription> apply(IDirtyResource from) { if (from != null) return from.getDescription().getExportedObjects(); return Collections.emptyList(); } }));
public boolean manageDirtyState(IDirtyResource dirtyResource) { IDirtyResource prevValue = managedResources.putIfAbsent(dirtyResource.getURI(), dirtyResource); return prevValue == null || prevValue == dirtyResource; }
public IResourceDescription getDirtyResourceDescription(URI uri) { IDirtyResource dirtyResource = getDirtyResource(uri); if (dirtyResource != null) return dirtyResource.getDescription(); return null; }
public void announceDirtyStateChanged(IDirtyResource dirtyResource) { managedResources.put(dirtyResource.getURI(), dirtyResource); notifyListeners(dirtyResource, true); }
public Iterable<IEObjectDescription> apply(IDirtyResource from) { if (from != null) return from.getDescription().getExportedObjects(type, name, ignoreCase); return Collections.emptyList(); } }));
public void discardDirtyState(IDirtyResource dirtyResource) { if (managedResources.remove(dirtyResource.getURI(), dirtyResource)) { notifyListeners(dirtyResource, false); } }
public Iterable<IEObjectDescription> apply(IDirtyResource from) { if (from != null) return from.getDescription().getExportedObjectsByType(type); return Collections.emptyList(); } }));
public Iterable<IEObjectDescription> getExportedObjectsByObject(EObject object) { URI resourceURI = EcoreUtil2.getPlatformResourceOrNormalizedURI(object).trimFragment(); IDirtyResource dirtyResource = getDirtyResource(resourceURI); if (dirtyResource != null) { return dirtyResource.getDescription().getExportedObjectsByObject(object); } return Collections.emptyList(); }