try { ICompilationUnit cu= match.getType().getCompilationUnit(); if (cu == null) { return false; } IResource resource= cu.getResource(); ITextFileBufferManager manager= FileBuffers.getTextFileBufferManager(); ITextFileBuffer textFileBuffer= manager.getTextFileBuffer(resource.getFullPath()); if (textFileBuffer != null) { return textFileBuffer.isDirty(); } } catch (JavaModelException e) {
ICompilationUnit cu= match.getType().getCompilationUnit(); if (cu == null) { return false; } IResource resource= cu.getResource(); ITextFileBufferManager manager= FileBuffers.getTextFileBufferManager(); ITextFileBuffer textFileBuffer= manager.getTextFileBuffer(resource.getFullPath()); if (textFileBuffer != null) { return textFileBuffer.isDirty();
	public boolean isContainerDirty(TypeNameMatch match) {		try {			ICompilationUnit cu= match.getType().getCompilationUnit();			if (cu == null) {				return false;			}			IResource resource= cu.getResource(); 			ITextFileBufferManager manager= FileBuffers.getTextFileBufferManager();			ITextFileBuffer textFileBuffer= manager.getTextFileBuffer(resource.getFullPath());			if (textFileBuffer != null) {				return textFileBuffer.isDirty();			}		} catch (JavaModelException e) {			// ignore		}		return false;	}