mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-01 04:33:36 +02:00
[224671][api] Fix non-API leakage of ISystemResourceConstants
This commit is contained in:
parent
e6d64d4104
commit
4e9af07bbc
1 changed files with 224 additions and 219 deletions
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* Copyright (c) 2006, 2008 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,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* Dave McKnight (IBM) - [177155] Move from rse.ui/systems/org.eclipse.rse.core
|
||||
* David McKnight (IBM) - [177155] Move from rse.ui/systems/org.eclipse.rse.core
|
||||
* Martin Oberhuber (Wind River) - Re-add missing methods for user actions
|
||||
* David Dykstal (IBM) - [189858] delayed the creation of the remote systems project
|
||||
* removed unneeded first time logic and flags
|
||||
|
@ -21,6 +21,7 @@
|
|||
* API to the user actions plugin
|
||||
* David Dykstal (IBM) - [191130] remove getRemoteSystemsProject() and getProfileFolder()
|
||||
* as part of the work to removed the exception printed at startup.
|
||||
* Martin Oberhuber (Wind River) - [224671] Fix non-API leakage of ISystemResourceConstants
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.core;
|
||||
|
@ -46,22 +47,26 @@ import org.eclipse.rse.internal.core.SystemResourceConstants;
|
|||
|
||||
|
||||
/**
|
||||
* Static methods that manage the workbench resource tree for the remote systems project.
|
||||
* All code in the framework uses this to access the file system for save/restore purposes.
|
||||
* By limiting all access to one place, we simply changes should we decide to change the
|
||||
* underlying file system map.
|
||||
* Static methods that manage the workbench resource tree for the remote systems
|
||||
* project. All code in the framework uses this to access the file system for
|
||||
* save/restore purposes. By limiting all access to one place, we simply changes
|
||||
* should we decide to change the underlying file system map.
|
||||
* <p>
|
||||
* <b>Assumptions</b>
|
||||
* <ul>
|
||||
* <li>Each SystemConnectionPool object manages the connections for a given system profile
|
||||
* <li>Each SystemFilterPoolManager object manages the filter pools for a given subsystem factory,
|
||||
* for a given system profile!
|
||||
* <li>Each SystemFilterPool object is an arbitrary named collection of filters all stored
|
||||
* in one folder on disk with the same name as the pool.
|
||||
* <li>Each SystemConnectionPool object manages the connections for a given
|
||||
* system profile
|
||||
* <li>Each SystemFilterPoolManager object manages the filter pools for a given
|
||||
* subsystem factory, for a given system profile!
|
||||
* <li>Each SystemFilterPool object is an arbitrary named collection of filters
|
||||
* all stored in one folder on disk with the same name as the pool.
|
||||
* </ul>
|
||||
* <p>
|
||||
*
|
||||
* @noextend This class is not intended to be subclassed by clients.
|
||||
* @noinstantiate This class is not intended to be instantiated by clients.
|
||||
*/
|
||||
public class SystemResourceManager implements SystemResourceConstants
|
||||
public class SystemResourceManager
|
||||
{
|
||||
|
||||
private static IProject remoteSystemsProject = null;
|
||||
|
@ -160,7 +165,7 @@ public class SystemResourceManager implements SystemResourceConstants
|
|||
*/
|
||||
public static IProject getRemoteSystemsProject(boolean force) {
|
||||
if (remoteSystemsProject == null) {
|
||||
remoteSystemsProject = ResourcesPlugin.getWorkspace().getRoot().getProject(RESOURCE_PROJECT_NAME);
|
||||
remoteSystemsProject = ResourcesPlugin.getWorkspace().getRoot().getProject(SystemResourceConstants.RESOURCE_PROJECT_NAME);
|
||||
}
|
||||
if ((!remoteSystemsProject.exists() && force) || (remoteSystemsProject.exists() && !remoteSystemsProject.isOpen())) {
|
||||
ensureRemoteSystemsProject(remoteSystemsProject);
|
||||
|
@ -176,7 +181,7 @@ public class SystemResourceManager implements SystemResourceConstants
|
|||
{
|
||||
if (remoteSystemsTempFilesProject == null)
|
||||
{
|
||||
remoteSystemsTempFilesProject = ResourcesPlugin.getWorkspace().getRoot().getProject(RESOURCE_TEMPFILES_PROJECT_NAME);
|
||||
remoteSystemsTempFilesProject = ResourcesPlugin.getWorkspace().getRoot().getProject(SystemResourceConstants.RESOURCE_TEMPFILES_PROJECT_NAME);
|
||||
}
|
||||
return remoteSystemsTempFilesProject;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue