Source:
public String getText(Object element) { String text = super.getText(element); try { if (element instanceof IProjectFragment) { IProjectFragment root = (IProjectFragment) element; if (root.exists() && BuildpathModifier.filtersSet(root)) { IBuildpathEntry entry = root.getRawBuildpathEntry(); int excluded = entry.getExclusionPatterns().length; if (excluded == 1) return Messages .format( NewWizardMessages.DialogPackageExplorer_LabelProvider_SingleExcluded, text); else if (excluded > 1) return Messages .format( NewWizardMessages.DialogPackageExplorer_LabelProvider_MultiExcluded, new Object[] { text, Integer.valueOf(excluded) }); } } if (element instanceof IScriptProject) { IScriptProject project = (IScriptProject) element; if (project.exists() && project.isOnBuildpath(project)) { IProjectFragment root = project .findProjectFragment(project.getPath()); if (BuildpathModifier.filtersSet(root)) { IBuildpathEntry entry = root.getRawBuildpathEntry(); int excluded = entry.getExclusionPatterns().length; if (excluded == 1) return Messages .format( NewWizardMessages.DialogPackageExplorer_LabelProvider_SingleExcluded, text); else if (excluded > 1) return Messages .format( NewWizardMessages.DialogPackageExplorer_LabelProvider_MultiExcluded, new Object[] { text, Integer.valueOf(excluded) }); } } } if (element instanceof IFile || element instanceof IFolder) { IResource resource = (IResource) element; if (resource.exists() && BuildpathModifier.isExcluded(resource, fCurrJProject)) return Messages .format( NewWizardMessages.DialogPackageExplorer_LabelProvider_Excluded, text); } } catch (ModelException e) { DLTKUIPlugin.log(e); } return text; }

Target:
public String getText(Object element) { String text = super.getText(element); try { if (element instanceof IProjectFragment) { IProjectFragment root = (IProjectFragment) element; if (root.exists() && BuildpathModifier.filtersSet(root)) { IBuildpathEntry entry = root.getRawBuildpathEntry(); int excluded = entry.getExclusionPatterns().length; if (excluded == 1) return Messages .format( NewWizardMessages.DialogPackageExplorer_LabelProvider_SingleExcluded, text); else if (excluded > 1) return Messages .format( NewWizardMessages.DialogPackageExplorer_LabelProvider_MultiExcluded, new Object[] { text, excluded }); } } if (element instanceof IScriptProject) { IScriptProject project = (IScriptProject) element; if (project.exists() && project.isOnBuildpath(project)) { IProjectFragment root = project .findProjectFragment(project.getPath()); if (BuildpathModifier.filtersSet(root)) { IBuildpathEntry entry = root.getRawBuildpathEntry(); int excluded = entry.getExclusionPatterns().length; if (excluded == 1) return Messages .format( NewWizardMessages.DialogPackageExplorer_LabelProvider_SingleExcluded, text); else if (excluded > 1) return Messages .format( NewWizardMessages.DialogPackageExplorer_LabelProvider_MultiExcluded, new Object[] { text, excluded }); } } } if (element instanceof IFile || element instanceof IFolder) { IResource resource = (IResource) element; if (resource.exists() && BuildpathModifier.isExcluded(resource, fCurrJProject)) return Messages .format( NewWizardMessages.DialogPackageExplorer_LabelProvider_Excluded, text); } } catch (ModelException e) { DLTKUIPlugin.log(e); } return text; }