@SuppressWarnings("unused")
Activator r = Activator.getDefault();
final IMetaStore metastore = OrionConfiguration.getMetaStore();
if (userInfo.getWorkspaceIds().size() > 0) {
for (String workspaceId : userInfo.getWorkspaceIds()) {
WorkspaceInfo workspaceInfo = metastore.readWorkspace(workspaceId);
if (workspaceInfo.getProjectNames().size() > 0) {
for (String projectName : workspaceInfo.getProjectNames()) {
ProjectInfo projectInfo = metastore.readProject(workspaceId, projectName);
if (projectInfo != null) {
WorkspaceResourceHandler.removeProject(userId, workspaceInfo, projectInfo);