isDirty = SVNLightweightDecorator.isDirty(resource);
isDirty = SVNLightweightDecorator.isDirty(svnResource);
	public void decorate(Object element, IDecoration decoration) {				IResource resource = getResource(element);		if (resource == null || resource.getType() == IResource.ROOT)			return;        // get the team provider        SVNTeamProvider svnProvider = (SVNTeamProvider)RepositoryProvider.getProvider(resource.getProject(), SVNProviderPlugin.getTypeId());		if (svnProvider == null)			return;		// if the resource is ignored return an empty decoration. This will		// force a decoration update event and clear the existing SVN decoration.		ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource);		try {			if (svnResource.isIgnored()) {				return;			}		} catch (SVNException e) {			// The was an exception in isIgnored. Don't decorate			//todo should log this error			return;		}		// determine a if resource has outgoing changes (e.g. is dirty).		IPreferenceStore store = SVNUIPlugin.getPlugin().getPreferenceStore();		boolean isDirty = false;		boolean computeDeepDirtyCheck = store.getBoolean(ISVNUIConstants.PREF_CALCULATE_DIRTY);		int type = resource.getType();		if (type == IResource.FILE || computeDeepDirtyCheck) {			isDirty = SVNLightweightDecorator.isDirty(resource);		}				decorateTextLabel(resource, decoration, isDirty);				ImageDescriptor overlay = getOverlay(resource, isDirty, svnProvider);		if(overlay != null) { //actually sending null arg would work but this makes logic clearer			decoration.addOverlay(overlay);		}	}