@Override
	public String decorateText(String text, Object element) {
		if(ToggleAbbrProjectNamesDelegate.isOn) {
			if(element instanceof JavaProject) {
				JavaProject proj = (JavaProject) element;
				element = proj.getProject();
			} 
			if(element instanceof IProject) {
				for(Entry<String, String> entry : nameAbbrMap.entrySet()) {
					String pattern = entry.getKey();
					if(text.startsWith(pattern)) {
						return entry.getValue()+text.substring(pattern.length());
					}
				}
			}
		}
		return text;
	}