/** * {@inheritDoc} */ public String getColumnText(Object element, int columnIndex) { if (columnIndex == 0) { return ((IJavaProject)element).getProject().getName(); } else if (columnIndex == 1) { if (fProfileIdsTable == null) fProfileIdsTable= loadProfiles(); InstanceScope instanceScope= new InstanceScope(); IEclipsePreferences instancePreferences= instanceScope.getNode(JavaUI.ID_PLUGIN); final String workbenchProfileId; if (instancePreferences.get(CleanUpConstants.CLEANUP_PROFILE, null) != null) { workbenchProfileId= instancePreferences.get(CleanUpConstants.CLEANUP_PROFILE, null); } else { workbenchProfileId= CleanUpConstants.DEFAULT_PROFILE; } return getProjectProfileName((IJavaProject)element, fProfileIdsTable, workbenchProfileId); } return null; }
@Override public String getColumnText(Object element, int columnIndex) { if (columnIndex == 0) { return ((IJavaProject)element).getProject().getName(); } else if (columnIndex == 1) { if (fProfileIdsTable == null) fProfileIdsTable= loadProfiles(); IEclipsePreferences instancePreferences= InstanceScope.INSTANCE.getNode(JavaUI.ID_PLUGIN); final String workbenchProfileId; if (instancePreferences.get(CleanUpConstants.CLEANUP_PROFILE, null) != null) { workbenchProfileId= instancePreferences.get(CleanUpConstants.CLEANUP_PROFILE, null); } else { workbenchProfileId= CleanUpConstants.DEFAULT_PROFILE; } return getProjectProfileName((IJavaProject)element, fProfileIdsTable, workbenchProfileId); } return null; }
@Override public String getColumnText(Object element, int columnIndex) { if (columnIndex == 0) { return ((IJavaProject)element).getProject().getName(); } else if (columnIndex == 1) { if (fProfileIdsTable == null) fProfileIdsTable= loadProfiles(); IEclipsePreferences instancePreferences= InstanceScope.INSTANCE.getNode(JavaUI.ID_PLUGIN); final String workbenchProfileId; if (instancePreferences.get(CleanUpConstants.CLEANUP_PROFILE, null) != null) { workbenchProfileId= instancePreferences.get(CleanUpConstants.CLEANUP_PROFILE, null); } else { workbenchProfileId= CleanUpConstants.DEFAULT_PROFILE; } return getProjectProfileName((IJavaProject)element, fProfileIdsTable, workbenchProfileId); } return null; }