IPreferenceStore store = SVNUIPlugin.getPlugin().getPreferenceStore(); boolean showNewResources = store.getBoolean(ISVNUIConstants.PREF_SHOW_NEWRESOURCE_DECORATION);
	public static ImageDescriptor getOverlay(IResource resource, boolean isDirty, SVNTeamProvider provider) {        ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource);                // for efficiency don't look up a pref until its needed		IPreferenceStore store = SVNUIPlugin.getPlugin().getPreferenceStore();		boolean showNewResources = store.getBoolean(ISVNUIConstants.PREF_SHOW_NEWRESOURCE_DECORATION);		// show newResource icon		if (showNewResources) {			try {				if (svnResource.exists()) {					boolean isNewResource = false;                    if (!svnResource.isManaged()) {						isNewResource = true;					}					if (isNewResource) {						return newResource;					}				}			} catch (SVNException e) {				SVNUIPlugin.log(e.getStatus());				return null;			}		}				boolean showDirty = store.getBoolean(ISVNUIConstants.PREF_SHOW_DIRTY_DECORATION);		// show dirty icon		if(showDirty && isDirty) {			 return dirty;		}						boolean showAdded = store.getBoolean(ISVNUIConstants.PREF_SHOW_ADDED_DECORATION);        // show added icon		if (showAdded) {			try {                ISVNStatus status = svnResource.getStatus();                				// The changes did not intersect            		if (status.isMerged()) {           			return merged;           		}                if (status.getTextStatus() == ISVNStatus.Kind.ADDED) {					return added;                }                if (status.getTextStatus() == ISVNStatus.Kind.CONFLICTED) {                	return conflicted;                }			} catch (SVNException e) {				SVNUIPlugin.log(e.getStatus());				return null;			}		}				boolean showHasRemote = store.getBoolean(ISVNUIConstants.PREF_SHOW_HASREMOTE_DECORATION);				// Simplest is that is has remote.		if (showHasRemote) {            try {                                if (svnResource.hasRemote())                    return checkedIn;            } catch (SVNException e) {                SVNUIPlugin.log(e.getStatus());            }                       		}		//nothing matched		return null;	}