diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/SystemResourceManager.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/SystemResourceManager.java index ab328a335fd..53b996df27b 100644 --- a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/SystemResourceManager.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/SystemResourceManager.java @@ -1,5 +1,5 @@ /******************************************************************************** - * Copyright (c) 2006 IBM Corporation. All rights reserved. + * Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved. * This program and the accompanying materials are made available under the terms * of the Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html @@ -11,7 +11,8 @@ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. * * Contributors: - * {Name} (company) - description of contribution. + * Dave McKnight (IBM) - [177155] Move from rse.ui/systems/org.eclipse.rse.core + * Martin Oberhuber (Wind River) - Re-add missing methods for user actions ********************************************************************************/ package org.eclipse.rse.core; @@ -97,7 +98,7 @@ public class SystemResourceManager implements SystemResourceConstants */ public static void startResourceEventListening(ISystemResourceListener listener) { - listener = listener; + _listener = listener; listener.turnOnResourceEventListening(); @@ -229,11 +230,60 @@ public class SystemResourceManager implements SystemResourceConstants firstTime = false; return firsttime; } + // -------------------------------------------- + // GET ALL EXISTING PROFILE NAMES OR FOLDERS... + // -------------------------------------------- + /** + * Each root folder of the project is assumed to be a profile, if it has a file named profile.xmi + */ + /* + public static IFolder[] getProfileFolders() + { + IProject proj = getRemoteSystemsProject(); + IFolder[] allFolders = getResourceHelpers().listFolders(proj); + //System.out.println("Inside getProfileFolders. allFolders.length = " + allFolders.length); + Vector v = new Vector(); + for (int idx=0; idx