String format = "";
IDecoratorComponent[][] format;
	public static void decorateTextLabel(IResource resource, IDecoration decoration, boolean isDirty) {		try {			IPreferenceStore store =				SVNUIPlugin.getPlugin().getPreferenceStore();			// if the resource does not have a location then return. This can happen if the resource			// has been deleted after we where asked to decorate it.			if (resource.getLocation() == null) {				return;			}			// get the format			String format = ""; //$NON-NLS-1$			int type = resource.getType();			if (type == IResource.FOLDER) {				format =					store.getString(ISVNUIConstants.PREF_FOLDERTEXT_DECORATION);			} else if (type == IResource.PROJECT) {				format =					store.getString(						ISVNUIConstants.PREF_PROJECTTEXT_DECORATION);			} else {				format =					store.getString(ISVNUIConstants.PREF_FILETEXT_DECORATION);			}                        // fill the bindings            Map bindings = new HashMap(3);			if (isDirty) {				bindings.put(					SVNDecoratorConfiguration.DIRTY_FLAG,					   store.getString(ISVNUIConstants.PREF_DIRTY_FLAG));			}			ISVNLocalResource svnResource =				SVNWorkspaceRoot.getSVNResourceFor(resource);			ISVNStatus status = svnResource.getStatus();			if (status.getUrl() != null)				bindings.put(					SVNDecoratorConfiguration.RESOURCE_URL,					status.getUrl().toString());			if (status.isAdded()) {				bindings.put(					SVNDecoratorConfiguration.ADDED_FLAG,					   store.getString(ISVNUIConstants.PREF_ADDED_FLAG));			} else {                if ((status.getRevision().getNumber() != SVNRevision.SVN_INVALID_REVNUM) &&                    (status.getRevision().getNumber() != 0))                {				    bindings.put(					   SVNDecoratorConfiguration.RESOURCE_REVISION,					   status.getLastChangedRevision().toString());				    bindings.put(					   SVNDecoratorConfiguration.RESOURCE_AUTHOR,					   status.getLastCommitAuthor());                }				                if (status.getLastChangedDate() != null)                    bindings.put(					   SVNDecoratorConfiguration.RESOURCE_DATE,						DateFormat.getInstance().format(status.getLastChangedDate()));			}			SVNDecoratorConfiguration.decorate(decoration, format, bindings);					} catch (SVNException e) {			SVNUIPlugin.log(e.getStatus());			return;		}	}