diff --git a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/connectorservice/DaytimeConnectorService.java b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/connectorservice/DaytimeConnectorService.java
index b7de9b3c57d..8d8a39da841 100644
--- a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/connectorservice/DaytimeConnectorService.java
+++ b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/connectorservice/DaytimeConnectorService.java
@@ -21,11 +21,11 @@ import java.net.ConnectException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.osgi.util.NLS;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.AbstractConnectorService;
import org.eclipse.rse.examples.daytime.DaytimeResources;
import org.eclipse.rse.examples.daytime.service.DaytimeService;
import org.eclipse.rse.examples.daytime.service.IDaytimeService;
-import org.eclipse.rse.model.IHost;
/**
* The DaytimeConnectorService takes care of keeping a "session" for accessing
diff --git a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/connectorservice/DaytimeConnectorServiceManager.java b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/connectorservice/DaytimeConnectorServiceManager.java
index ab441c00d21..1d9edb8cfa5 100644
--- a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/connectorservice/DaytimeConnectorServiceManager.java
+++ b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/connectorservice/DaytimeConnectorServiceManager.java
@@ -16,11 +16,11 @@
package org.eclipse.rse.examples.daytime.connectorservice;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.examples.daytime.subsystems.IDaytimeSubSystem;
-import org.eclipse.rse.model.IHost;
/**
* This class manages our DaytimeConnectorService objects, so that if we ever
diff --git a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/subsystems/DaytimeSubSystem.java b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/subsystems/DaytimeSubSystem.java
index bd79397662d..9b6874021f4 100644
--- a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/subsystems/DaytimeSubSystem.java
+++ b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/subsystems/DaytimeSubSystem.java
@@ -14,15 +14,16 @@ package org.eclipse.rse.examples.daytime.subsystems;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.swt.widgets.Display;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.model.ISystemMessageObject;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.model.SystemMessageObject;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.SubSystem;
import org.eclipse.rse.examples.daytime.model.DaytimeResource;
import org.eclipse.rse.examples.daytime.service.IDaytimeService;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
+import org.eclipse.rse.model.SystemRegistry;
import org.eclipse.rse.model.SystemResourceChangeEvent;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
import org.eclipse.rse.ui.ISystemMessages;
@@ -45,7 +46,7 @@ public class DaytimeSubSystem extends SubSystem {
//This is called after connect - expand the daytime node.
//May be called in worker thread.
//TODO find a more elegant solution for expanding the item, e.g. use implicit connect like filters
- final ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
+ final SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
final SystemResourceChangeEvent event = new SystemResourceChangeEvent(this, ISystemResourceChangeEvents.EVENT_SELECT_EXPAND, null);
//TODO bug 150919: postEvent() should not be necessary asynchronously
//sr.postEvent(event);
diff --git a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/subsystems/DaytimeSubSystemConfiguration.java b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/subsystems/DaytimeSubSystemConfiguration.java
index ddb26f8cbc7..4bf5b4e915c 100644
--- a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/subsystems/DaytimeSubSystemConfiguration.java
+++ b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/subsystems/DaytimeSubSystemConfiguration.java
@@ -19,13 +19,13 @@ package org.eclipse.rse.examples.daytime.subsystems;
import java.util.HashMap;
import java.util.Map;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.servicesubsystem.ServiceSubSystemConfiguration;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.examples.daytime.connectorservice.DaytimeConnectorService;
import org.eclipse.rse.examples.daytime.connectorservice.DaytimeConnectorServiceManager;
import org.eclipse.rse.examples.daytime.service.IDaytimeService;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.IService;
/**
diff --git a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/ui/DaytimeNewConnectionWizardPage.java b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/ui/DaytimeNewConnectionWizardPage.java
index d628998ca1a..8d6855bb3af 100644
--- a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/ui/DaytimeNewConnectionWizardPage.java
+++ b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/ui/DaytimeNewConnectionWizardPage.java
@@ -1,14 +1,15 @@
package org.eclipse.rse.examples.daytime.ui;
import org.eclipse.jface.wizard.IWizard;
-import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
-import org.eclipse.rse.examples.daytime.DaytimeResources;
-import org.eclipse.rse.ui.wizards.AbstractSystemNewConnectionWizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Text;
+import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
+import org.eclipse.rse.examples.daytime.DaytimeResources;
+import org.eclipse.rse.ui.wizards.AbstractSystemNewConnectionWizardPage;
+
public class DaytimeNewConnectionWizardPage extends
AbstractSystemNewConnectionWizardPage {
diff --git a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/ui/DaytimeSubSystemConfigurationAdapter.java b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/ui/DaytimeSubSystemConfigurationAdapter.java
index a9071c4eb2d..cd0ed325004 100644
--- a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/ui/DaytimeSubSystemConfigurationAdapter.java
+++ b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/ui/DaytimeSubSystemConfigurationAdapter.java
@@ -20,9 +20,9 @@ import java.util.Vector;
import org.eclipse.jface.wizard.IWizard;
+import org.eclipse.rse.core.model.ISystemNewConnectionWizardPage;
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
import org.eclipse.rse.ui.view.SubSystemConfigurationAdapter;
-import org.eclipse.rse.ui.wizards.ISystemNewConnectionWizardPage;
public class DaytimeSubSystemConfigurationAdapter extends SubSystemConfigurationAdapter
diff --git a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/ui/DaytimeSubSystemConfigurationAdapterFactory.java b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/ui/DaytimeSubSystemConfigurationAdapterFactory.java
index 55aa80b3513..ee51763a3f4 100644
--- a/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/ui/DaytimeSubSystemConfigurationAdapterFactory.java
+++ b/rse/examples/org.eclipse.rse.examples.daytime/src/org/eclipse/rse/examples/daytime/ui/DaytimeSubSystemConfigurationAdapterFactory.java
@@ -2,6 +2,7 @@ package org.eclipse.rse.examples.daytime.ui;
import org.eclipse.core.runtime.IAdapterFactory;
import org.eclipse.core.runtime.IAdapterManager;
+
import org.eclipse.rse.core.subsystems.util.ISubSystemConfigurationAdapter;
import org.eclipse.rse.examples.daytime.subsystems.DaytimeSubSystemConfiguration;
diff --git a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperConnectorService.java b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperConnectorService.java
index 37700858ff6..14b1b640a7d 100644
--- a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperConnectorService.java
+++ b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperConnectorService.java
@@ -17,8 +17,8 @@
package samples.subsystems;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.AbstractConnectorService;
-import org.eclipse.rse.model.IHost;
import samples.RSESamplesPlugin;
diff --git a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperConnectorServiceManager.java b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperConnectorServiceManager.java
index 8f3b0188cc4..5bcaec775c1 100644
--- a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperConnectorServiceManager.java
+++ b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperConnectorServiceManager.java
@@ -16,10 +16,10 @@
package samples.subsystems;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.model.IHost;
/**
* This class manages our DeveloperConnectorService objects, so that if we
diff --git a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperSubSystem.java b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperSubSystem.java
index ba444198a62..bc08b71c33a 100644
--- a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperSubSystem.java
+++ b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperSubSystem.java
@@ -19,9 +19,9 @@ package samples.subsystems;
import java.util.Vector;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.SubSystem;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.clientserver.NamePatternMatcher;
import samples.model.DeveloperResource;
diff --git a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperSubSystemConfiguration.java b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperSubSystemConfiguration.java
index 92cb56f4aba..9e1865d5ab7 100644
--- a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperSubSystemConfiguration.java
+++ b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperSubSystemConfiguration.java
@@ -18,13 +18,13 @@ package samples.subsystems;
import java.util.Vector;
+import org.eclipse.rse.core.filters.ISystemFilter;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
+import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.core.subsystems.SubSystemConfiguration;
-import org.eclipse.rse.filters.ISystemFilter;
-import org.eclipse.rse.filters.ISystemFilterPool;
-import org.eclipse.rse.filters.ISystemFilterPoolManager;
-import org.eclipse.rse.model.IHost;
import samples.RSESamplesPlugin;
@@ -43,7 +43,7 @@ public class DeveloperSubSystemConfiguration extends SubSystemConfiguration {
/**
* Create an instance of our subsystem.
- * @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#createSubSystemInternal(org.eclipse.rse.model.IHost)
+ * @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#createSubSystemInternal(org.eclipse.rse.core.model.IHost)
*/
public ISubSystem createSubSystemInternal(IHost conn) {
return new DeveloperSubSystem(conn, getConnectorService(conn));
@@ -85,7 +85,7 @@ public class DeveloperSubSystemConfiguration extends SubSystemConfiguration {
* sheet for the "type" property when a filter is selected within our subsystem.
*
* Requires this line in rseSamplesResources.properties: property.type.teamfilter=Team filter
- * @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#getTranslatedFilterTypeProperty(org.eclipse.rse.filters.ISystemFilter)
+ * @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#getTranslatedFilterTypeProperty(org.eclipse.rse.core.filters.ISystemFilter)
*/
public String getTranslatedFilterTypeProperty(ISystemFilter selectedFilter)
{
diff --git a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperSubSystemConfigurationAdapter.java b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperSubSystemConfigurationAdapter.java
index dfe984df5b0..f82290144a4 100644
--- a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperSubSystemConfigurationAdapter.java
+++ b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/subsystems/DeveloperSubSystemConfigurationAdapter.java
@@ -18,9 +18,9 @@ package samples.subsystems;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.rse.core.filters.ISystemFilter;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
-import org.eclipse.rse.filters.ISystemFilter;
-import org.eclipse.rse.filters.ISystemFilterPool;
import org.eclipse.rse.ui.filters.actions.SystemChangeFilterAction;
import org.eclipse.rse.ui.filters.actions.SystemNewFilterAction;
import org.eclipse.rse.ui.view.SubSystemConfigurationAdapter;
@@ -92,7 +92,7 @@ public class DeveloperSubSystemConfigurationAdapter extends
/**
* Override of parent method for returning the image for filters in our subsystem.
- * @see org.eclipse.rse.ui.view.SubSystemConfigurationAdapter#getSystemFilterImage(org.eclipse.rse.filters.ISystemFilter)
+ * @see org.eclipse.rse.ui.view.SubSystemConfigurationAdapter#getSystemFilterImage(org.eclipse.rse.core.filters.ISystemFilter)
*/
public ImageDescriptor getSystemFilterImage(ISystemFilter filter)
{
diff --git a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/ui/actions/ShowJarContents.java b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/ui/actions/ShowJarContents.java
index 58edd378226..ca361ae6f1b 100644
--- a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/ui/actions/ShowJarContents.java
+++ b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/ui/actions/ShowJarContents.java
@@ -17,8 +17,8 @@
package samples.ui.actions;
import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.files.ui.actions.SystemAbstractRemoteFilePopupMenuExtensionAction;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.shells.ui.RemoteCommandHelpers;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCmdSubSystem;
diff --git a/rse/examples/org.eclipse.rse.remotecdt/META-INF/MANIFEST.MF b/rse/examples/org.eclipse.rse.remotecdt/META-INF/MANIFEST.MF
index 05edaa08078..36f4e9a012b 100644
--- a/rse/examples/org.eclipse.rse.remotecdt/META-INF/MANIFEST.MF
+++ b/rse/examples/org.eclipse.rse.remotecdt/META-INF/MANIFEST.MF
@@ -15,7 +15,6 @@ Require-Bundle: org.eclipse.core.runtime,
org.eclipse.ui,
org.eclipse.rse.subsystems.shells.dstore,
org.eclipse.rse.subsystems.shells.local,
- org.eclipse.rse.core,
org.eclipse.debug.core,
org.eclipse.core.resources,
org.eclipse.cdt.core,
@@ -23,6 +22,7 @@ Require-Bundle: org.eclipse.core.runtime,
org.eclipse.rse.subsystems.shells.core,
org.eclipse.rse.services,
org.eclipse.cdt.debug.core,
- org.eclipse.cdt.debug.mi.ui
+ org.eclipse.cdt.debug.mi.ui,
+ org.eclipse.rse.core
Eclipse-LazyStart: true
Bundle-Vendor: Eclipse.org
diff --git a/rse/examples/org.eclipse.rse.remotecdt/src/org/eclipse/rse/remotecdt/RemoteCMainTab.java b/rse/examples/org.eclipse.rse.remotecdt/src/org/eclipse/rse/remotecdt/RemoteCMainTab.java
index aef78814dc2..b3172c01d2a 100644
--- a/rse/examples/org.eclipse.rse.remotecdt/src/org/eclipse/rse/remotecdt/RemoteCMainTab.java
+++ b/rse/examples/org.eclipse.rse.remotecdt/src/org/eclipse/rse/remotecdt/RemoteCMainTab.java
@@ -19,7 +19,7 @@ import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.rse.model.IHost;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.ui.RSEUIPlugin;
import org.eclipse.rse.ui.actions.SystemNewConnectionAction;
import org.eclipse.swt.SWT;
diff --git a/rse/examples/org.eclipse.rse.remotecdt/src/org/eclipse/rse/remotecdt/RemoteRunLaunchDelegate.java b/rse/examples/org.eclipse.rse.remotecdt/src/org/eclipse/rse/remotecdt/RemoteRunLaunchDelegate.java
index 05f3d730817..e77a1ac769c 100644
--- a/rse/examples/org.eclipse.rse.remotecdt/src/org/eclipse/rse/remotecdt/RemoteRunLaunchDelegate.java
+++ b/rse/examples/org.eclipse.rse.remotecdt/src/org/eclipse/rse/remotecdt/RemoteRunLaunchDelegate.java
@@ -39,7 +39,7 @@ import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.debug.core.model.IProcess;
-import org.eclipse.rse.model.IHost;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.ui.RSEUIPlugin;
diff --git a/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/DStoreConnectorService.java b/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/DStoreConnectorService.java
index cdc82d5367f..3cca538a309 100644
--- a/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/DStoreConnectorService.java
+++ b/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/DStoreConnectorService.java
@@ -48,6 +48,8 @@ import org.eclipse.rse.core.RSECorePlugin;
import org.eclipse.rse.core.SystemBasePlugin;
import org.eclipse.rse.core.comm.ISystemKeystoreProvider;
import org.eclipse.rse.core.comm.SystemKeystoreProviderManager;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.SystemSignonInformation;
import org.eclipse.rse.core.subsystems.AbstractConnectorService;
import org.eclipse.rse.core.subsystems.CommunicationsEvent;
import org.eclipse.rse.core.subsystems.IRemoteServerLauncher;
@@ -56,8 +58,6 @@ import org.eclipse.rse.core.subsystems.IServerLauncherProperties;
import org.eclipse.rse.core.subsystems.ServerLaunchType;
import org.eclipse.rse.core.subsystems.SubSystem;
import org.eclipse.rse.dstore.universal.miners.environment.EnvironmentMiner;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.SystemSignonInformation;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
import org.eclipse.rse.ui.ISystemMessages;
diff --git a/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/DStoreConnectorServiceManager.java b/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/DStoreConnectorServiceManager.java
index 14d42ea474c..8861f7cae0e 100644
--- a/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/DStoreConnectorServiceManager.java
+++ b/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/DStoreConnectorServiceManager.java
@@ -15,10 +15,10 @@
********************************************************************************/
package org.eclipse.rse.connectorservice.dstore;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.model.IHost;
diff --git a/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/RexecDstoreServer.java b/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/RexecDstoreServer.java
index 3550a439ca1..521336d74f0 100644
--- a/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/RexecDstoreServer.java
+++ b/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/RexecDstoreServer.java
@@ -25,10 +25,10 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.dstore.core.client.ClientConnection;
import org.eclipse.dstore.core.client.ConnectionStatus;
import org.eclipse.rse.core.SystemBasePlugin;
+import org.eclipse.rse.core.model.SystemSignonInformation;
import org.eclipse.rse.core.subsystems.IRemoteServerLauncher;
import org.eclipse.rse.core.subsystems.IServerLauncher;
import org.eclipse.rse.core.subsystems.IServerLauncherProperties;
-import org.eclipse.rse.model.SystemSignonInformation;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
import org.eclipse.rse.ui.ISystemMessages;
import org.eclipse.rse.ui.RSEUIPlugin;
diff --git a/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/util/ConnectionStatusListener.java b/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/util/ConnectionStatusListener.java
index 4c7f7a5b70f..3f2baee2e63 100644
--- a/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/util/ConnectionStatusListener.java
+++ b/rse/plugins/org.eclipse.rse.connectorservice.dstore/src/org/eclipse/rse/connectorservice/dstore/util/ConnectionStatusListener.java
@@ -26,9 +26,9 @@ import org.eclipse.jface.dialogs.ProgressMonitorDialog;
import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.rse.core.SystemBasePlugin;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.SubSystemConfiguration;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
import org.eclipse.rse.ui.ISystemMessages;
import org.eclipse.rse.ui.RSEUIPlugin;
diff --git a/rse/plugins/org.eclipse.rse.connectorservice.ssh/src/org/eclipse/rse/connectorservice/ssh/SshConnectorService.java b/rse/plugins/org.eclipse.rse.connectorservice.ssh/src/org/eclipse/rse/connectorservice/ssh/SshConnectorService.java
index 851aaf8197a..72088914e3f 100644
--- a/rse/plugins/org.eclipse.rse.connectorservice.ssh/src/org/eclipse/rse/connectorservice/ssh/SshConnectorService.java
+++ b/rse/plugins/org.eclipse.rse.connectorservice.ssh/src/org/eclipse/rse/connectorservice/ssh/SshConnectorService.java
@@ -50,13 +50,13 @@ import com.jcraft.jsch.UIKeyboardInteractive;
import com.jcraft.jsch.UserInfo;
import org.eclipse.rse.core.SystemBasePlugin;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.ISystemRegistry;
+import org.eclipse.rse.core.model.SystemSignonInformation;
import org.eclipse.rse.core.subsystems.AbstractConnectorService;
import org.eclipse.rse.core.subsystems.CommunicationsEvent;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.SubSystemConfiguration;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemRegistry;
-import org.eclipse.rse.model.SystemSignonInformation;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
import org.eclipse.rse.services.ssh.ISshSessionProvider;
import org.eclipse.rse.ui.ISystemMessages;
diff --git a/rse/plugins/org.eclipse.rse.connectorservice.ssh/src/org/eclipse/rse/connectorservice/ssh/SshConnectorServiceManager.java b/rse/plugins/org.eclipse.rse.connectorservice.ssh/src/org/eclipse/rse/connectorservice/ssh/SshConnectorServiceManager.java
index 4efced53a11..140763f1478 100644
--- a/rse/plugins/org.eclipse.rse.connectorservice.ssh/src/org/eclipse/rse/connectorservice/ssh/SshConnectorServiceManager.java
+++ b/rse/plugins/org.eclipse.rse.connectorservice.ssh/src/org/eclipse/rse/connectorservice/ssh/SshConnectorServiceManager.java
@@ -16,10 +16,10 @@
package org.eclipse.rse.connectorservice.ssh;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.model.IHost;
/**
* ConnectorService manager class.
diff --git a/rse/plugins/org.eclipse.rse.core/.classpath b/rse/plugins/org.eclipse.rse.core/.classpath
index 751c8f2e504..d4da92faf8a 100644
--- a/rse/plugins/org.eclipse.rse.core/.classpath
+++ b/rse/plugins/org.eclipse.rse.core/.classpath
@@ -3,5 +3,6 @@
* If the meaning of the 'Nested Filters' containment reference list isn't clear, @@ -490,14 +490,14 @@ public interface ISystemFilter extends IRSEReferencedObject, ISystemFilterContai * * @return the value of the 'Nested Filters' containment reference list. * @see org.eclipse.rse.filters.FiltersPackage#getSystemFilter_NestedFilters() - * @see org.eclipse.rse.filters.ISystemFilter#getParentFilter + * @see org.eclipse.rse.core.filters.ISystemFilter#getParentFilter * @generated */ java.util.List getNestedFilters(); /** * Returns the value of the 'Parent Filter' container reference. - * It is bidirectional and its opposite is '{@link org.eclipse.rse.filters.ISystemFilter#getNestedFilters Nested Filters}'. + * It is bidirectional and its opposite is '{@link org.eclipse.rse.core.filters.ISystemFilter#getNestedFilters Nested Filters}'. * *
* If the meaning of the 'Parent Filter' container reference isn't clear, @@ -507,14 +507,14 @@ public interface ISystemFilter extends IRSEReferencedObject, ISystemFilterContai * @return the value of the 'Parent Filter' container reference. * @see #setParentFilter(ISystemFilter) * @see org.eclipse.rse.filters.FiltersPackage#getSystemFilter_ParentFilter() - * @see org.eclipse.rse.filters.ISystemFilter#getNestedFilters + * @see org.eclipse.rse.core.filters.ISystemFilter#getNestedFilters * @model opposite="nestedFilters" * @generated */ ISystemFilter getParentFilter(); /** - * Sets the value of the '{@link org.eclipse.rse.filters.ISystemFilter#getParentFilter Parent Filter}' container reference. + * Sets the value of the '{@link org.eclipse.rse.core.filters.ISystemFilter#getParentFilter Parent Filter}' container reference. * * * @param value the new value of the 'Parent Filter' container reference. @@ -525,7 +525,7 @@ public interface ISystemFilter extends IRSEReferencedObject, ISystemFilterContai /** * Returns the value of the 'Strings' containment reference list. - * The list contents are of type {@link org.eclipse.rse.filters.ISystemFilterString}. + * The list contents are of type {@link org.eclipse.rse.core.filters.ISystemFilterString}. * *
* If the meaning of the 'Strings' containment reference list isn't clear, diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterConstants.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterConstants.java similarity index 97% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterConstants.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterConstants.java index d5477da716a..ac053e31081 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterConstants.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterConstants.java @@ -14,7 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; /** * Constants used throughout filters framework. */ diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterContainer.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterContainer.java similarity index 99% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterContainer.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterContainer.java index 8925828d67e..52f177913ef 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterContainer.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterContainer.java @@ -14,7 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; // import java.util.Vector; diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterContainerReference.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterContainerReference.java similarity index 98% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterContainerReference.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterContainerReference.java index b5a0b8cdbe3..b35e8fb7e92 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterContainerReference.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterContainerReference.java @@ -14,10 +14,11 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; import org.eclipse.rse.core.subsystems.ISubSystem; + /** * Both SystemFilter and SystemFilterPool contain filters, so the * common methods for filters are abstracted out in SystemFilterContainer, diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPool.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPool.java similarity index 91% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPool.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPool.java index 423220c5289..8751c6c7741 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPool.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPool.java @@ -14,8 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; -import org.eclipse.rse.core.filters.IRSEFilterNamingPolicy; +package org.eclipse.rse.core.filters; import org.eclipse.rse.core.model.IRSEModelObject; import org.eclipse.rse.core.references.IRSEPersistableReferencedObject; @@ -255,7 +254,7 @@ public interface ISystemFilterPool extends IRSEPersistableReferencedObject, ISys boolean isSingleFilterStringOnly(); /** - * Sets the value of the '{@link org.eclipse.rse.filters.ISystemFilterPool#isSingleFilterStringOnly Single Filter String Only}' attribute. + * Sets the value of the '{@link org.eclipse.rse.core.filters.ISystemFilterPool#isSingleFilterStringOnly Single Filter String Only}' attribute. * * * @param value the new value of the 'Single Filter String Only' attribute. @@ -267,7 +266,7 @@ public interface ISystemFilterPool extends IRSEPersistableReferencedObject, ISys void setSingleFilterStringOnly(boolean value); /** - * Unsets the value of the '{@link org.eclipse.rse.filters.ISystemFilterPool#isSingleFilterStringOnly Single Filter String Only}' attribute. + * Unsets the value of the '{@link org.eclipse.rse.core.filters.ISystemFilterPool#isSingleFilterStringOnly Single Filter String Only}' attribute. * * * @see #isSetSingleFilterStringOnly() @@ -278,7 +277,7 @@ public interface ISystemFilterPool extends IRSEPersistableReferencedObject, ISys void unsetSingleFilterStringOnly(); /** - * Returns whether the value of the '{@link org.eclipse.rse.filters.ISystemFilterPool#isSingleFilterStringOnly Single Filter String Only}' attribute is set. + * Returns whether the value of the '{@link org.eclipse.rse.core.filters.ISystemFilterPool#isSingleFilterStringOnly Single Filter String Only}' attribute is set. * * * @return whether the value of the 'Single Filter String Only' attribute is set. @@ -306,7 +305,7 @@ public interface ISystemFilterPool extends IRSEPersistableReferencedObject, ISys String getOwningParentName(); /** - * Sets the value of the '{@link org.eclipse.rse.filters.ISystemFilterPool#getOwningParentName Owning Parent Name}' attribute. + * Sets the value of the '{@link org.eclipse.rse.core.filters.ISystemFilterPool#getOwningParentName Owning Parent Name}' attribute. * * * @param value the new value of the 'Owning Parent Name' attribute. @@ -332,7 +331,7 @@ public interface ISystemFilterPool extends IRSEPersistableReferencedObject, ISys boolean isNonRenamable(); /** - * Sets the value of the '{@link org.eclipse.rse.filters.ISystemFilterPool#isNonRenamable Non Renamable}' attribute. + * Sets the value of the '{@link org.eclipse.rse.core.filters.ISystemFilterPool#isNonRenamable Non Renamable}' attribute. * * * @param value the new value of the 'Non Renamable' attribute. @@ -341,4 +340,9 @@ public interface ISystemFilterPool extends IRSEPersistableReferencedObject, ISys */ void setNonRenamable(boolean value); + public ISystemFilterPool createSystemFilterPool( + String name, + boolean allowNestedFilters, + boolean isDeletable, + boolean tryToRestore); } \ No newline at end of file diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolManager.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolManager.java similarity index 99% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolManager.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolManager.java index 906f6d5fd07..617c2da5622 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolManager.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolManager.java @@ -14,11 +14,11 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; import java.util.Vector; +import org.eclipse.rse.core.model.ISystemProfile; import org.eclipse.rse.core.persistance.IRSEPersistableContainer; -import org.eclipse.rse.model.ISystemProfile; @@ -622,7 +622,7 @@ public interface ISystemFilterPoolManager extends IRSEPersistableContainer boolean isSingleFilterStringOnly(); /** - * Sets the value of the '{@link org.eclipse.rse.filters.ISystemFilterPoolManager#isSingleFilterStringOnly Single Filter String Only}' attribute. + * Sets the value of the '{@link org.eclipse.rse.core.filters.ISystemFilterPoolManager#isSingleFilterStringOnly Single Filter String Only}' attribute. * * * @param value the new value of the 'Single Filter String Only' attribute. diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolManagerProvider.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolManagerProvider.java similarity index 99% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolManagerProvider.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolManagerProvider.java index 24847141973..75687b87f89 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolManagerProvider.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolManagerProvider.java @@ -14,7 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; import org.eclipse.core.runtime.IAdaptable; /** diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolReference.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolReference.java similarity index 98% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolReference.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolReference.java index 420c41922ce..88b071fb51f 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolReference.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolReference.java @@ -14,7 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; import org.eclipse.rse.core.model.IRSEModelObject; import org.eclipse.rse.core.references.IRSEPersistableReferencingObject; diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolReferenceManager.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolReferenceManager.java similarity index 99% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolReferenceManager.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolReferenceManager.java index 44439a66f62..852a9ec1410 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolReferenceManager.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolReferenceManager.java @@ -14,7 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; import java.util.Vector; diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolReferenceManagerProvider.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolReferenceManagerProvider.java similarity index 99% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolReferenceManagerProvider.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolReferenceManagerProvider.java index ab53e8b9787..4c99e41e31a 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolReferenceManagerProvider.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolReferenceManagerProvider.java @@ -14,7 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; /** * An interface for classes that instantiate SystemFilterPoolReferenceManager objects. * This is the "caller" and as is recorded and recoverable from any object within diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolSelectionValidator.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolSelectionValidator.java similarity index 97% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolSelectionValidator.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolSelectionValidator.java index 4ca0e68520d..07c78d228d3 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolSelectionValidator.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolSelectionValidator.java @@ -14,7 +14,8 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; + import org.eclipse.rse.services.clientserver.messages.SystemMessage; /** diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolWrapper.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolWrapper.java similarity index 97% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolWrapper.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolWrapper.java index 1b123842e82..0129a744847 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolWrapper.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolWrapper.java @@ -14,7 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; /** * The system filter wizard allows callers to pass a list of wrapper objects * for the user to select a filter pool diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolWrapperInformation.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolWrapperInformation.java similarity index 98% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolWrapperInformation.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolWrapperInformation.java index d450dad2648..f0cdf3983bb 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterPoolWrapperInformation.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterPoolWrapperInformation.java @@ -14,7 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; /** * The system filter wizard allows callers to pass a list of wrapper objects * for the user to select a filter pool. Effectively, this prompting for diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterReference.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterReference.java similarity index 98% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterReference.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterReference.java index ce0f108a03b..57638d11648 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterReference.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterReference.java @@ -14,7 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; import org.eclipse.rse.core.model.ISystemContainer; import org.eclipse.rse.core.model.ISystemContentsType; import org.eclipse.rse.core.references.IRSEReferencingObject; diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterSavePolicies.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterSavePolicies.java similarity index 98% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterSavePolicies.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterSavePolicies.java index 87c215218ca..60c8e14399b 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterSavePolicies.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterSavePolicies.java @@ -14,7 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; /** * A save policy dictates how filter framework artifacts are persisted to disk. */ diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterStartHere.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterStartHere.java new file mode 100644 index 00000000000..7f710c37f2c --- /dev/null +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterStartHere.java @@ -0,0 +1,57 @@ +package org.eclipse.rse.core.filters; + +import org.eclipse.rse.core.model.ISystemProfile; +import org.eclipse.rse.logging.Logger; + +public interface ISystemFilterStartHere { + + /** + * Factory method to return an instance populated with defaults. + * You can then simply override whatever is desired via setXXX methods. + */ + public IRSEFilterNamingPolicy createSystemFilterNamingPolicy(); + + + /** + * Factory to create a filter pool manager, when you do NOT want it to worry about + * saving and restoring the filter data to disk. Rather, you will save and restore + * yourself. + * @param logger A logging object into which to log errors as they happen in the framework + * @param caller Objects which instantiate this class should implement the + * SystemFilterPoolManagerProvider interface, and pass "this" for this parameter. + * Given any filter framework object, it is possible to retrieve the caller's + * object via the getProvider method call. + * @param name the name of the filter pool manager. Not currently used but you may + * find a use for it. + * @param allowNestedFilters true if filters inside filter pools in this manager are + * to allow nested filters. This is the default, but can be overridden at the + * individual filter pool level. + */ + public ISystemFilterPoolManager + createSystemFilterPoolManager(ISystemProfile profile, + Logger logger, + ISystemFilterPoolManagerProvider caller, + String name, + boolean allowNestedFilters); + + + + /** + * Create a SystemFilterPoolReferenceManager instance, when you do NOT want it + * to be saved and restored to its own file. Rather, you will save and restore it + * yourself. + * @param caller Objects which instantiate this class should implement the + * SystemFilterPoolReferenceManagerProvider interface, and pass "this" for this parameter. + * Given any filter framework object, it is possible to retrieve the caller's + * object via the getProvider method call. + * @param relatedPoolManagers The managers that own the master list of filter pools that + * this manager will contain references to. + * @param name the name of the filter pool reference manager. This is not currently + * used, but you may find a use for it. + * @param namingPolicy the naming policy object which will return the name of that one file. + */ + public ISystemFilterPoolReferenceManager createSystemFilterPoolReferenceManager( + ISystemFilterPoolReferenceManagerProvider caller, + ISystemFilterPoolManagerProvider relatedPoolMgrProvider, + String name, IRSEFilterNamingPolicy namingPolicy); +} diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterString.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterString.java similarity index 99% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterString.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterString.java index 03b6a9a5f0d..25272c163e5 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterString.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterString.java @@ -14,7 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.rse.core.model.IRSEModelObject; diff --git a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterStringReference.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterStringReference.java similarity index 98% rename from rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterStringReference.java rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterStringReference.java index ab659a71cbd..505692b591e 100644 --- a/rse/plugins/org.eclipse.rse.ui/filters/org/eclipse/rse/filters/ISystemFilterStringReference.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/ISystemFilterStringReference.java @@ -14,7 +14,7 @@ * {Name} (company) - description of contribution. ********************************************************************************/ -package org.eclipse.rse.filters; +package org.eclipse.rse.core.filters; import org.eclipse.rse.core.references.IRSEBaseReferencingObject; /** diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/SystemFilterNamingPolicy.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/SystemFilterNamingPolicy.java new file mode 100644 index 00000000000..2f18505863d --- /dev/null +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/SystemFilterNamingPolicy.java @@ -0,0 +1,148 @@ +/******************************************************************************** + * Copyright (c) 2002, 2006 IBM Corporation. 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 + * + * Initial Contributors: + * The following IBM employees contributed to the Remote System Explorer + * component that contains this file: David McKnight, Kushal Munir, + * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson, + * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. + * + * Contributors: + * {Name} (company) - description of contribution. + ********************************************************************************/ + +package org.eclipse.rse.core.filters; +/** + * A naming policy so tool writers can override defaults used when + * saving filter data to disk. + *
+ * Subclass this and override what you wish to change. + */ +public class SystemFilterNamingPolicy implements IRSEFilterNamingPolicy, ISystemFilterConstants +{ + + protected String managerFileNamePrefix, poolFolderNamePrefix, poolFolderNameSuffix, + poolFileNamePrefix, filterFileNamePrefix, + referenceManagerFileNamePrefix; + /** + * Default prefix for filter pool manager persisted file: "filterPools_" + */ + public static final String DEFAULT_FILENAME_PREFIX_FILTERPOOLMANAGER = "filterPools_"; + /** + * Default prefix for filter pool reference manager persisted file: "filterPoolRefs_" + */ + public static final String DEFAULT_FILENAME_PREFIX_FILTERPOOLREFERENCEMANAGER = "filterPoolRefs_"; + /** + * Default prefix for filter pool persisted file: "filterPool_" + */ + public static final String DEFAULT_FILENAME_PREFIX_FILTERPOOL = "filterPool_"; + /** + * Default prefix for filter persisted file: "filter_" + */ + public static final String DEFAULT_FILENAME_PREFIX_FILTER = "filter_"; + /** + * Default prefix for filter pool folder: "FilterPool_" + */ + public static final String DEFAULT_FOLDERNAME_PREFIX_FILTERPOOL = "FilterPool_"; + + + /** + * Factory method to return an instance populated with defaults. + * Can then simply override whatever is desired. + */ + public static IRSEFilterNamingPolicy getNamingPolicy() + { + return new SystemFilterNamingPolicy(); + } + + /** + * Constructor for SystemFilterNamingPolicyImpl + */ + public SystemFilterNamingPolicy() + { + super(); + } + + /** + * Get the unqualified save file name for the given SystemFilterPoolManager object. + * Do NOT include the extension, as .xmi will be added. + *
+ * Returns "filterPools_"+managerName by default. + */ + public String getManagerSaveFileName(String managerName) + { + return DEFAULT_FILENAME_PREFIX_FILTERPOOLMANAGER+managerName; + } + /** + * Get the unqualified save file name for the given SystemFilterPoolReferenceManager object. + * Do NOT include the extension, as .xmi will be added. + *
+ * Returns "filterPoolRefs_"+managerName by default. + */ + public String getReferenceManagerSaveFileName(String managerName) + { + return DEFAULT_FILENAME_PREFIX_FILTERPOOLREFERENCEMANAGER+managerName; + } + /** + * Get the unqualified save file name for the given SystemFilterPool object. + * Do NOT include the extension, as .xmi will be added. + *
+ * Returns getFilterPoolSaveFileNamePrefix()+poolName by default. + */ + public String getFilterPoolSaveFileName(String poolName) + { + return getFilterPoolSaveFileNamePrefix()+poolName; + } + /** + * Get the file name prefix for all pool files. + * Used to deduce the saved pools by examining the file system + *
+ * By default returns "filterPool_" + */ + public String getFilterPoolSaveFileNamePrefix() + { + return DEFAULT_FILENAME_PREFIX_FILTERPOOL; + } + /** + * Get the folder name for the given SystemFilterPool object. + *
+ * Returns getFilterPoolFolderNamePrefix()+poolName by default. + */ + public String getFilterPoolFolderName(String poolName) + { + return getFilterPoolFolderNamePrefix()+poolName; + } + /** + * Get the folder name prefix for all pool folders. + * Used to deduce the saved pools by examining the file system + *
+ * By default returns "FilterPool_" + */ + public String getFilterPoolFolderNamePrefix() + { + return DEFAULT_FOLDERNAME_PREFIX_FILTERPOOL; + } + /** + * Get the unqualified save file name for the given SystemFilter object. + * Do NOT include the extension, as .xmi will be added. + *
+ * Returns getFilterSaveFileNamePrefix()+filterName by default. + */ + public String getFilterSaveFileName(String filterName) + { + return getFilterSaveFileNamePrefix()+filterName; + } + /** + * Get the file name prefix for all filter files. + * Used to deduce the saved filters by examining the file system + *
+ * Returns "Filter_" by default. + */ + public String getFilterSaveFileNamePrefix() + { + return DEFAULT_FILENAME_PREFIX_FILTER; + } +} \ No newline at end of file diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/SystemFilterPoolManager.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/SystemFilterPoolManager.java new file mode 100644 index 00000000000..e5c53cd4e0f --- /dev/null +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/filters/SystemFilterPoolManager.java @@ -0,0 +1,1962 @@ +/******************************************************************************** + * Copyright (c) 2002, 2006 IBM Corporation. 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 + * + * Initial Contributors: + * The following IBM employees contributed to the Remote System Explorer + * component that contains this file: David McKnight, Kushal Munir, + * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson, + * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. + * + * Contributors: + * {Name} (company) - description of contribution. + ********************************************************************************/ + +package org.eclipse.rse.core.filters; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.Vector; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IFolder; +import org.eclipse.rse.core.RSECorePlugin; +import org.eclipse.rse.core.model.ISystemProfile; +import org.eclipse.rse.core.model.ISystemRegistry; +import org.eclipse.rse.core.references.IRSEBaseReferencingObject; +import org.eclipse.rse.logging.Logger; +import org.eclipse.rse.persistence.IRSEPersistenceManager; + + +// +// + +/** + * A filter pool manager manages filter pools. + *
+ * Each filter pool that is managed becomes a folder on disk. + *
+ * To create a filter pool manager instance, use the factory method + * in SystemFilterPoolManagerImpl in the ...impl package. + * You must pass a folder that represents the anchor point for the + * pools managed by this manager instance. + *
+ * Depending on your tools' needs, you have four choices about how + * the filter pools and filters are persisted to disk. The decision is + * made at the time you instantiate the pool manager and is one of the + * following constants from the SystemFilterConstants interface: + *
+ * With the policy of one file per pool, there are two possibilities regarding + * the folder structure: + *
+ * With the policy of one file per filter, each filter pool must have its own folder. + *
+ * With an instantiated filter pool manager (most tools will only need + * one such instance), you now simply call its methods to work with + * filter pools. For example, use it to: + *
+ * Further, this is the front door for working with filters too. By forcing all + * filter related activity through a single point like this, we can ensure that + * all changes are saved to disk, and events are fired properly. + *
+ * The filter framework logs to a {@link org.eclipse.rse.logging.Logger Logger} file. + * By default the log in the org.eclipse.rse.core plugin is used, but you can change this + * by calling {@link #setLogger(org.eclipse.rse.logging.Logger)}. + */ +/** + * @lastgen class SystemFilterPoolManagerImpl Impl implements SystemFilterPoolManager {} + */ +public class SystemFilterPoolManager implements ISystemFilterPoolManager +{ + private ISystemFilterPool[] poolArray = null; // cache for performance + private ISystemFilterPoolManagerProvider caller = null; + private Object poolMgrData; + private Vector poolNames; + private boolean initialized = false; + + private boolean suspendCallbacks = false; + private boolean suspendSave = false; + private Logger logger = null; + private ISystemProfile _profile; + + // persistence + protected boolean _isDirty = true; + private boolean _wasRestored = false; + + public static boolean debug = true; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + + protected String name = NAME_EDEFAULT; + /** + * The default value of the '{@link #isSupportsNestedFilters() Supports Nested Filters}' attribute. + * + * + * @see #isSupportsNestedFilters() + * @generated + * @ordered + */ + protected static final boolean SUPPORTS_NESTED_FILTERS_EDEFAULT = false; + + /** + * @generated This field/method will be replaced during code generation. + */ + protected boolean supportsNestedFilters = SUPPORTS_NESTED_FILTERS_EDEFAULT; + /** + * The default value of the '{@link #isStringsCaseSensitive() Strings Case Sensitive}' attribute. + * + * + * @see #isStringsCaseSensitive() + * @generated + * @ordered + */ + protected static final boolean STRINGS_CASE_SENSITIVE_EDEFAULT = false; + + /** + * @generated This field/method will be replaced during code generation. + */ + protected boolean stringsCaseSensitive = STRINGS_CASE_SENSITIVE_EDEFAULT; + /** + * The default value of the '{@link #isSupportsDuplicateFilterStrings() Supports Duplicate Filter Strings}' attribute. + * + * + * @see #isSupportsDuplicateFilterStrings() + * @generated + * @ordered + */ + protected static final boolean SUPPORTS_DUPLICATE_FILTER_STRINGS_EDEFAULT = false; + + /** + * @generated This field/method will be replaced during code generation. + */ + protected boolean supportsDuplicateFilterStrings = SUPPORTS_DUPLICATE_FILTER_STRINGS_EDEFAULT; + /** + * This is true if the Supports Duplicate Filter Strings attribute has been set. + * + * + * @generated + * @ordered + */ + protected boolean supportsDuplicateFilterStringsESet = false; + + /** + * The default value of the '{@link #isSingleFilterStringOnly() Single Filter String Only}' attribute. + * + * + * @see #isSingleFilterStringOnly() + * @generated + * @ordered + */ + protected static final boolean SINGLE_FILTER_STRING_ONLY_EDEFAULT = false; + + /** + * The cached value of the '{@link #isSingleFilterStringOnly() Single Filter String Only}' attribute. + * + * + * @see #isSingleFilterStringOnly() + * @generated + * @ordered + */ + protected boolean singleFilterStringOnly = SINGLE_FILTER_STRING_ONLY_EDEFAULT; + + /** + * @generated This field/method will be replaced during code generation. + */ + protected java.util.List pools = null; + + + /** + * Constructor + */ + protected SystemFilterPoolManager(ISystemProfile profile) + { + super(); + _profile = profile; + } + + public ISystemProfile getSystemProfile() + { + return _profile; + } + + /** + * Factory to create a filter pool manager. + * @param logger A logging object into which to log errors as they happen in the framework + * @param caller Objects which instantiate this class should implement the + * SystemFilterPoolManagerProvider interface, and pass "this" for this parameter. + * Given any filter framework object, it is possible to retrieve the caller's + * object via the getProvider method call. + * @param mgrFolder the folder that will be the manager folder. This is + * the parent of the filter pool folders the manager folder will hold, or the single + * xmi file for the save policy of one file per manager. This folder will be created + * if it does not already exist. + * @param name the name of the filter pool manager. Typically this is also the name + * of the given folder, but this is not required. For the save policy of one file + * per manager, the name of the file is derived from this. For other save policies, + * the name is not used. + * @param allowNestedFilters true if filters inside filter pools in this manager are + * to allow nested filters. This is the default, but can be overridden at the + * individual filter pool level. + * @param savePolicy The save policy for the filter pools and filters. One of the + * following constants from the + * {@link org.eclipse.rse.core.filters.ISystemFilterConstants SystemFilterConstants} interface: + *
+ * Does the following: + *
+ * Does the following: + *
+ * Does the following: + *
+ * A filter's type is an arbitrary string that is not interpreted or used by the base framework. This + * is for use entirely by tools who wish to support multiple types of filters and be able to launch unique + * actions per type, say. + * + * @param parent The parent which is either a SystemFilterPool or a SystemFilter + * @param aliasName The name to give the new filter. Must be unique for this pool. + * @param filterStrings The list of String objects that represent the filter strings. + * @param type The type of this filter + */ + public ISystemFilter createSystemFilter(ISystemFilterContainer parent, + String aliasName, Vector filterStrings, String type) + throws Exception + { + boolean oldSuspendSave = suspendSave; + boolean oldSuspendCallbacks = suspendCallbacks; + suspendSave = true; + suspendCallbacks = true; + + ISystemFilter newFilter = createSystemFilter(parent, aliasName, filterStrings); + newFilter.setType(type); + + suspendSave = oldSuspendSave; + suspendCallbacks = oldSuspendCallbacks; + + if (!suspendSave) + { + ISystemFilterPool parentPool = null; + if (parent instanceof ISystemFilterPool) + parentPool = (ISystemFilterPool)parent; + else + parentPool = ((ISystemFilter)parent).getParentFilterPool(); + commit(parentPool); + } + // if caller provider, callback to inform them of this event + if ((caller != null) && !suspendCallbacks) + caller.filterEventFilterCreated(newFilter); + return newFilter; + } + /** + * Creates a new system filter that is typed and promptable + * Same as {@link #createSystemFilter(ISystemFilterContainer, String ,Vector, String)} but + * takes a boolean indicating if it is promptable. + *
+ * A promptable filter is one in which the user is prompted for information at expand time. + * There is no base filter framework support for this, but tools can query this attribute and + * do their own thing at expand time. + * + * @param parent The parent which is either a SystemFilterPool or a SystemFilter + * @param aliasName The name to give the new filter. Must be unique for this pool. + * @param filterStrings The list of String objects that represent the filter strings. + * @param type The type of this filter + * @param promptable Pass true if this is a promptable filter + */ + public ISystemFilter createSystemFilter(ISystemFilterContainer parent, + String aliasName, Vector filterStrings, String type, boolean promptable) + throws Exception + { + boolean oldSuspendSave = suspendSave; + boolean oldSuspendCallbacks = suspendCallbacks; + suspendSave = true; + suspendCallbacks = true; + + ISystemFilter newFilter = createSystemFilter(parent, aliasName, filterStrings, type); + newFilter.setPromptable(promptable); + + suspendSave = oldSuspendSave; + suspendCallbacks = oldSuspendCallbacks; + + if (!suspendSave) + { + ISystemFilterPool parentPool = null; + if (parent instanceof ISystemFilterPool) + parentPool = (ISystemFilterPool)parent; + else + parentPool = ((ISystemFilter)parent).getParentFilterPool(); + commit(parentPool); + } + // if caller provider, callback to inform them of this event + if ((caller != null) && !suspendCallbacks) + caller.filterEventFilterCreated(newFilter); + return newFilter; + } + + /** + * Delete an existing system filter. + * Does the following: + *
+ * Does the following: + *
+ * Does the following: + *
+ * A filter's type is an arbitrary string that is not interpreted or used by the base framework. This
+ * is for use entirely by tools who wish to support multiple types of filters and be able to launch unique
+ * actions per type, say.
+ * @param parent The parent which is either a SystemFilterPool or a SystemFilter
+ * @param type The type of this filter
+ */
+ public void setSystemFilterType(ISystemFilter filter, String newType)
+ throws Exception
+ {
+ filter.setType(newType);
+ commit(filter.getParentFilterPool());
+ }
+
+ /**
+ * Copy a system filter to a pool in this or another filter manager.
+ */
+ public ISystemFilter copySystemFilter(ISystemFilterPool targetPool, ISystemFilter oldFilter, String newName)
+ throws Exception
+ {
+ ISystemFilterPoolManager targetMgr = targetPool.getSystemFilterPoolManager();
+ ISystemFilterPool oldPool = oldFilter.getParentFilterPool();
+
+ targetMgr.suspendCallbacks(true);
+
+ ISystemFilter newFilter = oldPool.copySystemFilter(targetPool, oldFilter, newName); // creates it in memory
+ commit(targetPool); // save updated pool to disk
+
+ targetMgr.suspendCallbacks(false);
+
+ targetMgr.getProvider().filterEventFilterCreated(newFilter);
+ return newFilter;
+ }
+ /**
+ * Move a system filter to a pool in this or another filter manager.
+ * Does this by first copying the filter, and only if successful, deleting the old copy.
+ */
+ public ISystemFilter moveSystemFilter(ISystemFilterPool targetPool, ISystemFilter oldFilter, String newName)
+ throws Exception
+ {
+ ISystemFilter newFilter = copySystemFilter(targetPool, oldFilter, newName);
+ if (newFilter != null)
+ {
+ deleteSystemFilter(oldFilter);
+ }
+ return newFilter;
+ }
+
+ /**
+ * Return the zero-based position of a SystemFilter object within its container
+ */
+ public int getSystemFilterPosition(ISystemFilter filter)
+ {
+ ISystemFilterContainer container = filter.getParentFilterContainer();
+ int position = -1;
+ boolean match = false;
+ ISystemFilter[] filters = container.getSystemFilters();
+
+ for (int idx = 0; !match && (idx
+ * Does the following:
+ *
+ * Called by someone after restore.
+ */
+ public void orderSystemFilters(ISystemFilterPool pool, String[] names) throws Exception
+ {
+ pool.orderSystemFilters(names);
+ commit(pool);
+ }
+
+ // -------------------------------
+ // SYSTEM FILTER STRING METHODS...
+ // -------------------------------
+ /**
+ * Append a new filter string to the given filter's list
+ *
+ * Does the following:
+ *
+ * Does the following:
+ *
+ * Does the following:
+ *
+ * Does the following:
+ *
+ * Does the following:
+ *
+ * Does the following:
+ *
+ * Does the following:
+ *
+ */
+/**
+ * @lastgen interface SystemConnection {}
+ */
+public interface IHost extends IRSEModelObject
+{
+ /**
+ * Return the system profile that owns this connection
+ */
+ public ISystemProfile getSystemProfile();
+
+ /**
+ * Return the name of the system profile that owns this connection
+ */
+ public String getSystemProfileName();
+
+ /**
+ * Set the parent connection pool this is owned by.
+ * Connection pools are internal management objects, one per profile.
+ */
+ public void setHostPool(ISystemHostPool pool);
+ /**
+ * Set the parent connection pool this is owned by.
+ * Connection pools are internal management objects, one per profile.
+ */
+ public ISystemHostPool getHostPool();
+
+ /**
+ * Return the subsystem instances under this connection.
+ * Just a shortcut to {@link org.eclipse.rse.model.ISystemRegistry#getSubSystems(IHost)}
+ */
+ public ISubSystem[] getSubSystems();
+
+ /**
+ * Return the local default user Id without resolving up the food chain.
+ * @see #getDefaultUserId()
+ */
+ public String getLocalDefaultUserId();
+ /**
+ * Clear the local default user Id so next query will return the value from
+ * the preference store.
+ *
+ * Same as calling setDefaultUserId(null)
+ * @see #setDefaultUserId(String)
+ */
+ public void clearLocalDefaultUserId();
+
+ /**
+ * Private method called when this connection is being deleted, so
+ * we can do any pre-death cleanup we need.
+ *
+ * What we need to do is delete our entry in the preference store for our default userId.
+ */
+ public void deletingHost();
+
+ /**
+ * Private method called when this connection's profile is being rename, so
+ * we can do any pre-death cleanup we need.
+ *
+ * What we need to do is rename our entry in the preference store for our default userId.
+ */
+ public void renamingSystemProfile(String oldName, String newName);
+ /**
+ * Call this to query whether the default userId is to be uppercased.
+ */
+ public boolean getForceUserIdToUpperCase();
+ /**
+ * Call this to compare two userIds taking case sensitivity
+ */
+ public boolean compareUserIds(String userId1, String userId2);
+/**
+ * @return The value of the SystemType attribute
+ */
+ public String getSystemType();
+
+/**
+ * @param value The new value of the SystemType attribute
+ */
+ public void setSystemType(String value);
+
+/**
+ * @return The value of the AliasName attribute
+ * The unique key for this object. Unique per connection pool
+ */
+ public String getAliasName();
+
+/**
+ * @param value The new value of the AliasName attribute
+ */
+ public void setAliasName(String value);
+
+/**
+ * @return The value of the HostName attribute
+ */
+ public String getHostName();
+
+/**
+ * @param value The new value of the HostName attribute
+ */
+ public void setHostName(String value);
+
+/**
+ * @return The value of the Description attribute
+ */
+ public String getDescription();
+
+/**
+ * @param value The new value of the Description attribute
+ */
+ public void setDescription(String value);
+
+/**
+ * We return the default user Id. Note that we don't store it directly in
+ * the mof-modelled attribute, as we don't want the team to share it. Rather,
+ * we store the actual user Id in the preference store keyed by this connection's
+ * unique name (profile.connName) and store that key in this attribute.
+ *
+ * Further, it is possible that there is no default user id. If so, this
+ * method will go to the preference store and will try to get the default user
+ * Id per this connection's system type.
+ *
+ * This is all transparent to the caller though.
+ *
+ * @return The value of the DefaultUserId attribute
+ */
+ public String getDefaultUserId();
+
+/**
+ * Intercept of setDefaultUserId so we can force it to uppercase.
+ * Also, we do not store the user Id per se in the attribute, but rather
+ * we store it in the preference with a key name unique to this connection.
+ * We store that key name in this attribute. However, this is all transparent to
+ * the caller.
+ * @param value The new value of the DefaultUserId attribute
+ */
+ public void setDefaultUserId(String value);
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @return The value of the Promptable attribute
+ */
+ boolean isPromptable();
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @param value The new value of the Promptable attribute
+ */
+ void setPromptable(boolean value);
+
+ /**
+ * Returns the value of the 'Offline' attribute.
+ *
+ *
+ * Is this connection offline? If so, there is no live connection. Subsystems
+ * decide how much to enable while offline.
+ *
+ * @param conn SystemConnection to be updated
+ * @param systemType system type matching one of the system type names defined via the
+ * systemType extension point.
+ * @param aliasName unique connection name.
+ * @param hostName ip name of host.
+ * @param description optional description of the connection. Can be null.
+ * @param defaultUserId userId to use as the default for the subsystems.
+ * @param defaultUserIdLocation where to set the given default user Id. See ISystemUserIdConstants
+ */
+ public void updateHost(IHost conn, String systemType,
+ String aliasName, String hostName,
+ String description,String defaultUserId, int defaultUserIdLocation)
+ throws Exception;
+
+ /**
+ * Return a connection given its name.
+ */
+ public IHost getHost(String aliasName);
+ /**
+ * Return the connection at the given zero-based offset
+ */
+ public IHost getHost(int pos);
+ /**
+ * Add a new connection to the list.
+ */
+ public boolean addHost(IHost conn);
+ /**
+ * Removes a given connection from the list and deletes it from disk.
+ *
+ * This will:
+ *
+ * @param conn SystemConnection object to remove
+ */
+ public void deleteHost(IHost conn);
+ /**
+ * Renames a given connection in the list.
+ * This will:
+ *
+ *
* To monitor, implement interface {@link org.eclipse.rse.core.model.ISystemModelChangeListener} and
- * call {@link org.eclipse.rse.model.ISystemRegistry#addSystemModelChangeListener(ISystemModelChangeListener)}
- * and in your dispose method, call {@link org.eclipse.rse.model.ISystemRegistry#removeSystemModelChangeListener(ISystemModelChangeListener)}.
+ * call {@link org.eclipse.rse.core.model.ISystemRegistry#addSystemModelChangeListener(ISystemModelChangeListener)}
+ * and in your dispose method, call {@link org.eclipse.rse.core.model.ISystemRegistry#removeSystemModelChangeListener(ISystemModelChangeListener)}.
*
* If you are interesting in firing model change events, see
- * {@link org.eclipse.rse.model.ISystemRegistry#fireModelChangeEvent(int, int, Object, String)}.
+ * {@link org.eclipse.rse.core.model.ISystemRegistry#fireModelChangeEvent(int, int, Object, String)}.
*/
public interface ISystemModelChangeEvents
{
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemModelChangeListener.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemModelChangeListener.java
index 76d26ca50df..cc386898ee4 100644
--- a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemModelChangeListener.java
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemModelChangeListener.java
@@ -15,20 +15,18 @@
********************************************************************************/
package org.eclipse.rse.core.model;
-
-
/**
* Interface that listeners interesting in changes to local resources in the RSE model
* implement, and subsequently register their interest, via SystemRegistry.
*
* If you list any of the resource types defined in {@link org.eclipse.rse.core.model.ISystemModelChangeEvents}
* you should monitor by implementing this interface, and registering with the
- * system registry via {@link org.eclipse.rse.model.ISystemRegistry#addSystemModelChangeListener(ISystemModelChangeListener)}.
+ * system registry via {@link org.eclipse.rse.core.model.ISystemRegistry#addSystemModelChangeListener(ISystemModelChangeListener)}.
* In your view's dispose method, you must also de-register by calling
- * {@link org.eclipse.rse.model.ISystemRegistry#removeSystemModelChangeListener(ISystemModelChangeListener)}.
+ * {@link org.eclipse.rse.core.model.ISystemRegistry#removeSystemModelChangeListener(ISystemModelChangeListener)}.
*
* If you are interesting in firing model change events, see
- * {@link org.eclipse.rse.model.ISystemRegistry#fireModelChangeEvent(int, int, Object, String)}.
+ * {@link org.eclipse.rse.core.model.ISystemRegistry#fireModelChangeEvent(int, int, Object, String)}.
*/
public interface ISystemModelChangeListener
{
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemNewConnectionWizardPage.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemNewConnectionWizardPage.java
new file mode 100644
index 00000000000..27cc60d308d
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemNewConnectionWizardPage.java
@@ -0,0 +1,48 @@
+/********************************************************************************
+ * Copyright (c) 2002, 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.model;
+
+import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
+
+/**
+ * Interface that all subsystem factory supplied pages contributed to the New Connection wizard
+ * must implement.
+ * @see org.eclipse.rse.ui.wizards.AbstractSystemNewConnectionWizardPage
+ * @see org.eclipse.rse.ui.view.SubSystemConfigurationAdapter#getNewConnectionWizardPages(org.eclipse.rse.core.subsystems.ISubSystemConfiguration, org.eclipse.jface.wizard.IWizard)
+ */
+public interface ISystemNewConnectionWizardPage
+{
+
+ /**
+ * This is called when the users presses Finish. All that should be done here is validation
+ * of the input, returning true if all is ok and the finish can proceed.
+ */
+ public boolean performFinish();
+
+ /**
+ * This is called frequently by the framework to decide whether to enable the Finish and
+ * Next buttons.
+ *
+ * Return true if the page is complete and has no errors
+ */
+ public boolean isPageComplete();
+
+ /**
+ * Return the subsystem factory that supplied this page
+ */
+ public ISubSystemConfiguration getSubSystemConfiguration();
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemProfile.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemProfile.java
new file mode 100644
index 00000000000..08b368d53aa
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemProfile.java
@@ -0,0 +1,95 @@
+/********************************************************************************
+ * Copyright (c) 2002, 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.model;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
+import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
+
+//
+
+/**
+ * The interface that RSE system profiles implement.
+ *
+ * A profile represents a user or name which is used to key important user-data
+ * by:
+ *
+ * @lastgen interface SystemProfile {}
+ */
+public interface ISystemProfile extends IRSEModelObject
+{
+
+ /**
+ * Set the in-memory pointer back to the parent system profile manager
+ */
+ public void setProfileManager(ISystemProfileManager mgr);
+ /**
+ * Get the in-memory pointer back to the parent system profile manager
+ */
+ public ISystemProfileManager getProfileManager();
+
+ /**
+ * Convenience method for create a new connection within this profile.
+ * Shortcut for {@link ISystemRegistry#createHost(String,String,String,String)}
+ */
+ public IHost createHost(String systemType, String connectionName, String hostName, String description) throws Exception;
+
+ /**
+ * @return The value of the Name attribute
+ */
+ String getName();
+
+ /**
+ * @param value The new value of the Name attribute
+ */
+ void setName(String value);
+
+ /**
+ * @return The value of the DefaultPrivate attribute
+ * Is this profile created automatically, and is it the profile
+ * that is unique for this developer?
+ */
+ boolean isDefaultPrivate();
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @param value The new value of the DefaultPrivate attribute
+ */
+ void setDefaultPrivate(boolean value);
+
+ /**
+ * Return all connections for this profile
+ */
+ public IHost[] getHosts();
+ /**
+ * Return all filter pools for this profile
+ */
+ public ISystemFilterPool[] getFilterPools();
+ /**
+ * Return all filter pools for this profile, scoped by a given subsystem factory
+ */
+ public ISystemFilterPool[] getFilterPools(ISubSystemConfiguration ssf);
+ /**
+ * Return true if this profile is currently active for this user
+ */
+ public boolean isActive();
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemProfileManager.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemProfileManager.java
new file mode 100644
index 00000000000..ba0031e688e
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemProfileManager.java
@@ -0,0 +1,130 @@
+/********************************************************************************
+ * Copyright (c) 2002, 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.model;
+import java.util.Vector;
+
+
+
+
+/**
+ * A class that manages a list of SystemProfile objects.
+ */
+/**
+ * @lastgen interface SystemProfileManager {}
+ */
+
+public interface ISystemProfileManager {
+
+
+ /**
+ * Create a new profile with the given name, and add to the list.
+ * The name must be unique within the existing list.
+ *
+ * The underlying folder is created in the file system.
+ *
+ * @param name What to name this profile
+ * @param makeActive true if this profile is to be added to the active profile list.
+ * @return new profile, or null if name not unique.
+ */
+ public ISystemProfile createSystemProfile(String name, boolean makeActive);
+ /**
+ * Toggle an existing profile's state between active and inactive
+ */
+ public void makeSystemProfileActive(ISystemProfile profile, boolean makeActive);
+ /**
+ * Get an array of all existing profiles.
+ */
+ public ISystemProfile[] getSystemProfiles();
+ /**
+ * Get an array of all existing profile names.
+ */
+ public String[] getSystemProfileNames();
+ /**
+ * Get a vector of all existing profile names.
+ */
+ public Vector getSystemProfileNamesVector();
+ /**
+ * Get a profile given its name.
+ */
+ public ISystemProfile getSystemProfile(String name);
+ /**
+ * Return the profiles identified via preferences as the active profiles...
+ */
+ public ISystemProfile[] getActiveSystemProfiles();
+ /**
+ * Return the profile names currently selected by the user as his "active" profiles
+ */
+ public String[] getActiveSystemProfileNames();
+ /**
+ * Return 0-based position of the given active profile within the list of active profiles.
+ */
+ public int getActiveSystemProfilePosition(String profileName);
+ /**
+ * Return the default private profile created at first touch.
+ * Will return null if it has been renamed!
+ */
+ public ISystemProfile getDefaultPrivateSystemProfile();
+ /**
+ * Return the default team profile created at first touch.
+ * Will return null if it has been renamed!
+ */
+ public ISystemProfile getDefaultTeamSystemProfile();
+ /**
+ * Rename the given profile.
+ */
+ public void renameSystemProfile(ISystemProfile profile, String newName);
+ /**
+ * Delete the given profile
+ */
+ public void deleteSystemProfile(ISystemProfile profile);
+ /**
+ * Clone the given profile
+ */
+ public ISystemProfile cloneSystemProfile(ISystemProfile profile, String newName);
+ /**
+ * Return true if the given profile is active
+ * @see ISystemProfile#isActive()
+ */
+ public boolean isSystemProfileActive(String profileName);
+
+
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @return The list of Profiles references
+ */
+ java.util.List getProfiles();
+
+
+
+
+// /**
+// * Reusable method to return a name validator for renaming a profile.
+// * @param the current profile name on updates. Can be null for new profiles. Used
+// * to remove from the existing name list the current connection.
+// */
+// public ISystemValidator getProfileNameValidator(String profileName);
+// /**
+// * Reusable method to return a name validator for renaming a profile.
+// * @param the current profile object on updates. Can be null for new profiles. Used
+// * to remove from the existing name list the current connection.
+// */
+// public ISystemValidator getProfileNameValidator(ISystemProfile profile);
+
+
+
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemRegistry.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemRegistry.java
new file mode 100644
index 00000000000..e39ec945d2b
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemRegistry.java
@@ -0,0 +1,687 @@
+/********************************************************************************
+ * Copyright (c) 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.model;
+
+import java.util.List;
+import java.util.Vector;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.jobs.ISchedulingRule;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
+import org.eclipse.rse.core.filters.ISystemFilterStartHere;
+import org.eclipse.rse.core.subsystems.IConnectorService;
+import org.eclipse.rse.core.subsystems.ISubSystem;
+import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
+import org.eclipse.rse.core.subsystems.ISubSystemConfigurationProxy;
+import org.eclipse.swt.dnd.Clipboard;
+import org.eclipse.swt.widgets.Shell;
+
+
+/**
+ * Registry or front door for all remote system connections.
+ * There is a singleton of the class implementation of this interface.
+ * To get it, call the {@link org.eclipse.rse.ui.RSEUIPlugin#getTheSystemRegistry() getTheSystemRegistry}
+ * method in the RSEUIPlugin object.
+ *
+ * The idea here is that connections are grouped by system profile. At any
+ * time, there is a user-specified number of profiles "active" and connections
+ * from each active profile are worked with.
+ */
+public interface ISystemRegistry extends ISchedulingRule
+{
+
+ public ISystemFilterStartHere getSystemFilterStartHere();
+
+ public ISystemFilterPool getSystemFilterPool();
+
+ // ----------------------------------
+ // UI METHODS...
+ // ----------------------------------
+ /**
+ * Show the RSE perspective if it is not already showing
+ */
+ public void showRSEPerspective();
+ /**
+ * Expand the given connection in the RSE, if the RSE is the active perspective.
+ */
+ public void expandHost(IHost conn);
+ /**
+ * Expand the given subsystem in the RSE, if the RSE is the active perspective.
+ */
+ public void expandSubSystem(ISubSystem subsystem);
+
+ // ----------------------------
+ // SUBSYSTEM FACTORY METHODS...
+ // ----------------------------
+ /**
+ * Private method used by RSEUIPlugin to tell registry all registered subsystem
+ * factories. This way, all code can use this registry to access them versus the
+ * RSEUIPlugin.
+ */
+ public void setSubSystemConfigurationProxies(ISubSystemConfigurationProxy[] proxies);
+ /**
+ * Public method to retrieve list of subsystem factory proxies registered by extension points.
+ */
+ public ISubSystemConfigurationProxy[] getSubSystemConfigurationProxies();
+ /**
+ * Return all subsystem factory proxies matching a subsystem factory category.
+ * @see ISubSystemConfigurationCategories
+ */
+ public ISubSystemConfigurationProxy[] getSubSystemConfigurationProxiesByCategory(String factoryCategory);
+ /**
+ * Return all subsystem factories. Be careful when you call this, as it activates all
+ * subsystem factories.
+ */
+ public ISubSystemConfiguration[] getSubSystemConfigurations();
+
+ /**
+ * Return the parent subsystemconfiguration given a subsystem object.
+ */
+ public ISubSystemConfiguration getSubSystemConfiguration(ISubSystem subsystem);
+ /**
+ * Return the subsystemconfiguration, given its plugin.xml-declared id.
+ */
+ public ISubSystemConfiguration getSubSystemConfiguration(String id);
+ /**
+ * Return all subsystem factories which have declared themselves part of the given category.
+ *
+ * This looks for a match on the "category" of the subsystem factory's xml declaration
+ * in its plugin.xml file. Thus, it is effecient as it need not bring to life a
+ * subsystem factory just to test its parent class type.
+ *
+ * @see ISubSystemConfigurationCategories
+ */
+ public ISubSystemConfiguration[] getSubSystemConfigurationsByCategory(String factoryCategory);
+ /**
+ * Return all subsystem factories which support the given system type. If the type is null,
+ * returns all.
+ *
+ */
+ public ISubSystemConfiguration[] getSubSystemConfigurationsBySystemType(String systemType);
+
+ /**
+ * Return all subsystem factories which support the given system type. If the type is null,
+ * returns all.
+ */
+ public ISubSystemConfiguration[] getSubSystemConfigurationsBySystemType(String systemType, boolean filterDuplicateServiceSubSystemFactories);
+
+
+ // ----------------------------
+ // USER PREFERENCE METHODS...
+ // ----------------------------
+ /**
+ * Are connection names to be qualified by profile name?
+ */
+ public boolean getQualifiedHostNames();
+ /**
+ * Set if connection names are to be qualified by profile name
+ */
+ public void setQualifiedHostNames(boolean set);
+ /**
+ * Reflect the user changing the preference for showing filter pools.
+ */
+ public void setShowFilterPools(boolean show);
+ /*
+ * Reflect the user changing the preference for showing filter strings.
+ *
+ public void setShowFilterStrings(boolean show);
+ */
+ /**
+ * Reflect the user changing the preference for showing new connection prompt
+ */
+ public void setShowNewHostPrompt(boolean show);
+
+ // ----------------------------
+ // PROFILE METHODS...
+ // ----------------------------
+ /**
+ * Return singleton profile manager
+ */
+ public ISystemProfileManager getSystemProfileManager();
+ /**
+ * Return the profiles currently selected by the user as his "active" profiles
+ */
+ public ISystemProfile[] getActiveSystemProfiles();
+ /**
+ * Return the profile names currently selected by the user as his "active" profiles
+ */
+ public String[] getActiveSystemProfileNames();
+ /**
+ * Return all defined profiles
+ */
+ public ISystemProfile[] getAllSystemProfiles();
+ /**
+ * Return all defined profile names
+ */
+ public String[] getAllSystemProfileNames();
+ /**
+ * Return all defined profile names as a vector
+ */
+ public Vector getAllSystemProfileNamesVector();
+ /**
+ * Get a SystemProfile given its name
+ */
+ public ISystemProfile getSystemProfile(String profileName);
+ /**
+ * Create a SystemProfile given its name and whether or not to make it active
+ */
+ public ISystemProfile createSystemProfile(String profileName, boolean makeActive)
+ throws Exception;
+ /**
+ * Copy a SystemProfile. All connections connection data is copied.
+ * @param monitor Progress monitor to reflect each step of the operation
+ * @param profile Source profile to copy
+ * @param newName Unique name to give copied profile
+ * @param makeActive whether to make the copied profile active or not
+ * @return new SystemProfile object
+ */
+ public ISystemProfile copySystemProfile(IProgressMonitor monitor, ISystemProfile profile, String newName, boolean makeActive)
+ throws Exception;
+ /**
+ * Rename a SystemProfile. Rename is propogated to all subsystem factories so
+ * they can rename their filter pool managers and whatever else is required.
+ */
+ public void renameSystemProfile(ISystemProfile profile, String newName)
+ throws Exception;
+ /**
+ * Delete a SystemProfile. Prior to physically deleting the profile, we delete all
+ * the connections it has, all the subsystems they have.
+ *
+ * As well, all the filter pools for this profile are deleted, and subsequently any
+ * cross references from subsystems in connections in other profiles are removed.
+ *
+ * A delete event is fired for every connection deleted.
+ */
+ public void deleteSystemProfile(ISystemProfile profile)
+ throws Exception;
+ /**
+ * Make or unmake the given profile active
+ */
+ public void setSystemProfileActive(ISystemProfile profile, boolean makeActive);
+
+
+ /**
+ * Return the list of connector services provided for the given host
+ * @param conn the host
+ * @return the list of connector services
+ */
+ public IConnectorService[] getConnectorServices(IHost conn);
+
+ // ----------------------------
+ // SUBSYSTEM METHODS...
+ // ----------------------------
+
+ /**
+ * Return list of subsystem objects for a given connection. If the subsystems have
+ * not all been read into memory, this loads them up
+ */
+ public ISubSystem[] getSubSystems(IHost conn);
+
+ /**
+ * Return list of subsystem objects for a given connection. Use the force
+ * flag to indicate whether or not to restore from disk
+ */
+ public ISubSystem[] getSubSystems(IHost conn, boolean force);
+
+ public ISubSystem[] getServiceSubSystems(Class serviceType, IHost connection);
+
+ /**
+ * Resolve a subsystem from it's profile, connection and subsystem name.
+ *
+ * @param srcProfileName the name of the profile
+ * @param srcConnectionName the name of the connection
+ * @param subsystemFactoryId the id of the subsystem
+ *
+ * @return the subsystem
+ */
+ public ISubSystem getSubSystem(String srcProfileName, String srcConnectionName, String subsystemFactoryId);
+
+ /**
+ * Resolve a subsystem from it's absolute name
+ *
+ * @param absoluteSubSystemName the name of the subsystem
+ *
+ * @return the subsystem
+ */
+ public ISubSystem getSubSystem(String absoluteSubSystemName);
+
+ /**
+ * Return the absolute name for the specified subsystem
+ * @param the subsystem
+ * @return the absolute name of the subsystem
+ */
+ public String getAbsoluteNameForSubSystem(ISubSystem subsystem);
+
+ /**
+ * Return the absolute name for the specified connection
+ * @param the connection
+ * @return the absolute name of the connection
+ */
+ public String getAbsoluteNameForConnection(IHost connection);
+
+ /**
+ * Get a list of subsystem objects owned by the subsystem factory identified by
+ * its given plugin.xml-described id. Array is never null, but may be of length 0.
+ *
+ * This is a list that of all subsystems for all connections owned by the factory.
+ */
+ public ISubSystem[] getSubSystems(String factoryId);
+ /**
+ * Get a list of subsystem objects for given connection, owned by the subsystem factory
+ * identified by its given plugin.xml-described id. Array will never be null but may be length zero.
+ */
+ public ISubSystem[] getSubSystems(String factoryId, IHost connection);
+ /**
+ * Get a list of subsystem objects for given connection, owned by a subsystem factory
+ * that is of the given category. Array will never be null but may be length zero.
+ *
+ * This looks for a match on the "category" of the subsystem factory's xml declaration
+ * in its plugin.xml file.
+ *
+ * @see org.eclipse.rse.core.model.ISubSystemConfigurationCategories
+ */
+ public ISubSystem[] getSubSystemsBySubSystemConfigurationCategory(String factoryCategory, IHost connection);
+
+ /**
+ * Delete a subsystem object. This code finds the factory that owns it and
+ * delegates the request to that factory.
+ */
+ public boolean deleteSubSystem(ISubSystem subsystem);
+
+ // ----------------------------
+ // CONNECTION METHODS...
+ // ----------------------------
+ /**
+ * Return the first connection to localhost we can find. While we always create a default one in
+ * the user's profile, it is possible that this profile is not active or the connection was deleted.
+ * However, since any connection to localHost will usually do, we just search all active profiles
+ * until we find one, and return it.
+ * This looks for a match on the "category" of the subsystem factory's xml declaration
+ * in its plugin.xml file. Thus, it is effecient as it need not bring to life a
+ * subsystem factory just to test its parent class type.
+ *
+ * @see org.eclipse.rse.core.model.ISubSystemConfigurationCategories
+ */
+ public IHost[] getHostsBySubSystemConfigurationCategory(String factoryCategory);
+ /**
+ * Return all connections for all active profiles, for the given system type.
+ */
+ public IHost[] getHostsBySystemType(String systemType);
+ /**
+ * Return all connections for all active profiles, for the given system types.
+ */
+ public IHost[] getHostsBySystemTypes(String[] systemTypes);
+ /**
+ * Return a SystemConnection object given a system profile containing it,
+ * and a connection name uniquely identifying it.
+ */
+ public IHost getHost(ISystemProfile profile, String connectionName);
+ /**
+ * Return the zero-based position of a SystemConnection object within its profile.
+ */
+ public int getHostPosition(IHost conn);
+ /**
+ * Return the number of SystemConnection objects within the given profile
+ */
+ public int getHostCount(String profileName);
+ /**
+ * Return the number of SystemConnection objects within the given connection's owning profile
+ */
+ public int getHostCountWithinProfile(IHost conn);
+ /**
+ * Return the number of SystemConnection objects within all active profiles
+ */
+ public int getHostCount();
+ /**
+ * Return a vector of previously-used connection names in the given named profile.
+ * @return Vector of String objects.
+ */
+ public Vector getHostAliasNames(String profileName);
+ /**
+ * Return a vector of previously-used connection names in the given profile.
+ * @return Vector of String objects.
+ */
+ public Vector getHostAliasNames(ISystemProfile profile);
+ /**
+ * Return a vector of previously-used connection names in all active profiles.
+ */
+ public Vector getHostAliasNamesForAllActiveProfiles();
+
+ /**
+ * Return array of all previously specified hostnames.
+ */
+ public String[] getHostNames();
+ /**
+ * Return array of previously specified hostnames for a given system type.
+ */
+ public String[] getHostNames(String systemType);
+
+ /**
+ * Returns the clipboard used for copy actions
+ */
+ public Clipboard getSystemClipboard();
+
+ /**
+ * Returns the list of objects on the system clipboard
+ * @param srcType the transfer type
+ * @return the list of clipboard objects
+ */
+ public List getSystemClipboardObjects(int srcType);
+
+
+ /**
+ * Convenience method to create a local connection, as it often that one is needed
+ * for access to the local file system.
+ * @param profile - the profile to create this connection in. If null is passed, we first
+ * try to find the default private profile and use it, else we take the first active profile.
+ * @param name - the name to give this profile. Must be unique and non-null.
+ * @param userId - the user ID to use as the default for the subsystems. Can be null.
+ */
+ public IHost createLocalHost(ISystemProfile profile, String name, String userId);
+
+ /**
+ * Create a connection object, given the connection pool and given all the possible attributes.
+ *
+ * THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU, IN
+ * THE POOL YOU SPECIFY. THE POOL IS ALSO SAVED TO DISK.
+ *
+ * This method:
+ *
+ * @param profileName Name of the system profile the connection is to be added to.
+ * @param systemType system type matching one of the system type names defined via the
+ * systemTypes extension point.
+ * @param connectionName unique connection name.
+ * @param hostName ip name of host.
+ * @param description optional description of the connection. Can be null.
+ * @param defaultUserId userId to use as the default for the subsystems.
+ * @param defaultUserIdLocation one of the constants in {@link org.eclipse.rse.core.ISystemUserIdConstants ISystemUserIdConstants}
+ * that tells us where to set the user Id
+ * @param newConnectionWizardPages when called from the New Connection wizard this is union of the list of additional
+ * wizard pages supplied by the subsystem factories that pertain to the specified system type. Else null.
+ * @return SystemConnection object, or null if it failed to create. This is typically
+ * because the connectionName is not unique. Call getLastException() if necessary.
+ */
+ public IHost createHost(String profileName, String systemType,
+ String connectionName, String hostName,
+ String description,String defaultUserId, int defaultUserIdLocation,
+ ISystemNewConnectionWizardPage[] newConnectionWizardPages)
+ throws Exception;
+ /**
+ * Create a connection object. This is a simplified version
+ *
+ * THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU, IN
+ * THE PROFILE YOU SPECIFY. THE PROFILE IS ALSO SAVED TO DISK.
+ *
+ * This method:
+ *
+ * @param profileName Name of the system profile the connection is to be added to.
+ * @param systemType system type matching one of the system type names defined via the
+ * systemTypes extension point.
+ * @param connectionName unique connection name.
+ * @param hostName ip name of host.
+ * @param description optional description of the connection. Can be null.
+ * @return SystemConnection object, or null if it failed to create. This is typically
+ * because the connectionName is not unique. Call getLastException() if necessary.
+ */
+ public IHost createHost(String profileName, String systemType, String connectionName, String hostName, String description)
+ throws Exception;
+
+ /**
+ * Create a connection object. This is a very simplified version that defaults to the user's
+ * private profile, or the first active profile if there is no private profile.
+ *
+ * THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU, IN
+ * THE DEFAULT PRIVATE PROFILE, WHICH IS SAVED TO DISK.
+ *
+ * This method:
+ *
+ * @param systemType system type matching one of the system type names defined via the
+ * systemTypes extension point.
+ * @param connectionName unique connection name.
+ * @param hostName ip name of host.
+ * @param description optional description of the connection. Can be null.
+ * @return SystemConnection object, or null if it failed to create. This is typically
+ * because the connectionName is not unique. Call getLastException() if necessary.
+ */
+ public IHost createHost(String systemType, String connectionName, String hostName, String description)
+ throws Exception;
+
+ /**
+ * Update an existing connection given the new information.
+ * This method:
+ *
+ * @param conn SystemConnection to be updated
+ * @param systemType system type matching one of the system type names defined via the
+ * systemTypes extension point.
+ * @param connectionName unique connection name.
+ * @param hostName ip name of host.
+ * @param description optional description of the connection. Can be null.
+ * @param defaultUserIdLocation one of the constants in {@link org.eclipse.rse.core.ISystemUserIdConstants ISystemUserIdConstants}
+ * that tells us where to set the user Id
+ * @param defaultUserId userId to use as the default for the subsystems.
+ */
+ public void updateHost(Shell shell, IHost conn, String systemType,
+ String connectionName, String hostName,
+ String description,String defaultUserId, int defaultUserIdLocation);
+
+ /**
+ * Update the workoffline mode for a connection.
+ *
+ * @param conn SystemConnection to change
+ * @param offline true if connection should be set offline, false if it should be set online
+ */
+ public void setHostOffline(IHost conn, boolean offline);
+
+ /**
+ * Delete an existing connection.
+ *
+ * Lots to do here:
+ *
+ * Lots to do here:
+ *
+ *
+ * A connector service manages a live connection to a remote system, with
+ * operations for connecting and disconnecting, and storing information
+ * typically cached from a subsystem: user ID, password, port, etc.
+ *
+ * The SubSystem interface includes a method, getConnectorService(), which returns an
+ * instance of an object that implements this interface for that subsystem.
+ *
+ * A single connector service object can be unique to a subsystem instance, but
+ * it can also be shared across multiple subsystems in a single host if those
+ * subsystems share a physical connection to the remote system. This sharing is done via
+ * subclasses of {@link org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager}
+ * which are returned by another getter method in SubSystem.
+ */
+public interface IConnectorService extends IRSEModelObject
+{
+
+ /**
+ * Return the subsystem object this system is associated with
+ */
+ public ISubSystem getPrimarySubSystem();
+
+ /**
+ * Return all the subsystems that use this service
+ * @return the subsystems that use this service
+ */
+ public ISubSystem[] getSubSystems();
+
+ /**
+ * Set the subsystem, when its not known at constructor time
+ */
+ public void registerSubSystem(ISubSystem ss);
+
+ /**
+ * Deregister the subsystem
+ * @param ss
+ */
+ public void deregisterSubSystem(ISubSystem ss);
+
+ /**
+ * Return true if currently connected.
+ */
+ public boolean isConnected();
+ /**
+ * Attempt to connect to the remote system.
+ */
+ public void connect(IProgressMonitor monitor) throws Exception;
+ /**
+ * Disconnect from the remote system
+ */
+ public void disconnect(IProgressMonitor monitor) throws Exception;
+ /**
+ * Notifies all listeners of a disconnection through a communications event
+ */
+ public void notifyDisconnection();
+ /**
+ * Notifies all listeners of a connection through a communications event
+ */
+ public void notifyConnection();
+ /**
+ * Notifies all listeners of an error through a communications event
+ */
+ public void notifyError();
+ /**
+ * Reset after some fundamental change, such as a hostname change.
+ * Clear any memory of the current connection.
+ */
+ public void reset();
+ /**
+ * Return the version, release, modification of the remote system,
+ * if connected, if applicable and if available. Else return null.
+ *
+ * Up to each implementer to decide if this will be cached.
+ */
+ public String getVersionReleaseModification();
+ /**
+ * Return the home directory of the remote system for the current user, if available.
+ *
+ * Up to each implementer to decide how to implement, and if this will be cached.
+ */
+ public String getHomeDirectory();
+ /**
+ * Return the temp directory of the remote system for the current user, if available.
+ *
+ * Up to each implementer to decide how to implement, and if this will be cached.
+ */
+ public String getTempDirectory();
+
+ // --------------------------------------------------------------------
+ // Utility methods that offer combined connection and subsystem info...
+ // --------------------------------------------------------------------
+ /**
+ * Return the system type for this connection.
+ */
+ public String getHostType();
+
+ /**
+ * Return the name of this connector service
+ * @return the name of this connector service
+ */
+ public String getName();
+
+ public void setHost(IHost host);
+
+ /**
+ * Return the host
+ * @return
+ */
+ public IHost getHost();
+
+ /**
+ * Return the host name for the connection this system's subsystem is associated with
+ */
+ public String getHostName();
+
+ /**
+ * Return the port for this connector
+ */
+ public int getPort();
+
+ /**
+ * Set the port for this connector
+ * @param port
+ */
+ public void setPort(int port);
+
+ /**
+ * Return the userId for this system's subsystem we are associated with
+ */
+ public String getUserId();
+
+ /**
+ * Set the user id for this connector
+ * @param userId
+ */
+ public void setUserId(String userId);
+
+
+ public boolean isUsingSSL();
+
+ public void setIsUsingSSL(boolean flag);
+
+ /**
+ * Return the password for this system's subsystem we are associated with.
+ *
+ * If not currently set in transient memory, prompts the user for a password.
+ *
+ * Throws InterruptedException if user is prompted and user cancels that prompt.
+ * @param shell parent for the prompt dialog if needed. Can be null if know password exists.
+ * @param forcePrompt forces the prompt dialog to be displayed even if the password is currently
+ * in memory.
+ */
+ public void promptForPassword(Shell shell, boolean forcePrompt)
+ throws InterruptedException;
+ /**
+ * Set the password if you got it from somewhere
+ */
+ public void setPassword(String matchingUserId, String password);
+
+ /**
+ * Set the password if you got it from somewhere
+ */
+ public void setPassword(String matchingUserId, String password, boolean persist);
+
+ /**
+ * Clear internal userId cache. Called when user uses the property dialog to
+ * change his userId.
+ */
+ public void clearUserIdCache();
+ /**
+ * Clear internal password cache. Called when user uses the property dialog to
+ * change his userId.
+ */
+ public void clearPasswordCache();
+
+ /**
+ * Clear internal password cache. Called when user uses the property dialog to
+ * change his userId.
+ * @param clearDiskCache if true, clears the password from disk
+ */
+ public void clearPasswordCache(boolean clearDiskCache);
+ /**
+ * Return true if password is currently cached.
+ */
+ public boolean isPasswordCached();
+
+
+ /**
+ * Return true if password is currently cached.
+ */
+ public boolean isPasswordCached(boolean onDisk);
+
+ /**
+ * Return true if this system can inherit the uid and password of
+ * other ISystems in this connection
+ *
+ * @return true if it can inherit the user/password
+ */
+ public boolean inheritConnectionUserPassword();
+
+ /*
+ * Return true if this system can share it's uid and password
+ * with other ISystems in this connection
+ *
+ * @return true if it can share the user/password
+ */
+ public boolean shareUserPasswordWithConnection();
+
+ /**
+ * Register a communications listener
+ */
+ public void addCommunicationsListener(ICommunicationsListener listener);
+ /**
+ * Remove a communications listener
+ */
+ public void removeCommunicationsListener(ICommunicationsListener listener);
+ /**
+ * Returns the suppressSignonPrompt flag. If this is set to true then the user
+ * will not be prompted to signon, instead an InterruptedException will be thrown
+ * by the promptForPassword method.
+ *
+ * @return boolean
+ */
+ public boolean isSuppressSignonPrompt();
+ /**
+ * Sets the suppressSignonPrompt flag. Tool writers can use this to temporarily
+ * disable the user from being prompted to signon. This would cause the promptForPassword
+ * method to throw an InterruptedException instead of prompting. The intent of this
+ * method is to allow tool writeres to prevent multiple signon prompts during a
+ * set period of time (such as a series of related communication calls) if the user
+ * cancels the first prompt. It is the callers responsability to set this value
+ * back to false when the tool no longer needs to suppress the signon prompt or all
+ * other tools sharing this connection will be affected.
+ *
+ * @param suppressSignonPrompt
+ */
+ public void setSuppressSignonPrompt(boolean suppressSignonPrompt);
+
+ /**
+ * Returns the value of the 'Remote Server Launcher' containment reference.
+ * It is bidirectional and its opposite is '{@link org.eclipse.rse.core.subsystems.IServerLauncherProperties#getParentSubSystem Parent Sub System}'.
+ *
+ *
+ * Get the remote server launcher, which may be null. This an optional object containing
+ * properties used to launch the remote server that communicates with this subsystem.
+ *
+ * Return the unique ID for the given remote object within the subsystem.
+ */
+ public String getAbsoluteName(Object object);
+
+
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/IRemoteObjectResolver.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteObjectResolver.java
similarity index 100%
rename from rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/IRemoteObjectResolver.java
rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteObjectResolver.java
diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/IRemotePropertyHolder.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemotePropertyHolder.java
similarity index 100%
rename from rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/IRemotePropertyHolder.java
rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemotePropertyHolder.java
diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/IRemoteServerLauncher.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteServerLauncher.java
similarity index 100%
rename from rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/IRemoteServerLauncher.java
rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteServerLauncher.java
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteSystemEnvVar.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteSystemEnvVar.java
new file mode 100644
index 00000000000..22b14104325
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteSystemEnvVar.java
@@ -0,0 +1,78 @@
+/********************************************************************************
+ * Copyright (c) 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.subsystems;
+
+
+
+//
+
+
+/**
+ * @lastgen interface RemoteSystemEnvVar {}
+ */
+
+public interface IRemoteSystemEnvVar {
+
+
+
+ /**
+ *
+ *
+ * @generated
+ */
+ String copyright = "(c) Copyright IBM Corporation 2002, 2004.";
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @return The value of the Name attribute
+ * The name of the environment variable to set at connect time
+ */
+ String getName();
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @param value The new value of the Name attribute
+ */
+ void setName(String value);
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @return The value of the Value attribute
+ * The value to set this environment variable to at connect time
+ */
+ String getValue();
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @param value The new value of the Value attribute
+ */
+ void setValue(String value);
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @return The value of the AdditionalAttributes attribute
+ * Additional attributes that may need to be persisted per environment variable.
+ */
+ String getAdditionalAttributes();
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @param value The new value of the AdditionalAttributes attribute
+ */
+ void setAdditionalAttributes(String value);
+
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/IServerLauncher.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IServerLauncher.java
similarity index 98%
rename from rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/IServerLauncher.java
rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IServerLauncher.java
index d6edaad6ac8..8a29c52597d 100644
--- a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/IServerLauncher.java
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IServerLauncher.java
@@ -18,7 +18,7 @@
package org.eclipse.rse.core.subsystems;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.rse.model.SystemSignonInformation;
+import org.eclipse.rse.core.model.SystemSignonInformation;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IServerLauncherProperties.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IServerLauncherProperties.java
new file mode 100644
index 00000000000..d6dd7c913b9
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IServerLauncherProperties.java
@@ -0,0 +1,51 @@
+/********************************************************************************
+ * Copyright (c) 2004, 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.subsystems;
+import org.eclipse.rse.core.model.IRSEModelObject;
+
+
+
+/**
+ * Implement this interface to provide peristable properties for server launching
+ * All properties to be persisted to be are stored and restored from associated
+ * IPropertySets
+ *
+ */
+public interface IServerLauncherProperties extends IRSEModelObject
+{
+
+ public IServerLauncherProperties cloneServerLauncher(IServerLauncherProperties newOne);
+
+ /**
+ * Returns the connector service
+ * @return
+ */
+ public IConnectorService getConnectorService();
+
+ /**
+ * Update cached values based on IPropertySets
+ *
+ */
+ public void restoreFromProperties();
+
+ /**
+ * Store cached values based on IPropertySets
+ *
+ */
+ public void saveToProperties();
+
+} // ServerLauncher
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IServiceSubSystem.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IServiceSubSystem.java
new file mode 100644
index 00000000000..1c3c477325d
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IServiceSubSystem.java
@@ -0,0 +1,24 @@
+/********************************************************************************
+ * Copyright (c) 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.subsystems;
+
+
+public interface IServiceSubSystem extends ISubSystem
+{
+ public Class getServiceType();
+ public void switchServiceFactory(IServiceSubSystemConfiguration factory);
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IServiceSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IServiceSubSystemConfiguration.java
new file mode 100644
index 00000000000..85e8f8ebb03
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IServiceSubSystemConfiguration.java
@@ -0,0 +1,38 @@
+/********************************************************************************
+ * Copyright (c) 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.subsystems;
+
+
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.services.IService;
+
+
+
+/**
+ * This is the interface for the class that is for subsystem-providers who desire not to use MOF.
+ *
+ * @lastgen interface DefaultSubSystemConfiguration extends SubSystemConfiguration {}
+ */
+public interface IServiceSubSystemConfiguration extends ISubSystemConfiguration
+{
+ public IConnectorService getConnectorService(IHost host);
+ public void setConnectorService(IHost host, IConnectorService connectorService);
+ public Class getServiceType();
+ public Class getServiceImplType();
+ public IService getService(IHost host);
+
+} //DefaultSubSystemConfiguration
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/ISubSystem.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ISubSystem.java
similarity index 93%
rename from rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/ISubSystem.java
rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ISubSystem.java
index 4391e02b21a..5d37ad9a027 100644
--- a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/ISubSystem.java
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ISubSystem.java
@@ -18,19 +18,17 @@ package org.eclipse.rse.core.subsystems;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.jobs.ISchedulingRule;
+import org.eclipse.rse.core.filters.ISystemFilter;
+import org.eclipse.rse.core.filters.ISystemFilterPoolReferenceManager;
+import org.eclipse.rse.core.filters.ISystemFilterPoolReferenceManagerProvider;
+import org.eclipse.rse.core.filters.ISystemFilterReference;
+import org.eclipse.rse.core.filters.ISystemFilterString;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.model.IRSEModelObject;
+import org.eclipse.rse.core.model.ISystemProfile;
import org.eclipse.rse.core.persistance.IRSEPersistableContainer;
-import org.eclipse.rse.filters.ISystemFilter;
-import org.eclipse.rse.filters.ISystemFilterPoolReferenceManager;
-import org.eclipse.rse.filters.ISystemFilterPoolReferenceManagerProvider;
-import org.eclipse.rse.filters.ISystemFilterReference;
-import org.eclipse.rse.filters.ISystemFilterString;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemProfile;
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
-import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.dialogs.PropertyPage;
@@ -126,19 +124,7 @@ public interface ISubSystem extends ISystemFilterPoolReferenceManagerProvider, I
*/
public void checkIsConnected() throws SystemMessageException;
- // -------------------------------------
- // GUI methods
- // -------------------------------------
- /**
- * Return the single property page to show in the tabbed notebook for the
- * for SubSystem property of the parent Connection. Return null if no
- * page is to be contributed for this. You are limited to a single page,
- * so you may have to compress. It is recommended you prompt for the port
- * if applicable since the common base subsystem property page is not shown
- * To help with this you can use the SystemPortPrompt widget.
- */
- public PropertyPage getPropertyPage(Composite parent);
-
+
// ---------------------------------------------------
// Methods for business partners to add their own
// persisted attributes to the subsystem object...
@@ -358,7 +344,7 @@ public interface ISubSystem extends ISystemFilterPoolReferenceManagerProvider, I
* Connect to the remote system.
* In addition to calling getSystem().connect(),this might fire events.
*
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
*/
public void connect(Shell shell) throws Exception;
/**
@@ -371,7 +357,7 @@ public interface ISubSystem extends ISystemFilterPoolReferenceManagerProvider, I
* Connect to the remote system, optionally forcing a signon prompt even if the password
* is cached in memory or on disk.
*
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @param forcePrompt forces the prompt dialog to be displayed even if the password is currently
* in memory.
*/
@@ -493,7 +479,7 @@ public interface ISubSystem extends ISystemFilterPoolReferenceManagerProvider, I
* type. Be sure to register your adapter factory.
*
* @param filterString filter pattern for objects to return.
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @return Array of objects that are the result of this filter string
*/
public Object[] resolveFilterString(String filterString, Shell shell)
@@ -506,7 +492,7 @@ public interface ISubSystem extends ISystemFilterPoolReferenceManagerProvider, I
* filter strings versus a single filter string.
*
* @param filterStrings array of filter patterns for objects to return.
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @return Array of objects that are the result of resolving all the filter strings
*/
public Object[] resolveFilterStrings(String[] filterStrings, Shell shell)
@@ -535,7 +521,7 @@ public interface ISubSystem extends ISystemFilterPoolReferenceManagerProvider, I
*
* @param parent Object that is being expanded.
* @param filterString filter pattern for children of parent.
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @return Array of objects that are the result of this filter string
*/
public Object[] resolveFilterString(Object parent, String filterString, Shell shell)
@@ -545,7 +531,7 @@ public interface ISubSystem extends ISystemFilterPoolReferenceManagerProvider, I
* Execute a remote command. This is only applicable if the subsystem factory reports
* true for supportsCommands().
* @param command Command to be executed remotely.
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @param Object context context of a command (i.e. working directory). Null is valid and means to use the default context.
* @return Array of objects that are the result of running this command. Typically, these
* are messages logged by the command.
@@ -567,7 +553,7 @@ public interface ISubSystem extends ISystemFilterPoolReferenceManagerProvider, I
* @param subject Identifies which object to get the properties of
* @param key Identifies property to set
* @param value Value to set property to
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @return Object interpretable by subsystem. Might be a Boolean, or the might be new value for confirmation.
*/
public Object setProperty(Object subject, String key, String value, Shell shell)
@@ -579,7 +565,7 @@ public interface ISubSystem extends ISystemFilterPoolReferenceManagerProvider, I
* true for supportsProperties().
* @param subject Identifies which object to get the properties of
* @param key Identifies property to get value of
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @return String The value of the requested key.
*/
public String getProperty(Object subject, String key, Shell shell)
@@ -590,9 +576,9 @@ public interface ISubSystem extends ISystemFilterPoolReferenceManagerProvider, I
* a number of remote environment variables. This is only applicable if the subsystem factory reports
* true for supportsProperties().
* @param subject Identifies which object to get the properties of
- * @param keys Identifies properties to set
- * @param values Values to set properties to. One to one mapping to keys by index number
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param key Identifies property to set
+ * @param value Values to set properties to. One to one mapping to keys by index number
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @return Object interpretable by subsystem. Might be a Boolean, or the might be new values for confirmation.
*/
public Object setProperties(Object subject, String[] keys, String[] values, Shell shell)
@@ -603,9 +589,9 @@ public interface ISubSystem extends ISystemFilterPoolReferenceManagerProvider, I
* a remote environment variable. This is only applicable if the subsystem factory reports
* true for supportsProperties().
* @param subject Identifies which object to get the properties of
- * @param keys Identifies properties to get value of
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
- * @return String[] The values of the requested keys.
+ * @param key Identifies property to get value of
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @return Object The values of the requested keys.
*/
public String[] getProperties(Object subject, String[] keys, Shell shell)
throws Exception;
@@ -658,7 +644,24 @@ public interface ISubSystem extends ISystemFilterPoolReferenceManagerProvider, I
* Returns the parent object associated with a filter reference. It's up to the
* subsystem implementation to decide what "parent object" means for a filter reference.
* @param filterRef the filter reference to determine a target object from.
+ * @return
*/
Object getTargetForFilter(ISystemFilterReference filterRef);
+
+
+
+//// -------------------------------------
+// // GUI methods
+// // -------------------------------------
+// /**
+// * Return the single property page to show in the tabbed notebook for the
+// * for SubSystem property of the parent Connection. Return null if no
+// * page is to be contributed for this. You are limited to a single page,
+// * so you may have to compress. It is recommended you prompt for the port
+// * if applicable since the common base subsystem property page is not shown
+// * To help with this you can use the SystemPortPrompt widget.
+// */
+// public PropertyPage getPropertyPage(Composite parent);
+
}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ISubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ISubSystemConfiguration.java
new file mode 100644
index 00000000000..4be2c22494f
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ISubSystemConfiguration.java
@@ -0,0 +1,554 @@
+/********************************************************************************
+ * Copyright (c) 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.subsystems;
+
+import org.eclipse.rse.core.filters.ISystemFilter;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
+import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
+import org.eclipse.rse.core.filters.ISystemFilterPoolManagerProvider;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.ISystemNewConnectionWizardPage;
+import org.eclipse.rse.core.model.ISystemProfile;
+import org.eclipse.rse.core.persistance.IRSEPersistableContainer;
+import org.eclipse.swt.widgets.Shell;
+
+
+public interface ISubSystemConfiguration extends ISystemFilterPoolManagerProvider, IRSEPersistableContainer
+{
+ // ---------------------------------
+ // CONSTANTS...
+ // ---------------------------------
+ public static final boolean FORCE_INTO_MEMORY = true;
+ public static final boolean LAZILY = false;
+
+ /**
+ * Reset for a full refresh from disk, such as after a team synch.
+ */
+ public void reset();
+ // ---------------------------------
+ // CRITICAL METHODS...
+ // ---------------------------------
+ /**
+ * Return true if the subsystem supports more than one filter string
+ * RETURNS true BY DEFAULT
+ */
+ public boolean supportsMultiStringFilters();
+
+ /**
+ * Return true if the subsystem supports the exporting of filter strings from it's filters
+ * RETURNS true BY DEFAULT
+ */
+ public boolean supportsFilterStringExport();
+
+ /**
+ * Return true if subsystem instances from this factory support connect and disconnect actions
+ * Returns true in default implementation.
+ */
+ public boolean supportsSubSystemConnect();
+ /**
+ * Return true (default) or false to indicate if subsystems of this factory support user-editable
+ * port numbers.
+ * Returns true in default implementation.
+ */
+ public boolean isPortEditable();
+ /**
+ * Return true if subsystem instances from this factory support remote command execution
+ * Returns false in default implementation, and is usually only true for command subsystems.
+ */
+ public boolean supportsCommands();
+ /**
+ * Return true if subsystem instances from this factory support getting and setting properties
+ * Returns false in default implementation, and not actually used yet.
+ */
+ public boolean supportsProperties();
+ /**
+ * Required method for subsystem factory child classes. Return true if you support filters, false otherwise.
+ * If you support filters, then some housekeeping will be done for you automatically. Specifically, they
+ * will be saved and restored for you automatically.
+ * Returns true in default implementation.
+ */
+ public boolean supportsFilters();
+
+ /**
+ * Indicates whether the subsystem supports displaying children under
+ * its filters. By default, this will return true, but if filters that can't
+ * be expanded are desired, this can be overridden to return false.
+ */
+ public boolean supportsFilterChildren();
+
+ /**
+ * Required method for subsystem factory child classes. Return true if you filter caching.
+ * If you support filter caching, then the views will always check the in-memory cache for
+ * filter results before attempting a query.
+ * Returns true in default implementation.
+ */
+ public boolean supportsFilterCaching();
+
+ /**
+ * Required method for subsystem factory child classes. Return true if you support filters, and you support
+ * multiple filter strings per filter. Return false to restrict the user to one string per filter.
+ * Returns true in default implementation.
+ */
+ public boolean supportsMultipleFilterStrings();
+ /**
+ * Required method for subsystem factory child classes if returning true from supportsFilters.
+ * Return true if you support filters within filters, false otherwise.
+ * Returns false in default implementation.
+ */
+ public boolean supportsNestedFilters();
+ /**
+ * Return true if you support quick filters. These allow the user to subset a remote system object at
+ * the time they expand it in the remote system explorer tree view.
+ *
+ * Not supported yet
+ */
+ public boolean supportsQuickFilters();
+
+ /**
+ * Return true if filters of this subsystem factory support dropping into.
+ */
+ public boolean supportsDropInFilters();
+
+ /**
+ * Return true if filters of this subsystem factory provide a custom implementation of drop support.
+ * By default, the filter reference adapter treats a drop on a filter as an update to the list of filter
+ * strings for a filter. For things like files, it is more desirable to treat the drop as a physical
+ * resource copy, so in that case, custom drop makes sense.
+ *
+ * By default this returns false.
+ */
+ public boolean providesCustomDropInFilters();
+
+ /**
+ * Return true if you support user-defined actions for the remote system objects returned from expansion of
+ * subsystems created by this subsystem factory
+ * @see #getActionSubSystem(ISubSystem)
+ * @see #supportsUserDefinedActions(ISelection)
+ * Returns false in default implementation.
+ */
+ public boolean supportsUserDefinedActions();
+
+ /**
+ * Return true if you support compile actions for the remote system objects returned from expansion of
+ * subsystems created by this subsystem factory.
+ * @see #getCompileManager()
+ * Returns false in default implementation.
+ */
+ public boolean supportsCompileActions();
+ /**
+ * Return true if you support user-defined/managed named file types
+ * Returns false in default implementation.
+ */
+ public boolean supportsFileTypes();
+ /**
+ * Tell us if this subsystem factory supports targets, which are destinations for
+ * pushes and builds. Normally only true for file system factories.
+ */
+ public boolean supportsTargets();
+ /**
+ * Tell us if this subsystem factory supports server launch properties, which allow the user
+ * to configure how the server-side code for these subsystems are started. There is a Server
+ * Launch Setting property page, with a pluggable composite, where users can configure these
+ * properties.
+ * Returns false in default implementation.
+ */
+ public boolean isCaseSensitive();
+
+ // ---------------------------------
+ // USER-PREFERENCE METHODS...
+ // ---------------------------------
+ /**
+ * If we support filters, should we show filter pools in the remote system explorer?
+ * Typically retrieved from user preferences.
+ */
+ public boolean showFilterPools();
+ /*
+ * If we support filters, should we show filter strings in the remote system explorer?
+ * Typically retrieved from user preferences.
+ *
+ public boolean showFilterStrings();
+ */
+ /**
+ * If we support filters, should we show filter pools in the remote system explorer?
+ * This is to set it after the user changes it in the user preferences. It may require
+ * refreshing the current view.
+ */
+ public void setShowFilterPools(boolean show);
+ /*
+ * If we support filters, should we show filter strings in the remote system explorer?
+ * This is to set it after the user changes it in the user preferences. It may require
+ * refreshing the current view.
+ *
+ public void setShowFilterStrings(boolean show);
+ */
+
+ // ---------------------------------
+ // PROXY METHODS. USED INTERNALLY...
+ // ---------------------------------
+ /**
+ * Private method called by RSEUIPlugin
+ */
+ public void setSubSystemConfigurationProxy(ISubSystemConfigurationProxy proxy);
+ /**
+ * Private method
+ */
+ public ISubSystemConfigurationProxy getSubSystemConfigurationProxy();
+
+ // ---------------------------------
+ // FACTORY ATTRIBUTE METHODS...
+ // ---------------------------------
+ /**
+ * Return vendor of this factory.
+ * This comes from the xml "vendor" attribute of the extension point.
+ */
+ public String getVendor();
+ /**
+ * Return name of this factory. Matches value in name attribute in extension point xml
+ */
+ public String getName();
+ /**
+ * Return description of this factory. Comes from translated description string in extension point xml
+ */
+ public String getDescription();
+ /**
+ * Return unique id of this factory. Matches value in id attribute in extension point xml
+ */
+ public String getId();
+
+ /**
+ * Return the category this subsystem factory subscribes to.
+ * @see org.eclipse.rse.model.ISubSystemConfigurationCategories
+ */
+ public String getCategory();
+ /**
+ * Return the system types this subsystem factory supports.
+ */
+ public String[] getSystemTypes();
+
+ // ---------------------------------
+ // PROFILE METHODS...
+ // ---------------------------------
+ /**
+ * Called by SystemRegistry when we are about to delete a profile.
+ *
+ * Our only mission is to delete the filter pool associated with it,
+ * because the registry has already called deleteSubSystemsByConnection
+ * for every subsystem of every connection owned by this profile.
+ */
+ public void deletingSystemProfile(ISystemProfile profile);
+ /**
+ * Called by SystemRegistry when we have toggled the active-status of a profile
+ */
+ public void changingSystemProfileActiveStatus(ISystemProfile profile, boolean newStatus);
+ /**
+ * Get owning profile object given a filter pool object
+ */
+ public ISystemProfile getSystemProfile(ISystemFilterPool pool);
+
+ // ---------------------------------
+ // SUBSYSTEM METHODS...
+ // ---------------------------------
+
+ /**
+ * Called by SystemRegistry's renameSystemProfile method to ensure we update our
+ * subsystem names within each subsystem.
+ *
+ * This is called AFTER changing the profile's name!!
+ */
+ public void renameSubSystemProfile(ISubSystem ss, String oldProfileName, String newProfileName);
+ /**
+ * Called by SystemRegistry's renameSystemProfile method to pre-test if we are going to run into errors on a
+ * profile rename, due to file or folder in use.
+ */
+ public void preTestRenameSubSystemProfile(String oldProfileName) throws Exception;
+ /**
+ * Called by SystemRegistry's renameConnection method to ensure we update our
+ * connection names within each subsystem.
+ *
+ * Must be called prior to changing the connection's name!!
+ */
+ public void renameSubSystemsByConnection(IHost conn, String newConnectionName);
+ /**
+ * Called by SystemRegistry's deleteConnection method to ensure we delete all our
+ * subsystems for a given connection.
+ */
+ public void deleteSubSystemsByConnection(IHost conn);
+
+ /**
+ * Creates a new subsystem instance that is associated with the given connection object.
+ * SystemRegistryImpl calls this when a new connection is created, and appliesToSystemType returns true.
+ * @param conn The connection to create a subsystem for
+ * @param creatingConnection true if we are creating a connection, false if just creating
+ * another subsystem for an existing connection.
+ * @param yourNewConnectionWizardPages The wizard pages you supplied to the New Connection wizard, via the
+ * {@link org.eclipse.rse.core.subsystems.util.ISubSystemConfigurationAdapter#getNewConnectionWizardPages(ISubSystemConfiguration, org.eclipse.jface.wizard.IWizard)}
+ * method or null if you didn't override this method.
+ */
+ public ISubSystem createSubSystem(IHost conn, boolean creatingConnection, ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages);
+
+ // used in the case where newsubsystems are added after a connection exists
+ public ISubSystem createSubSystemAfterTheFact(IHost conn);
+
+ public ISubSystem createSubSystemInternal(IHost conn);
+
+
+ /**
+ * Find or create a connector service for this host
+ */
+ public IConnectorService getConnectorService(IHost host);
+
+ /**
+ * Overridable entry for child classes to contribute a server launcher instance
+ * for a given subsystem.
+ *
+ * Create an instance of ServerLauncher, and add it to the given subsystem.
+ * When a subsystem is created, and {@link #supportsServerLaunchProperties(IHost)}
+ * returns true, this method is called to create the server launcher instance
+ * associated with the subsystem. The default implementation is to create an
+ * instance of {@link IRemoteServerLauncher}, but override to create your own
+ * ServerLauncher instance if you have your own class.
+ */
+ public IServerLauncherProperties createServerLauncher(IConnectorService connectorService);
+
+ /**
+ * Updates user-editable attributes of an existing subsystem instance.
+ * These attributes typically affect the live connection, so the subsystem will be forced to
+ * disconnect.
+ *
+ * The subsystem will be saved to disk.
+ * @param shell parent shell needed in case an error message is displayed
+ * @param subsystem target of the update action
+ * @param updateUserId true if we are updating the userId, else false to ignore userId
+ * @param userId new local user Id. Ignored if updateUserId is false
+ * @param updatePort true if we are updating the port, else false to ignore port
+ * @param port new local port value. Ignored if updatePort is false
+ */
+ public void updateSubSystem(Shell shell, ISubSystem subsystem, boolean updateUserId, String userId, boolean updatePort, int port);
+ /**
+ * Update the port for the given subsystem instance.
+ * Shortcut to {@link #updateSubSystem(Shell, ISubSystem, boolean, String, boolean, int)}
+ */
+ public void setSubSystemPort(Shell shell, ISubSystem subsystem, int port);
+ /**
+ * Update the user ID for the given subsystem instance.
+ * Shortcut to {@link #updateSubSystem(Shell, ISubSystem, boolean, String, boolean, int)}
+ */
+ public void setSubSystemUserId(Shell shell, ISubSystem subsystem, String userId);
+
+ /**
+ * Returns true if this factory allows users to delete instances of subsystem objects.
+ * Would only be true if users are allowed to create multiple instances of subsystem objects
+ * per connection.
+ */
+ public boolean isSubSystemsDeletable();
+ /**
+ * Deletes a given subsystem instance from the list maintained by this factory.
+ * SystemRegistryImpl calls this when the user selects to delete a subsystem object,
+ * or delete the parent connection this subsystem is associated with.
+ * In former case, this is only called if the factory supports user-deletable subsystems.
+ */
+ public boolean deleteSubSystem(ISubSystem subsystem);
+ /**
+ * Clone a given subsystem into the given connection.
+ * Called when user does a copy-connection action.
+ * @param oldSubsystem The subsystem to be cloned
+ * @param newConnection The connection into which to create and clone the old subsystem
+ * @param copyProfileOperation Pass true if this is an profile-copy operation versus a connection-copy operation
+ * @return New subsystem within the new connection
+ */
+ public ISubSystem cloneSubSystem(ISubSystem oldSubsystem, IHost newConnection, boolean copyProfileOperation)
+ throws Exception;
+ /**
+ * Returns a list of subsystem objects existing for the given connection.
+ * @param conn System connection to retrieve subsystems for
+ * @param force true if we should force all the subsystems to be restored from disk if not already
+ */
+ public ISubSystem[] getSubSystems(IHost conn, boolean force);
+ /**
+ * Returns a list of all subsystem objects for all connections.
+ */
+ public ISubSystem[] getSubSystems(boolean force);
+ /**
+ * Renames a subsystem. This is better than ss.setName(String newName) as it saves the subsystem to disk.
+ */
+ public void renameSubSystem(ISubSystem subsystem, String newName);
+ /**
+ * Disconnect all subsystems currently connected.
+ * Called by shutdown() of RSEUIPlugin.
+ */
+ public void disconnectAllSubSystems()
+ throws Exception;
+
+ // ---------------------------------
+ // FILTER POOL METHODS...
+ // ---------------------------------
+ /**
+ * Get the filter pool manager for the given profile
+ */
+ public ISystemFilterPoolManager getFilterPoolManager(ISystemProfile profile);
+ /**
+ * Copy the filter pool manager and return a new one. Called during profile-copy operations.
+ * Will also copy all of the filter pools and their respective data.
+ */
+ public ISystemFilterPoolManager copyFilterPoolManager(ISystemProfile oldProfile, ISystemProfile newProfile)
+ throws Exception;
+
+ /**
+ * Given a subsystem, return the first (hopefully only) default pool for this
+ * subsystem's profile.
+ */
+ public ISystemFilterPool getDefaultSystemFilterPool(ISubSystem subsys);
+ /**
+ * Test if any filter pools in the given profile are referenced by other profiles,
+ * which are active.
+ *
+ * Called when user tries to make a profile inactive. We prevent this if there exists
+ * active references.
+ * @param profile The profile being tested
+ * @return An array of the active subsystems which reference filter pools in this profile,
+ * or null if none are found.
+ */
+ public ISubSystem[] testForActiveReferences(ISystemProfile profile);
+
+ // ---------------------------------
+ // FILTER METHODS
+ // ---------------------------------
+ /**
+ * Return the translated string to show in the property sheet for the type property when a filter is selected.
+ */
+ public String getTranslatedFilterTypeProperty(ISystemFilter selectedFilter);
+ /**
+ * Return true if we should show the refresh action in the popup for the given element.
+ */
+ public boolean showRefreshOnFilter();
+
+ /**
+ * Return true if we should show the show in table action in the popup for the given element.
+ */
+ public boolean showGenericShowInTableOnFilter();
+
+
+
+
+ /**
+ * Given a filter, decide whether to show the Filter Strings property page
+ * for this filter. Default is true.
+ */
+ public boolean showChangeFilterStringsPropertyPage(ISystemFilter filter);
+
+
+ /**
+ * Determines whether this factory is responsible for the creation of subsytems of the specified type
+ * Subsystem factories should override this to indicate which subsystems they support.
+ *
+ * @param subSystemType type of subsystem
+ * @return whether this factory is for the specified subsystemtype
+ */
+ public boolean isFactoryFor(Class subSystemType);
+
+ // ---------------------------------
+ // FILTER REFERENCE METHODS
+ // ---------------------------------
+
+ // ---------------------------------
+ // STATE METHODS...
+ // ---------------------------------
+ /**
+ * Called by adapters prior to asking for actions, in case the connection of the currently selected
+ * object is required by the action.
+ */
+ public void setConnection(IHost connection);
+ /**
+ * Called by adapters prior to asking for actions. For cases when current selection is needed.
+ */
+ public void setCurrentSelection(Object[] selection);
+ // ---------------------------------
+ // SAVE METHODS...
+ // ---------------------------------
+ /**
+ * Saves absolutely everything to disk. This is called as a safety
+ * measure when the workbench shuts down.
+ *
+ * Totally handled for you!
+ *
+ * Calls saveSubSystems() and saveFilterPools()
+ *
+ * Exceptions are swallowed since we cannot deal with them on shutdown anyway!
+ */
+ public boolean commit();
+ /**
+ * Save one subsystem to disk.
+ * Called by each subsystem when their data changes.
+ */
+ public void saveSubSystem(ISubSystem subsys)
+ throws Exception;
+
+ /**
+ * Private. Do not call or use.
+// * This must be castable to ICellEditorValidator for the property sheet support.
+// */
+// public ISystemValidator getUserIdValidator();
+// /**
+// * Return the validator for the password which is prompted for at runtime.
+// * No default is supplied.
+// */
+// public ISystemValidator getPasswordValidator();
+// /**
+// * Return the validator for the port.
+// * A default is supplied.
+// * This must be castable to ICellEditorValidator for the property sheet support.
+// */
+// public ISystemValidator getPortValidator();
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ISubSystemConfigurationProxy.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ISubSystemConfigurationProxy.java
new file mode 100644
index 00000000000..709b932f3d6
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ISubSystemConfigurationProxy.java
@@ -0,0 +1,99 @@
+/********************************************************************************
+ * Copyright (c) 2002, 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.subsystems;
+
+/**
+ * Interface to SubSystemConfigurationExtension class
+ * Internal use, not likely you will ever need to use it or access it directly.
+ */
+public interface ISubSystemConfigurationProxy
+{
+ /**
+ * Return value of the name xml attribute.
+ * Return name of this factory. Matches value in name attribute in extension point xml
+ */
+ public String getName();
+ /**
+ * Return value of the description xml attribute.
+ * Return description of this factory. Matches value in description attribute in extension point xml
+ */
+ public String getDescription();
+ /**
+ * Return value of the id xml attribute.
+ * Return unique id of this configuration.
+ */
+ public String getId();
+ /**
+ * Return value of the systemTypes xml attribute.
+ * Return the system types this subsystem configuration supports.
+ */
+ public String[] getSystemTypes();
+ /**
+ * Return true if this factory supports all system types
+ */
+ public boolean supportsAllSystemTypes();
+
+ /**
+ * Return value of the vendor xml attribute.
+ * Return vendor of this configuration.
+ */
+ public String getVendor();
+ /**
+ * Return value of the category xml attribute.
+ * Return the category this subsystem configuration subscribes to.
+ * @see org.eclipse.rse.model.ISubSystemConfigurationCategories
+ */
+ public String getCategory();
+
+
+ /**
+ * Return true if the subsystem factory has been instantiated yet
+ */
+ public boolean isSubSystemConfigurationActive();
+
+ /**
+ * Returns the priority of the subsystem configuration.
+ */
+ public int getPriority();
+
+ /**
+ * Return the subsystem factory singleton instance. Will instantiate if not already.
+ */
+ public ISubSystemConfiguration getSubSystemConfiguration();
+ /**
+ * Return an instance of the ISystem class identified by the "systemClass" attribute
+ * of this subsystemFactory extension point. Note each call to this method returns a
+ * new instance of the class, or null if no "systemClass" attribute was specified.
+ */
+ public IConnectorService getSystemObject();
+
+ /**
+ * Test if the given system type matches one or more of the type names declared in the
+ * systemTypes attribute of this extension.
+ */
+ public boolean appliesToSystemType(String type);
+
+ /**
+ * Reset for a full refresh from disk, such as after a team synch.
+ */
+ public void reset();
+
+ /**
+ * After a reset, restore from disk
+ */
+ public void restore();
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/RemoteChildrenContentsType.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/RemoteChildrenContentsType.java
similarity index 98%
rename from rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/RemoteChildrenContentsType.java
rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/RemoteChildrenContentsType.java
index 058a7a035e5..6f1f36581b3 100644
--- a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/RemoteChildrenContentsType.java
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/RemoteChildrenContentsType.java
@@ -18,12 +18,13 @@ package org.eclipse.rse.core.subsystems;
import org.eclipse.rse.core.model.ISystemContentsType;
+
/**
* Represents contents that are children of a container
*/
public class RemoteChildrenContentsType implements ISystemContentsType
{
- public static String CONTENTS_TYPE_CHILDREN = "contents_children"; //$NON-NLS-1$
+ public static String CONTENTS_TYPE_CHILDREN = "contents_children";
public static RemoteChildrenContentsType _instance = new RemoteChildrenContentsType();
public static RemoteChildrenContentsType getInstance()
diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/ServerLaunchType.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ServerLaunchType.java
similarity index 100%
rename from rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/ServerLaunchType.java
rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ServerLaunchType.java
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/SubSystemFilterNamingPolicy.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/SubSystemFilterNamingPolicy.java
new file mode 100644
index 00000000000..167649e6c4d
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/SubSystemFilterNamingPolicy.java
@@ -0,0 +1,121 @@
+/********************************************************************************
+ * Copyright (c) 2002, 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.subsystems;
+
+import org.eclipse.rse.core.filters.IRSEFilterNamingPolicy;
+import org.eclipse.rse.core.filters.SystemFilterNamingPolicy;
+
+/**
+ * A filter naming policy is responsible for returning the save file names for
+ * a given filter framework object.
+ * This policy implements our naming policy for the filter files in the
+ * remote systems project.
+ */
+public class SubSystemFilterNamingPolicy
+ extends SystemFilterNamingPolicy
+ implements IRSEFilterNamingPolicy
+{
+
+ /**
+ * Constructor for SubSystemFilterNamingPolicy
+ */
+ public SubSystemFilterNamingPolicy()
+ {
+ super();
+ }
+
+ /**
+ * Get the unqualified save file name for the given SystemFilterPoolManager object.
+ * Do NOT include the extension, as .xmi will be added.
+ *
+ * Returns "filterPools_"+managerName by default.
+ */
+ public String getManagerSaveFileName(String managerName)
+ {
+ return super.getManagerSaveFileName(managerName);
+ }
+ /**
+ * Get the unqualified save file name for the given SystemFilterPoolReferenceManager object.
+ * Do NOT include the extension, as .xmi will be added.
+ *
+ * Returns "filterPoolRefs_"+managerName by default.
+ */
+ public String getReferenceManagerSaveFileName(String managerName)
+ {
+ return super.getReferenceManagerSaveFileName(managerName);
+ }
+ /**
+ * Get the unqualified save file name for the given SystemFilterPool object.
+ * Do NOT include the extension, as .xmi will be added.
+ *
+ * Returns getFilterPoolSaveFileNamePrefix()+poolName by default.
+ */
+ public String getFilterPoolSaveFileName(String poolName)
+ {
+ return super.getFilterPoolSaveFileName(poolName);
+ }
+ /**
+ * Get the file name prefix for all pool files.
+ * Used to deduce the saved pools by examining the file system
+ *
+ * By default returns "filterPool_"
+ */
+ public String getFilterPoolSaveFileNamePrefix()
+ {
+ return super.getFilterPoolSaveFileNamePrefix();
+ }
+ /**
+ * Get the folder name for the given SystemFilterPool object.
+ *
+ * Returns getFilterPoolFolderNamePrefix()+poolName by default.
+ */
+ public String getFilterPoolFolderName(String poolName)
+ {
+ return super.getFilterPoolFolderName(poolName);
+ }
+ /**
+ * Get the folder name prefix for all pool folders.
+ * Used to deduce the saved pools by examining the file system
+ *
+ * By default returns "FilterPool_"
+ */
+ public String getFilterPoolFolderNamePrefix()
+ {
+ return super.getFilterPoolFolderNamePrefix();
+ }
+ /**
+ * Get the unqualified save file name for the given SystemFilter object.
+ * Do NOT include the extension, as .xmi will be added.
+ *
+ * Returns getFilterSaveFileNamePrefix()+filterName by default.
+ */
+ public String getFilterSaveFileName(String filterName)
+ {
+ return super.getFilterSaveFileName(filterName);
+ }
+ /**
+ * Get the file name prefix for all filter files.
+ * Used to deduce the saved filters by examining the file system
+ *
+ * Returns "Filter_" by default.
+ */
+ public String getFilterSaveFileNamePrefix()
+ {
+ return super.getFilterSaveFileNamePrefix();
+ }
+
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/actions/SystemKillProcessAction.java b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/actions/SystemKillProcessAction.java
index 57c85c1da2b..90b5d39361d 100644
--- a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/actions/SystemKillProcessAction.java
+++ b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/actions/SystemKillProcessAction.java
@@ -27,10 +27,11 @@ import org.eclipse.jface.dialogs.ProgressMonitorDialog;
import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.rse.core.filters.ISystemFilterReference;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.filters.ISystemFilterReference;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
+import org.eclipse.rse.model.SystemRegistry;
import org.eclipse.rse.model.SystemResourceChangeEvent;
import org.eclipse.rse.processes.ui.ProcessesPlugin;
import org.eclipse.rse.processes.ui.SystemProcessesResources;
@@ -43,6 +44,7 @@ import org.eclipse.rse.subsystems.processes.core.subsystem.RemoteProcessSubSyste
import org.eclipse.rse.ui.ISystemContextMenuConstants;
import org.eclipse.rse.ui.ISystemMessages;
import org.eclipse.rse.ui.RSEUIPlugin;
+import org.eclipse.rse.ui.actions.SystemBaseAction;
import org.eclipse.rse.ui.actions.SystemBaseDialogAction;
import org.eclipse.rse.ui.messages.SystemMessageDialog;
import org.eclipse.swt.widgets.Shell;
@@ -145,7 +147,7 @@ public class SystemKillProcessAction extends SystemBaseDialogAction implements I
*/
protected IRunnableContext getRunnableContext()
{
- ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
IRunnableContext irc = sr.getRunnableContext();
if (irc == null)
irc = new ProgressMonitorDialog(getShell());
@@ -239,7 +241,7 @@ public class SystemKillProcessAction extends SystemBaseDialogAction implements I
// update the ui
- ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
for (int i = 0; i < results.size(); i++)
{
ISystemFilterReference ref = (ISystemFilterReference)results.get(i);
diff --git a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/actions/SystemNewProcessFilterAction.java b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/actions/SystemNewProcessFilterAction.java
index 2051995f595..d77a8effb56 100644
--- a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/actions/SystemNewProcessFilterAction.java
+++ b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/actions/SystemNewProcessFilterAction.java
@@ -16,7 +16,7 @@
package org.eclipse.rse.processes.ui.actions;
-import org.eclipse.rse.filters.ISystemFilterPool;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
import org.eclipse.rse.processes.ui.SystemProcessFilterStringEditPane;
import org.eclipse.rse.processes.ui.SystemProcessesResources;
import org.eclipse.rse.ui.ISystemIconConstants;
diff --git a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/dialogs/RemoteProcessesDialog.java b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/dialogs/RemoteProcessesDialog.java
index 98438f62b55..47f199e4914 100644
--- a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/dialogs/RemoteProcessesDialog.java
+++ b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/dialogs/RemoteProcessesDialog.java
@@ -21,7 +21,7 @@ import org.eclipse.jface.viewers.IDoubleClickListener;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TableLayout;
-import org.eclipse.rse.filters.ISystemFilterReference;
+import org.eclipse.rse.core.filters.ISystemFilterReference;
import org.eclipse.rse.processes.ui.SystemProcessesResources;
import org.eclipse.rse.services.clientserver.processes.IHostProcess;
import org.eclipse.rse.subsystems.processes.core.subsystem.IRemoteProcess;
diff --git a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/dialogs/SystemKillTableProvider.java b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/dialogs/SystemKillTableProvider.java
index ba66cc6a0c8..01c71d7ffe3 100644
--- a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/dialogs/SystemKillTableProvider.java
+++ b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/dialogs/SystemKillTableProvider.java
@@ -19,6 +19,7 @@ package org.eclipse.rse.processes.ui.dialogs;
import java.util.Iterator;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.rse.ui.dialogs.SystemDeleteTableProvider;
diff --git a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/propertypages/ProcessServicesPropertyPage.java b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/propertypages/ProcessServicesPropertyPage.java
index 08966d237dd..385b4fb62bb 100644
--- a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/propertypages/ProcessServicesPropertyPage.java
+++ b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/propertypages/ProcessServicesPropertyPage.java
@@ -19,10 +19,10 @@ package org.eclipse.rse.processes.ui.propertypages;
import java.util.ArrayList;
import java.util.List;
-import org.eclipse.rse.core.servicesubsystem.IServiceSubSystemConfiguration;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.ISystemRegistry;
+import org.eclipse.rse.core.subsystems.IServiceSubSystemConfiguration;
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.subsystems.processes.servicesubsystem.IProcessServiceSubSystemConfiguration;
import org.eclipse.rse.subsystems.processes.servicesubsystem.ProcessServiceSubSystem;
import org.eclipse.rse.ui.RSEUIPlugin;
diff --git a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/view/RemoteProcessSubSystemConfigurationAdapter.java b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/view/RemoteProcessSubSystemConfigurationAdapter.java
index e53d141129f..e29c855983b 100644
--- a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/view/RemoteProcessSubSystemConfigurationAdapter.java
+++ b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/view/RemoteProcessSubSystemConfigurationAdapter.java
@@ -19,9 +19,9 @@ package org.eclipse.rse.processes.ui.view;
import java.util.Vector;
import org.eclipse.jface.action.IAction;
+import org.eclipse.rse.core.filters.ISystemFilter;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
-import org.eclipse.rse.filters.ISystemFilter;
-import org.eclipse.rse.filters.ISystemFilterPool;
import org.eclipse.rse.processes.ui.actions.SystemNewProcessFilterAction;
import org.eclipse.rse.processes.ui.actions.SystemProcessUpdateFilterAction;
import org.eclipse.rse.ui.view.SubSystemConfigurationAdapter;
diff --git a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/view/SystemViewProcessAdapterFactory.java b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/view/SystemViewProcessAdapterFactory.java
index 2b6242a6ea0..1f7bf8e170b 100644
--- a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/view/SystemViewProcessAdapterFactory.java
+++ b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/view/SystemViewProcessAdapterFactory.java
@@ -16,6 +16,7 @@
package org.eclipse.rse.processes.ui.view;
+import org.eclipse.core.runtime.IAdapterFactory;
import org.eclipse.core.runtime.IAdapterManager;
import org.eclipse.rse.core.SystemBasePlugin;
import org.eclipse.rse.subsystems.processes.core.subsystem.IRemoteProcess;
diff --git a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/view/SystemViewRemoteProcessAdapter.java b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/view/SystemViewRemoteProcessAdapter.java
index bdf188a334a..7995116d4ad 100644
--- a/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/view/SystemViewRemoteProcessAdapter.java
+++ b/rse/plugins/org.eclipse.rse.processes.ui/src/org/eclipse/rse/processes/ui/view/SystemViewRemoteProcessAdapter.java
@@ -107,13 +107,13 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
public ImageDescriptor getImageDescriptor(Object element)
{
//return RSEUIPlugin.getDefault().getImageDescriptor(ISystemIconConstants.ICON_SYSTEM_PROCESS_ID);
- return ProcessesPlugin.getDefault().getImageDescriptorFromPath("icons/full/obj16/activeprocess_obj.gif"); //$NON-NLS-1$
+ return ProcessesPlugin.getDefault().getImageDescriptorFromPath("icons/full/obj16/activeprocess_obj.gif");
}
public String getText(Object element)
{
String text = ((IRemoteProcess) element).getLabel();
- return (text == null) ? "" : text; //$NON-NLS-1$
+ return (text == null) ? "" : text;
}
/**
@@ -129,7 +129,7 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
public String getAbsoluteName(Object object)
{
IRemoteProcess process = (IRemoteProcess) object;
- return "" + process.getPid(); //$NON-NLS-1$
+ return "" + process.getPid();
}
public String getType(Object element)
@@ -259,7 +259,7 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
{
if (formatted)
{
- return "" + process.getGid(); //$NON-NLS-1$
+ return "" + process.getGid();
}
else
{
@@ -274,7 +274,7 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
{
if (formatted)
{
- return "" + process.getPid(); //$NON-NLS-1$
+ return "" + process.getPid();
}
else
{
@@ -285,7 +285,7 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
{
if (formatted)
{
- return "" + process.getPPid(); //$NON-NLS-1$
+ return "" + process.getPPid();
}
else
{
@@ -307,7 +307,7 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
{
if (formatted)
{
- return "" + process.getTgid(); //$NON-NLS-1$
+ return "" + process.getTgid();
}
else
{
@@ -318,7 +318,7 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
{
if (formatted)
{
- return "" + process.getTracerPid(); //$NON-NLS-1$
+ return "" + process.getTracerPid();
}
else
{
@@ -329,7 +329,7 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
{
if (formatted)
{
- return "" + process.getUid(); //$NON-NLS-1$
+ return "" + process.getUid();
}
else
{
@@ -368,18 +368,18 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
protected String formatState(String state)
{
- if (state == null) return ""; //$NON-NLS-1$
+ if (state == null) return "";
state = state.trim();
- String longState = ""; //$NON-NLS-1$
- String[] allStates = state.split(","); //$NON-NLS-1$
+ String longState = "";
+ String[] allStates = state.split(",");
if (allStates == null) return longState;
SystemProcessStatesContentProvider zstates = new SystemProcessStatesContentProvider();
for (int i = 0; i < allStates.length; i++)
{
- longState = longState + allStates[i].charAt(0) + "-" + zstates.getStateString(allStates[i]); //$NON-NLS-1$
+ longState = longState + allStates[i].charAt(0) + "-" + zstates.getStateString(allStates[i]);
if (i < allStates.length - 1)
- longState = longState + ", "; //$NON-NLS-1$
+ longState = longState + ", ";
}
return longState;
}
@@ -392,7 +392,7 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
IRemoteProcess process = (IRemoteProcess) element;
IRemoteProcess parent = process.getParentRemoteProcess();
if (parent != null) return parent.getAbsolutePath();
- else return "/proc/0"; //$NON-NLS-1$
+ else return "/proc/0";
}
/**
@@ -422,8 +422,8 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
String[] pids = EMPTY_STRING_LIST;
IRemoteProcess process = (IRemoteProcess) element;
- String parentName = "" + process.getPPid(); //$NON-NLS-1$
- if (parentName.equals("-1")) // given a root? //$NON-NLS-1$
+ String parentName = "" + process.getPPid();
+ if (parentName.equals("-1")) // given a root?
return pids; // not much we can do. Should never happen: you can't rename a root!
Object[] children = getChildren(process.getParentRemoteProcess());
@@ -432,7 +432,7 @@ public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
pids = new String[children.length];
for (int idx = 0; idx < pids.length; idx++)
- pids[idx] = "" + ((IRemoteProcess) children[idx]).getPid(); //$NON-NLS-1$
+ pids[idx] = "" + ((IRemoteProcess) children[idx]).getPid();
return pids;
}
diff --git a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/RemoteCommandHelpers.java b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/RemoteCommandHelpers.java
index d8bf4f30223..b90c137f4a0 100644
--- a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/RemoteCommandHelpers.java
+++ b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/RemoteCommandHelpers.java
@@ -20,11 +20,11 @@ import java.util.ArrayList;
import java.util.List;
import org.eclipse.rse.core.SystemBasePlugin;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.internal.subsystems.shells.subsystems.RemoteCmdSubSystem;
import org.eclipse.rse.internal.subsystems.shells.subsystems.RemoteCommandShell;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.shells.ui.view.SystemCommandsUI;
import org.eclipse.rse.shells.ui.view.SystemCommandsViewPart;
import org.eclipse.rse.subsystems.files.core.model.RemoteFileUtility;
diff --git a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/SystemRemoteCommandEntryForm.java b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/SystemRemoteCommandEntryForm.java
index eb165ddb8a1..aabc608a6dc 100644
--- a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/SystemRemoteCommandEntryForm.java
+++ b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/SystemRemoteCommandEntryForm.java
@@ -16,8 +16,8 @@
package org.eclipse.rse.shells.ui;
import org.eclipse.rse.core.SystemBasePlugin;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.model.ISubSystemConfigurationCategories;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.model.ISystemResourceChangeEvent;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
import org.eclipse.rse.subsystems.files.core.model.ISystemRemoteCommand;
diff --git a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/actions/SystemCommandAction.java b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/actions/SystemCommandAction.java
index 1520a6ef7d5..5afdec48ad7 100644
--- a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/actions/SystemCommandAction.java
+++ b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/actions/SystemCommandAction.java
@@ -22,9 +22,9 @@ import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.window.Window;
+import org.eclipse.rse.core.filters.ISystemFilterReference;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.filters.ISystemFilterReference;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
import org.eclipse.rse.shells.ui.RemoteCommandHelpers;
import org.eclipse.rse.shells.ui.ShellResources;
diff --git a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/propertypages/ShellServicesPropertyPage.java b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/propertypages/ShellServicesPropertyPage.java
index 78f62b11f17..16bd5b0de74 100644
--- a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/propertypages/ShellServicesPropertyPage.java
+++ b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/propertypages/ShellServicesPropertyPage.java
@@ -19,11 +19,11 @@ package org.eclipse.rse.shells.ui.propertypages;
import java.util.ArrayList;
import java.util.List;
-import org.eclipse.rse.core.servicesubsystem.IServiceSubSystemConfiguration;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.ISystemRegistry;
+import org.eclipse.rse.core.subsystems.IServiceSubSystemConfiguration;
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
import org.eclipse.rse.model.DummyHost;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.subsystems.shells.core.subsystems.servicesubsystem.IShellServiceSubSystemConfiguration;
import org.eclipse.rse.subsystems.shells.core.subsystems.servicesubsystem.ShellServiceSubSystem;
import org.eclipse.rse.ui.RSEUIPlugin;
diff --git a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/CommandsViewPage.java b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/CommandsViewPage.java
index 1bce5476d86..6f4ba95bb8e 100644
--- a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/CommandsViewPage.java
+++ b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/CommandsViewPage.java
@@ -27,9 +27,9 @@ import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.TableLayout;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.internal.subsystems.shells.subsystems.RemoteOutput;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
import org.eclipse.rse.shells.ui.ShellResources;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
diff --git a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/SystemBuildErrorViewPart.java b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/SystemBuildErrorViewPart.java
index 1f097036e3e..0ba643fa852 100644
--- a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/SystemBuildErrorViewPart.java
+++ b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/SystemBuildErrorViewPart.java
@@ -27,11 +27,12 @@ import org.eclipse.jface.viewers.IDoubleClickListener;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.subsystems.IRemoteLineReference;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.model.ISystemResourceChangeEvent;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
import org.eclipse.rse.model.ISystemResourceChangeListener;
+import org.eclipse.rse.model.SystemRegistry;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCmdSubSystem;
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCommandShell;
@@ -208,7 +209,7 @@ public class SystemBuildErrorViewPart extends ViewPart implements ISelectionList
ISelectionService selectionService = getSite().getWorkbenchWindow().getSelectionService();
selectionService.addSelectionListener(this);
- ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
registry.addSystemResourceChangeListener(this);
@@ -251,7 +252,7 @@ public class SystemBuildErrorViewPart extends ViewPart implements ISelectionList
selectionService.removeSelectionListener(this);
_viewer.dispose();
- ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
registry.removeSystemResourceChangeListener(this);
super.dispose();
}
diff --git a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/SystemCommandsViewPart.java b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/SystemCommandsViewPart.java
index 6967cddfff5..7b88974e0d5 100644
--- a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/SystemCommandsViewPart.java
+++ b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/SystemCommandsViewPart.java
@@ -35,12 +35,13 @@ import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.model.ISystemResourceChangeEvent;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
import org.eclipse.rse.model.ISystemResourceChangeListener;
+import org.eclipse.rse.model.SystemRegistry;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
import org.eclipse.rse.shells.ui.RemoteCommandHelpers;
import org.eclipse.rse.shells.ui.ShellResources;
@@ -314,7 +315,7 @@ public class SystemCommandsViewPart
SystemWidgetHelpers.setHelp(_folder, RSEUIPlugin.HELPPREFIX + "ucmd0000"); //$NON-NLS-1$
- ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
@@ -336,7 +337,7 @@ public class SystemCommandsViewPart
selectionService.removeSelectionListener(this);
_folder.dispose();
- ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
registry.removeSystemResourceChangeListener(this);
super.dispose();
}
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/internal/subsystems/files/core/SystemFileAPIProviderImpl.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/internal/subsystems/files/core/SystemFileAPIProviderImpl.java
index 48adcc4099b..c99030c1f39 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/internal/subsystems/files/core/SystemFileAPIProviderImpl.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/internal/subsystems/files/core/SystemFileAPIProviderImpl.java
@@ -15,9 +15,9 @@
********************************************************************************/
package org.eclipse.rse.internal.subsystems.files.core;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemRegistry;
+import org.eclipse.rse.model.SystemRegistry;
import org.eclipse.rse.subsystems.files.core.model.ISystemFileAPIProvider;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
import org.eclipse.rse.ui.RSEUIPlugin;
@@ -33,7 +33,7 @@ public class SystemFileAPIProviderImpl
{
- protected ISystemRegistry sr = null;
+ protected SystemRegistry sr = null;
protected boolean directoryMode = false;
//protected Object[] emptyList = new Object[0];
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/internal/subsystems/files/core/SystemFileSubSystemAPIProviderImpl.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/internal/subsystems/files/core/SystemFileSubSystemAPIProviderImpl.java
index 24ccce5b793..451f7999df8 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/internal/subsystems/files/core/SystemFileSubSystemAPIProviderImpl.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/internal/subsystems/files/core/SystemFileSubSystemAPIProviderImpl.java
@@ -16,7 +16,7 @@
package org.eclipse.rse.internal.subsystems.files.core;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.rse.model.IHost;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.subsystems.files.core.model.ISystemFileAPIProvider;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/internal/subsystems/files/core/SystemFileSubSystemConfigurationAPIProviderImpl.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/internal/subsystems/files/core/SystemFileSubSystemConfigurationAPIProviderImpl.java
index 99f27420857..96fa640a9a2 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/internal/subsystems/files/core/SystemFileSubSystemConfigurationAPIProviderImpl.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/internal/subsystems/files/core/SystemFileSubSystemConfigurationAPIProviderImpl.java
@@ -16,8 +16,8 @@
package org.eclipse.rse.internal.subsystems.files.core;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.subsystems.files.core.model.ISystemFileAPIProvider;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystemConfiguration;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/model/ISystemFileAPIProvider.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/model/ISystemFileAPIProvider.java
index 7dcc4465da1..62a9d84f802 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/model/ISystemFileAPIProvider.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/model/ISystemFileAPIProvider.java
@@ -15,7 +15,7 @@
********************************************************************************/
package org.eclipse.rse.subsystems.files.core.model;
-import org.eclipse.rse.model.IHost;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.ui.view.ISystemViewInputProvider;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/model/RemoteFileUtility.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/model/RemoteFileUtility.java
index 2f89405b1f3..f988d74d2c7 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/model/RemoteFileUtility.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/model/RemoteFileUtility.java
@@ -19,10 +19,10 @@ package org.eclipse.rse.subsystems.files.core.model;
import java.util.ArrayList;
import java.util.List;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystemConfiguration;
import org.eclipse.rse.ui.RSEUIPlugin;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/model/RemotePath.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/model/RemotePath.java
index 1a2bec00f1c..8bd09c147ca 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/model/RemotePath.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/model/RemotePath.java
@@ -17,9 +17,9 @@
package org.eclipse.rse.subsystems.files.core.model;
import org.eclipse.rse.core.SystemBasePlugin;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemProfile;
-import org.eclipse.rse.model.ISystemRegistry;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.ISystemProfile;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.services.clientserver.archiveutils.ArchiveHandlerManager;
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/AbstractRemoteFile.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/AbstractRemoteFile.java
index b7bfb8299df..aa19736bdb3 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/AbstractRemoteFile.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/AbstractRemoteFile.java
@@ -16,7 +16,7 @@
package org.eclipse.rse.subsystems.files.core.servicesubsystem;
-import org.eclipse.rse.model.IHost;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.services.files.IHostFile;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileContext;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileServiceSubSystem.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileServiceSubSystem.java
index 3b489fec531..3e095769cee 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileServiceSubSystem.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileServiceSubSystem.java
@@ -22,11 +22,11 @@ import java.io.InputStream;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.rse.core.SystemBasePlugin;
-import org.eclipse.rse.core.servicesubsystem.IServiceSubSystemConfiguration;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.IConnectorService;
+import org.eclipse.rse.core.subsystems.IServiceSubSystemConfiguration;
import org.eclipse.rse.core.subsystems.RemoteChildrenContentsType;
import org.eclipse.rse.internal.subsystems.files.core.ILanguageUtilityFactory;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.clientserver.PathUtility;
import org.eclipse.rse.services.clientserver.SystemEncodingUtil;
import org.eclipse.rse.services.clientserver.SystemSearchString;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileServiceSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileServiceSubSystemConfiguration.java
index 63ab897d457..0dee9969d5a 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileServiceSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileServiceSubSystemConfiguration.java
@@ -19,7 +19,7 @@ package org.eclipse.rse.subsystems.files.core.servicesubsystem;
import java.util.HashMap;
import java.util.Map;
-import org.eclipse.rse.model.IHost;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.services.IService;
import org.eclipse.rse.services.files.IFileService;
import org.eclipse.rse.services.search.ISearchService;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/IFileServiceSubSystem.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/IFileServiceSubSystem.java
index fb04a645bca..6e56d32c144 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/IFileServiceSubSystem.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/IFileServiceSubSystem.java
@@ -17,7 +17,7 @@
package org.eclipse.rse.subsystems.files.core.servicesubsystem;
-import org.eclipse.rse.core.servicesubsystem.IServiceSubSystem;
+import org.eclipse.rse.core.subsystems.IServiceSubSystem;
import org.eclipse.rse.services.clientserver.SystemSearchString;
import org.eclipse.rse.services.files.IFileService;
import org.eclipse.rse.services.search.IHostSearchResultConfiguration;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/IFileServiceSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/IFileServiceSubSystemConfiguration.java
index 03356f09447..4e3856da31c 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/IFileServiceSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/IFileServiceSubSystemConfiguration.java
@@ -17,9 +17,9 @@
package org.eclipse.rse.subsystems.files.core.servicesubsystem;
-import org.eclipse.rse.core.servicesubsystem.IServiceSubSystemConfiguration;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.subsystems.IServiceSubSystemConfiguration;
import org.eclipse.rse.internal.subsystems.files.core.ILanguageUtilityFactory;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.clientserver.SystemSearchString;
import org.eclipse.rse.services.files.IFileService;
import org.eclipse.rse.services.search.IHostSearchResultConfiguration;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/OutputRefresh.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/OutputRefresh.java
index a68fd85884e..4edce04d152 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/OutputRefresh.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/OutputRefresh.java
@@ -16,8 +16,8 @@
package org.eclipse.rse.subsystems.files.core.servicesubsystem;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
+import org.eclipse.rse.model.SystemRegistry;
import org.eclipse.rse.model.SystemResourceChangeEvent;
import org.eclipse.rse.services.search.IHostSearchConstants;
import org.eclipse.rse.services.search.IHostSearchResultConfiguration;
@@ -39,7 +39,7 @@ public class OutputRefresh implements Runnable
if (searchConfig != null)
{
- ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
registry.fireEvent(new SystemResourceChangeEvent(searchConfig, ISystemResourceChangeEvents.EVENT_REFRESH, null));
if (isDone)
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/IRemoteFile.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/IRemoteFile.java
index 57ceb265b49..830dc260834 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/IRemoteFile.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/IRemoteFile.java
@@ -18,9 +18,9 @@ package org.eclipse.rse.subsystems.files.core.subsystems;
import java.util.Date;
import org.eclipse.core.runtime.jobs.ISchedulingRule;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.IRemoteContainer;
import org.eclipse.rse.core.subsystems.IRemotePropertyHolder;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.files.IHostFile;
import org.eclipse.rse.subsystems.files.core.model.RemoteFileFilterString;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFile.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFile.java
index 5beacc7e464..f9da1f93776 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFile.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFile.java
@@ -30,10 +30,10 @@ import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.core.runtime.jobs.MultiRule;
import org.eclipse.rse.core.SystemBasePlugin;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.model.ISystemContentsType;
import org.eclipse.rse.core.subsystems.IRemoteContainer;
import org.eclipse.rse.core.subsystems.RemoteChildrenContentsType;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.clientserver.StringComparePatternMatcher;
import org.eclipse.rse.services.clientserver.archiveutils.ArchiveHandlerManager;
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFileSubSystem.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFileSubSystem.java
index f8e86006cb3..3dbb5e92875 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFileSubSystem.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFileSubSystem.java
@@ -35,6 +35,9 @@ import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.rse.core.SystemBasePlugin;
+import org.eclipse.rse.core.filters.ISystemFilterReference;
+import org.eclipse.rse.core.filters.ISystemFilterString;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.model.ISystemMessageObject;
import org.eclipse.rse.core.model.SystemChildrenContentsType;
import org.eclipse.rse.core.model.SystemMessageObject;
@@ -42,11 +45,9 @@ import org.eclipse.rse.core.subsystems.CommunicationsEvent;
import org.eclipse.rse.core.subsystems.ICommunicationsListener;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.IRemoteContainer;
+import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
import org.eclipse.rse.core.subsystems.RemoteChildrenContentsType;
import org.eclipse.rse.core.subsystems.SubSystem;
-import org.eclipse.rse.filters.ISystemFilterReference;
-import org.eclipse.rse.filters.ISystemFilterString;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.model.SystemRemoteResourceSet;
import org.eclipse.rse.services.clientserver.FileTypeMatcher;
import org.eclipse.rse.services.clientserver.IClientServerConstants;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFileSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFileSubSystemConfiguration.java
index 7b3ce41d4ad..7aac9d8f4b6 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFileSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFileSubSystemConfiguration.java
@@ -18,20 +18,20 @@ package org.eclipse.rse.subsystems.files.core.subsystems;
import java.util.Vector;
import org.eclipse.rse.core.SystemBasePlugin;
+import org.eclipse.rse.core.filters.ISystemFilter;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
+import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.ISystemNewConnectionWizardPage;
import org.eclipse.rse.core.subsystems.IFileConstants;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.core.subsystems.SubSystemConfiguration;
-import org.eclipse.rse.filters.ISystemFilter;
-import org.eclipse.rse.filters.ISystemFilterPool;
-import org.eclipse.rse.filters.ISystemFilterPoolManager;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.subsystems.files.core.SystemFileResources;
import org.eclipse.rse.subsystems.files.core.model.RemoteFileFilterString;
import org.eclipse.rse.subsystems.files.core.util.ValidatorFileFilterString;
import org.eclipse.rse.ui.validators.ISystemValidator;
import org.eclipse.rse.ui.validators.ValidatorFileName;
import org.eclipse.rse.ui.validators.ValidatorFolderName;
-import org.eclipse.rse.ui.wizards.ISystemNewConnectionWizardPage;
/**
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/old/SearchResultsChangeListener.java b/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/old/SearchResultsChangeListener.java
index 29a5f6668b1..3198a3de2c9 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/old/SearchResultsChangeListener.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/old/SearchResultsChangeListener.java
@@ -24,11 +24,12 @@ import org.eclipse.dstore.core.model.DataElement;
import org.eclipse.dstore.core.model.DataStore;
import org.eclipse.dstore.extra.internal.extra.DomainEvent;
import org.eclipse.dstore.extra.internal.extra.IDomainListener;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.subsystems.CommunicationsEvent;
import org.eclipse.rse.core.subsystems.ICommunicationsListener;
import org.eclipse.rse.dstore.universal.miners.IUniversalDataStoreConstants;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
+import org.eclipse.rse.model.SystemRegistry;
import org.eclipse.rse.model.SystemResourceChangeEvent;
import org.eclipse.rse.services.clientserver.archiveutils.ArchiveHandlerManager;
import org.eclipse.rse.services.search.IHostSearchResultConfiguration;
@@ -156,7 +157,7 @@ public class SearchResultsChangeListener implements IDomainListener, ICommunicat
}
private void handleSearchResults() {
- ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
// append new results to existing results
List results = _status.getNestedData();
@@ -353,7 +354,7 @@ public class SearchResultsChangeListener implements IDomainListener, ICommunicat
_searchConfig.setStatus(IRemoteSearchConstants.DISCONNECTED);
}
- ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
registry.fireEvent(new SystemResourceChangeEvent(_searchConfig, ISystemResourceChangeEvents.EVENT_SEARCH_FINISHED, null));
}
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/subsystem/DStoreFileSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/subsystem/DStoreFileSubSystemConfiguration.java
index 538a2842ae8..8610ae38bbb 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/subsystem/DStoreFileSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/subsystem/DStoreFileSubSystemConfiguration.java
@@ -18,10 +18,10 @@ package org.eclipse.rse.subsystems.files.dstore.subsystem;
import org.eclipse.rse.connectorservice.dstore.DStoreConnectorService;
import org.eclipse.rse.connectorservice.dstore.DStoreConnectorServiceManager;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.internal.subsystems.files.core.ILanguageUtilityFactory;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.clientserver.SystemSearchString;
import org.eclipse.rse.services.dstore.IDStoreService;
import org.eclipse.rse.services.dstore.files.DStoreFileService;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/subsystem/DStoreWindowsFileSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/subsystem/DStoreWindowsFileSubSystemConfiguration.java
index b620fa62b63..fa61baf37e1 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/subsystem/DStoreWindowsFileSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/subsystem/DStoreWindowsFileSubSystemConfiguration.java
@@ -3,9 +3,9 @@ package org.eclipse.rse.subsystems.files.dstore.subsystem;
import java.util.Vector;
import org.eclipse.rse.core.SystemBasePlugin;
-import org.eclipse.rse.filters.ISystemFilter;
-import org.eclipse.rse.filters.ISystemFilterPool;
-import org.eclipse.rse.filters.ISystemFilterPoolManager;
+import org.eclipse.rse.core.filters.ISystemFilter;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
+import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
import org.eclipse.rse.subsystems.files.core.SystemFileResources;
import org.eclipse.rse.subsystems.files.core.model.RemoteFileFilterString;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/subsystem/RemoteFilePropertyChangeListener.java b/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/subsystem/RemoteFilePropertyChangeListener.java
index a956e1e9843..7015c4153a8 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/subsystem/RemoteFilePropertyChangeListener.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.dstore/src/org/eclipse/rse/subsystems/files/dstore/subsystem/RemoteFilePropertyChangeListener.java
@@ -28,12 +28,13 @@ import org.eclipse.dstore.core.model.DataStore;
import org.eclipse.dstore.extra.internal.extra.DomainEvent;
import org.eclipse.dstore.extra.internal.extra.IDomainListener;
import org.eclipse.rse.core.SystemBasePlugin;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.subsystems.CommunicationsEvent;
import org.eclipse.rse.core.subsystems.ICommunicationsListener;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.dstore.universal.miners.IUniversalDataStoreConstants;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
+import org.eclipse.rse.model.SystemRegistry;
import org.eclipse.rse.subsystems.files.core.SystemFileResources;
import org.eclipse.rse.subsystems.files.core.servicesubsystem.FileServiceSubSystem;
import org.eclipse.rse.subsystems.files.dstore.model.DStoreFile;
@@ -54,7 +55,7 @@ public class RemoteFilePropertyChangeListener implements IDomainListener,
protected Shell shell;
- protected ISystemRegistry _registry;
+ protected SystemRegistry _registry;
protected IConnectorService system;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/subsystems/files/ftp/FTPFileSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/subsystems/files/ftp/FTPFileSubSystemConfiguration.java
index 8c0c1a915df..d196b1fef97 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/subsystems/files/ftp/FTPFileSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/subsystems/files/ftp/FTPFileSubSystemConfiguration.java
@@ -16,10 +16,10 @@
package org.eclipse.rse.subsystems.files.ftp;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.internal.subsystems.files.core.ILanguageUtilityFactory;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.clientserver.SystemSearchString;
import org.eclipse.rse.services.files.IFileService;
import org.eclipse.rse.services.files.ftp.IFTPService;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/subsystems/files/ftp/connectorservice/FTPConnectorService.java b/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/subsystems/files/ftp/connectorservice/FTPConnectorService.java
index 9cf233f48df..2e51a71bd79 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/subsystems/files/ftp/connectorservice/FTPConnectorService.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/subsystems/files/ftp/connectorservice/FTPConnectorService.java
@@ -17,9 +17,9 @@
package org.eclipse.rse.subsystems.files.ftp.connectorservice;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.SystemSignonInformation;
import org.eclipse.rse.core.subsystems.AbstractConnectorService;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.SystemSignonInformation;
import org.eclipse.rse.services.files.IFileService;
import org.eclipse.rse.services.files.ftp.FTPService;
import org.eclipse.rse.subsystems.files.core.SystemFileResources;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/subsystems/files/ftp/connectorservice/FTPConnectorServiceManager.java b/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/subsystems/files/ftp/connectorservice/FTPConnectorServiceManager.java
index 2996981261e..3e6eabe1294 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/subsystems/files/ftp/connectorservice/FTPConnectorServiceManager.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.ftp/src/org/eclipse/rse/subsystems/files/ftp/connectorservice/FTPConnectorServiceManager.java
@@ -17,10 +17,10 @@
package org.eclipse.rse.subsystems.files.ftp.connectorservice;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.model.IHost;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.local/src/org/eclipse/rse/subsystems/files/local/LocalFileSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.files.local/src/org/eclipse/rse/subsystems/files/local/LocalFileSubSystemConfiguration.java
index 277f8dc7252..a7287653f59 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.local/src/org/eclipse/rse/subsystems/files/local/LocalFileSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.local/src/org/eclipse/rse/subsystems/files/local/LocalFileSubSystemConfiguration.java
@@ -21,12 +21,12 @@ import java.util.Vector;
import org.eclipse.rse.connectorservice.local.LocalConnectorService;
import org.eclipse.rse.connectorservice.local.LocalConnectorServiceManager;
import org.eclipse.rse.core.SystemBasePlugin;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
+import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.filters.ISystemFilterPool;
-import org.eclipse.rse.filters.ISystemFilterPoolManager;
import org.eclipse.rse.internal.subsystems.files.core.ILanguageUtilityFactory;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.clientserver.SystemSearchString;
import org.eclipse.rse.services.files.IFileService;
import org.eclipse.rse.services.local.ILocalService;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.ssh/src/org/eclipse/rse/subsystems/files/ssh/SftpFileSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.files.ssh/src/org/eclipse/rse/subsystems/files/ssh/SftpFileSubSystemConfiguration.java
index 5a4434e766f..08a9b0d1d7e 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.files.ssh/src/org/eclipse/rse/subsystems/files/ssh/SftpFileSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.files.ssh/src/org/eclipse/rse/subsystems/files/ssh/SftpFileSubSystemConfiguration.java
@@ -13,10 +13,10 @@ package org.eclipse.rse.subsystems.files.ssh;
import org.eclipse.rse.connectorservice.ssh.SshConnectorService;
import org.eclipse.rse.connectorservice.ssh.SshConnectorServiceManager;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.internal.subsystems.files.core.ILanguageUtilityFactory;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.clientserver.SystemSearchString;
import org.eclipse.rse.services.files.IFileService;
import org.eclipse.rse.services.search.IHostSearchResultConfiguration;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.processes.dstore/src/org/eclipse/rse/subsystems/processes/dstore/DStoreProcessSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.processes.dstore/src/org/eclipse/rse/subsystems/processes/dstore/DStoreProcessSubSystemConfiguration.java
index 206697d9dd1..401bbe07a9d 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.processes.dstore/src/org/eclipse/rse/subsystems/processes/dstore/DStoreProcessSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.processes.dstore/src/org/eclipse/rse/subsystems/processes/dstore/DStoreProcessSubSystemConfiguration.java
@@ -18,9 +18,9 @@ package org.eclipse.rse.subsystems.processes.dstore;
import org.eclipse.rse.connectorservice.dstore.DStoreConnectorService;
import org.eclipse.rse.connectorservice.dstore.DStoreConnectorServiceManager;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.dstore.IDStoreService;
import org.eclipse.rse.services.dstore.processes.DStoreProcessService;
import org.eclipse.rse.services.processes.IProcessService;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.processes.local/src/org/eclipse/rse/subsystems/processes/local/LocalProcessSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.processes.local/src/org/eclipse/rse/subsystems/processes/local/LocalProcessSubSystemConfiguration.java
index 9310a45453b..b901ddee4f4 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.processes.local/src/org/eclipse/rse/subsystems/processes/local/LocalProcessSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.processes.local/src/org/eclipse/rse/subsystems/processes/local/LocalProcessSubSystemConfiguration.java
@@ -19,9 +19,9 @@ package org.eclipse.rse.subsystems.processes.local;
import org.eclipse.rse.connectorservice.local.LocalConnectorService;
import org.eclipse.rse.connectorservice.local.LocalConnectorServiceManager;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.local.ILocalService;
import org.eclipse.rse.services.local.processes.LocalProcessService;
import org.eclipse.rse.services.processes.IProcessService;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/servicesubsystem/OutputRefreshJob.java b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/servicesubsystem/OutputRefreshJob.java
index b03afede9df..48d2f1ce7bb 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/servicesubsystem/OutputRefreshJob.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/servicesubsystem/OutputRefreshJob.java
@@ -19,8 +19,9 @@ package org.eclipse.rse.internal.subsystems.shells.servicesubsystem;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
-import org.eclipse.rse.model.ISystemRegistry;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
+import org.eclipse.rse.model.SystemRegistry;
import org.eclipse.rse.model.SystemResourceChangeEvent;
import org.eclipse.rse.subsystems.shells.core.ShellStrings;
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCommandShell;
@@ -73,7 +74,7 @@ public class OutputRefreshJob extends UIJob
{
try
{
- ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
if (_outputs != null)
{
registry.fireEvent(
diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/subsystems/RemoteCmdSubSystem.java b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/subsystems/RemoteCmdSubSystem.java
index e515524bca6..be3d50fafb9 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/subsystems/RemoteCmdSubSystem.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/subsystems/RemoteCmdSubSystem.java
@@ -26,15 +26,16 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.rse.core.SystemBasePlugin;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.model.IPropertySet;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.subsystems.CommunicationsEvent;
import org.eclipse.rse.core.subsystems.ICommunicationsListener;
import org.eclipse.rse.core.subsystems.IConnectorService;
import org.eclipse.rse.core.subsystems.IRemoteSystemEnvVar;
import org.eclipse.rse.core.subsystems.SubSystem;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
+import org.eclipse.rse.model.SystemRegistry;
import org.eclipse.rse.model.SystemResourceChangeEvent;
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
import org.eclipse.rse.subsystems.files.core.model.RemoteFileUtility;
@@ -704,7 +705,7 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
public void run()
{
- ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
registry.fireEvent(new SystemResourceChangeEvent(_ss, ISystemResourceChangeEvents.EVENT_REFRESH, _ss));
}
}
@@ -722,7 +723,7 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
public void run()
{
- ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
registry.fireEvent(new SystemResourceChangeEvent(_cmdShell, ISystemResourceChangeEvents.EVENT_COMMAND_SHELL_REMOVED, null));
registry.fireEvent(new SystemResourceChangeEvent(_ss, ISystemResourceChangeEvents.EVENT_REFRESH, _ss));
}
@@ -875,7 +876,7 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
}
}
- ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
+ SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
registry.fireEvent(new SystemResourceChangeEvent(this, ISystemResourceChangeEvents.EVENT_REFRESH, this));
return cmdShell;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/subsystems/RemoteCmdSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/subsystems/RemoteCmdSubSystemConfiguration.java
index da3e7d30f0e..74cb509f8c0 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/subsystems/RemoteCmdSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/subsystems/RemoteCmdSubSystemConfiguration.java
@@ -16,10 +16,10 @@
package org.eclipse.rse.internal.subsystems.shells.subsystems;
+import org.eclipse.rse.core.filters.ISystemFilter;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
+import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
import org.eclipse.rse.core.subsystems.SubSystemConfiguration;
-import org.eclipse.rse.filters.ISystemFilter;
-import org.eclipse.rse.filters.ISystemFilterPool;
-import org.eclipse.rse.filters.ISystemFilterPoolManager;
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCmdSubSystemConfiguration;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/subsystems/RemoteCommandShell.java b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/subsystems/RemoteCommandShell.java
index 2e5eb6ebf13..68aeb831c5e 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/subsystems/RemoteCommandShell.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/subsystems/RemoteCommandShell.java
@@ -21,9 +21,9 @@ import java.util.List;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.subsystems.files.core.model.RemoteFileUtility;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/IShellServiceSubSystem.java b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/IShellServiceSubSystem.java
index 6254bd7d147..564e815911f 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/IShellServiceSubSystem.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/IShellServiceSubSystem.java
@@ -17,7 +17,7 @@
package org.eclipse.rse.subsystems.shells.core.subsystems.servicesubsystem;
-import org.eclipse.rse.core.servicesubsystem.IServiceSubSystem;
+import org.eclipse.rse.core.subsystems.IServiceSubSystem;
import org.eclipse.rse.services.shells.IShellService;
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCmdSubSystem;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/IShellServiceSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/IShellServiceSubSystemConfiguration.java
index 9439ce2ed61..c0db48e0d31 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/IShellServiceSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/IShellServiceSubSystemConfiguration.java
@@ -17,8 +17,8 @@
package org.eclipse.rse.subsystems.shells.core.subsystems.servicesubsystem;
-import org.eclipse.rse.core.servicesubsystem.IServiceSubSystemConfiguration;
-import org.eclipse.rse.model.IHost;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.subsystems.IServiceSubSystemConfiguration;
import org.eclipse.rse.services.shells.IHostShell;
import org.eclipse.rse.services.shells.IShellService;
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCmdSubSystem;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/ShellServiceSubSystem.java b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/ShellServiceSubSystem.java
index c8d99f82b1b..81952430b08 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/ShellServiceSubSystem.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/ShellServiceSubSystem.java
@@ -23,10 +23,10 @@ import java.util.List;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.rse.core.IRSESystemType;
import org.eclipse.rse.core.SystemBasePlugin;
-import org.eclipse.rse.core.servicesubsystem.IServiceSubSystemConfiguration;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.IConnectorService;
+import org.eclipse.rse.core.subsystems.IServiceSubSystemConfiguration;
import org.eclipse.rse.internal.subsystems.shells.subsystems.RemoteCmdSubSystem;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
import org.eclipse.rse.services.shells.IHostShell;
import org.eclipse.rse.services.shells.IShellService;
diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/ShellServiceSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/ShellServiceSubSystemConfiguration.java
index 0f25bbd3f2a..89eed108df3 100644
--- a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/ShellServiceSubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/subsystems/shells/core/subsystems/servicesubsystem/ShellServiceSubSystemConfiguration.java
@@ -21,8 +21,8 @@ package org.eclipse.rse.subsystems.shells.core.subsystems.servicesubsystem;
import java.util.HashMap;
import java.util.Map;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.internal.subsystems.shells.subsystems.RemoteCmdSubSystemConfiguration;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.services.IService;
import org.eclipse.rse.services.shells.IHostShell;
import org.eclipse.rse.services.shells.IShellService;
diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java
index 4c22e52adfa..4f3ec54c48c 100644
--- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java
+++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java
@@ -56,29 +56,30 @@ import org.eclipse.rse.core.SystemBasePlugin;
import org.eclipse.rse.core.SystemElapsedTimer;
import org.eclipse.rse.core.SystemPopupMenuActionContributorManager;
import org.eclipse.rse.core.SystemPreferencesManager;
+import org.eclipse.rse.core.filters.ISystemFilter;
+import org.eclipse.rse.core.filters.ISystemFilterContainer;
+import org.eclipse.rse.core.filters.ISystemFilterContainerReference;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
+import org.eclipse.rse.core.filters.ISystemFilterPoolReference;
+import org.eclipse.rse.core.filters.ISystemFilterPoolReferenceManager;
+import org.eclipse.rse.core.filters.ISystemFilterPoolReferenceManagerProvider;
+import org.eclipse.rse.core.filters.ISystemFilterReference;
+import org.eclipse.rse.core.filters.ISystemFilterString;
+import org.eclipse.rse.core.filters.ISystemFilterStringReference;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.model.ISystemContainer;
import org.eclipse.rse.core.model.ISystemMessageObject;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.references.IRSEBaseReferencingObject;
import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.filters.ISystemFilter;
-import org.eclipse.rse.filters.ISystemFilterContainer;
-import org.eclipse.rse.filters.ISystemFilterContainerReference;
-import org.eclipse.rse.filters.ISystemFilterPool;
-import org.eclipse.rse.filters.ISystemFilterPoolReference;
-import org.eclipse.rse.filters.ISystemFilterPoolReferenceManager;
-import org.eclipse.rse.filters.ISystemFilterPoolReferenceManagerProvider;
-import org.eclipse.rse.filters.ISystemFilterReference;
-import org.eclipse.rse.filters.ISystemFilterString;
-import org.eclipse.rse.filters.ISystemFilterStringReference;
-import org.eclipse.rse.model.IHost;
import org.eclipse.rse.model.ISystemPromptableObject;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.model.ISystemRemoteChangeEvent;
import org.eclipse.rse.model.ISystemRemoteChangeEvents;
import org.eclipse.rse.model.ISystemRemoteChangeListener;
import org.eclipse.rse.model.ISystemResourceChangeEvent;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
import org.eclipse.rse.model.ISystemResourceChangeListener;
+import org.eclipse.rse.model.SystemRegistry;
import org.eclipse.rse.model.SystemRemoteElementResourceSet;
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
import org.eclipse.rse.ui.ISystemContextMenuConstants;
@@ -415,7 +416,7 @@ public class SystemView extends TreeViewer implements ISystemTree,
// -----------------------------
// Enable right-click popup menu
// -----------------------------
- menuMgr = new MenuManager("#PopupMenu"); //$NON-NLS-1$
+ menuMgr = new MenuManager("#PopupMenu");
menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(this);
Menu menu = menuMgr.createContextMenu(getTree());
@@ -519,7 +520,7 @@ public class SystemView extends TreeViewer implements ISystemTree,
{
if ((event.character == SWT.DEL) && (event.stateMask == 0) && (((IStructuredSelection)getSelection()).size()>0) )
{
- scanSelections("handleKeyPressed"); //$NON-NLS-1$
+ scanSelections("handleKeyPressed");
/* DKM - 53694
if (showDelete() && canDelete())
{
@@ -859,7 +860,7 @@ public class SystemView extends TreeViewer implements ISystemTree,
// WHEN THAT CHANGES, WILL CALL CANDELETE() HERE. THAT IN TURN WILL CALL SCANSELECTIONS.
// THIS MEANS SCAN SELECTIONS GETS CALL TWICE ON MOST RIGHT CLICK ACTIONS.
if (!selectionFlagsUpdated) // might already be called by the global delete action wh
- scanSelections("fillContextMenu"); //$NON-NLS-1$
+ scanSelections("fillContextMenu");
// ADD COMMON ACTIONS...
@@ -1189,13 +1190,13 @@ public class SystemView extends TreeViewer implements ISystemTree,
return;
else
{
- logMyDebugMessage(this.getClass().getName(),": -----------------------------------------------------------"); //$NON-NLS-1$
- logMyDebugMessage(this.getClass().getName(),": REMOTE SSFID.......: " + element.getSubSystemConfigurationId(firstSelection)); //$NON-NLS-1$
- logMyDebugMessage(this.getClass().getName(),": REMOTE NAME........: " + element.getName(firstSelection)); //$NON-NLS-1$
- logMyDebugMessage(this.getClass().getName(),": REMOTE TYPECATEGORY: " + element.getRemoteTypeCategory(firstSelection)); //$NON-NLS-1$
- logMyDebugMessage(this.getClass().getName(),": REMOTE TYPE........: " + element.getRemoteType(firstSelection)); //$NON-NLS-1$
- logMyDebugMessage(this.getClass().getName(),": REMOTE SUBTYPE.....: " + element.getRemoteSubType(firstSelection)); //$NON-NLS-1$
- logMyDebugMessage(this.getClass().getName(),": REMOTE SUBSUBTYPE..: " + element.getRemoteSubSubType(firstSelection)); //$NON-NLS-1$
+ logMyDebugMessage(this.getClass().getName(),": -----------------------------------------------------------");
+ logMyDebugMessage(this.getClass().getName(),": REMOTE SSFID.......: " + element.getSubSystemConfigurationId(firstSelection));
+ logMyDebugMessage(this.getClass().getName(),": REMOTE NAME........: " + element.getName(firstSelection));
+ logMyDebugMessage(this.getClass().getName(),": REMOTE TYPECATEGORY: " + element.getRemoteTypeCategory(firstSelection));
+ logMyDebugMessage(this.getClass().getName(),": REMOTE TYPE........: " + element.getRemoteType(firstSelection));
+ logMyDebugMessage(this.getClass().getName(),": REMOTE SUBTYPE.....: " + element.getRemoteSubType(firstSelection));
+ logMyDebugMessage(this.getClass().getName(),": REMOTE SUBSUBTYPE..: " + element.getRemoteSubSubType(firstSelection));
}
}
}
@@ -1204,7 +1205,7 @@ public class SystemView extends TreeViewer implements ISystemTree,
if (!debugProperties)
return;
//RSEUIPlugin.logDebugMessage(prefix, msg);
- System.out.println(prefix+" "+msg); //$NON-NLS-1$
+ System.out.println(prefix+" "+msg);
}
/**
@@ -1421,7 +1422,7 @@ public class SystemView extends TreeViewer implements ISystemTree,
if (doTimings && (item instanceof TreeItem) && (((TreeItem)item).getData() != null))
{
elapsedTime.setEndTime();
- System.out.println("Time to expand for " + ((TreeItem)item).getItemCount() + " items: " + elapsedTime); //$NON-NLS-1$ //$NON-NLS-2$
+ System.out.println("Time to expand for " + ((TreeItem)item).getItemCount() + " items: " + elapsedTime);
}
}
@@ -1809,7 +1810,7 @@ public class SystemView extends TreeViewer implements ISystemTree,
case EVENT_ADD_RELATIVE:
if (debug)
{
- logDebugMsg("SV event: EVENT_ADD "); //$NON-NLS-1$
+ logDebugMsg("SV event: EVENT_ADD ");
}
clearSelection();
//refresh(parent);
@@ -1850,7 +1851,7 @@ public class SystemView extends TreeViewer implements ISystemTree,
case EVENT_ADD_MANY:
if (debug)
{
- logDebugMsg("SV event: EVENT_ADD_MANY"); //$NON-NLS-1$
+ logDebugMsg("SV event: EVENT_ADD_MANY");
}
multiSource = _event.getMultiSource();
clearSelection();
@@ -1892,7 +1893,7 @@ public class SystemView extends TreeViewer implements ISystemTree,
for (int idx=0; idx
+ * Use this method only if you are not using a SystemFilterPoolManager, else
+ * use the createSystemFilterPool method in that class.
+ *
+ * @param mofHelpers SystemMOFHelpers object with helper methods for saving and restoring via mof
+ * @param poolFolder the folder that will hold the filter pool.
+ * This folder will be created if it does not already exist.
+ * @param name the name of the filter pool. Typically this is also the name
+ * of the given folder, but this is not required. For the save policy of one file
+ * per pool, the name of the file is derived from this.
+ * @param allowNestedFilters true if filters inside this filter pool are
+ * to allow nested filters.
+ * @param isDeletable true if this filter pool is allowed to be deleted by users.
+ * @param tryToRestore true to attempt a restore first, false if a pure create operation.
+ * @param savePolicy The save policy for the filter pool and filters. One of the
+ * following constants from the SystemFilterConstants interface:
+ * PLEASE NOTE:
+ *
+ * While the framework has all the code necessary to arrange filters and save/restore
+ * that arrangement, you may choose to use preferences instead of this support.
+ * In this case, call this method and pass in the saved and sorted filter name list.
+ *
+ * Called by someone after restore.
+ */
+ public void orderSystemFilters(String[] names)
+ {
+ java.util.List filterList = internalGetFilters();
+ ISystemFilter[] filters = new ISystemFilter[names.length];
+ for (int idx=0; idx
+ *
+ * Calls back to inform provider
+ * @param filterPoolRefs Array of SystemFilterPoolReferences to move.
+ * @param newPosition new zero-based position for the filter pool references.
+ */
+ public void moveSystemFilterPoolReferences(ISystemFilterPoolReference[] filterPoolRefs, int delta)
+ {
+ int[] oldPositions = new int[filterPoolRefs.length];
+ noEvents = noSave = true;
+ for (int idx=0; idx
+ * @param mgrs The list of filter pool managers to scan for the given name
+ * @param mgrName The name of the manager to restrict the search to
+ */
+ public static ISystemFilterPoolManager getFilterPoolManager(ISystemFilterPoolManager[] mgrs, String mgrName)
+ {
+ ISystemFilterPoolManager mgr = null;
+ for (int idx=0; (mgr==null)&&(idx
- * @see org.eclipse.rse.model.IHost#getDefaultUserId()
+ * @see org.eclipse.rse.core.model.IHost#getDefaultUserId()
* @see #clearLocalUserId()
* @see #getUserId()
* @see #setUserId(String)
@@ -482,7 +482,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
* return the parent connection's default user Id. Sets the user Id attribute for this
* subsystem to null.
*
- * @see org.eclipse.rse.model.IHost#getDefaultUserId()
+ * @see org.eclipse.rse.core.model.IHost#getDefaultUserId()
* @see #getUserId()
* @see #getLocalUserId()
* @see #setUserId(String)
@@ -672,7 +672,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
* since it names a team sharable resource. Not qualified by the profile
* name since that is implicit by being in a profile.
*/
- String name = "CN-" + connectionName; //$NON-NLS-1$
+ String name = "CN-" + connectionName; // $NON-NLS-1$
return name;
}
@@ -746,7 +746,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
{
for (int idx=0; !would && (idx
* @param filterString filter pattern for objects to return.
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
*/
public Object[] resolveFilterString(String filterString, Shell shell)
throws Exception
@@ -2030,7 +2030,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
* returning them.
*
* @param filterStrings array of filter patterns for objects to return.
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @return Array of objects that are the result of resolving all the filter strings
*/
public Object[] resolveFilterStrings(String[] filterStrings, Shell shell)
@@ -2288,7 +2288,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
*
* @param parent Object that is being expanded.
* @param filterString filter pattern for children of parent. Typically just "*".
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
*/
public Object[] resolveFilterString(Object parent, String filterString, Shell shell)
throws Exception
@@ -2345,7 +2345,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
* @param subject Identifies which object to get the properties of
* @param key Identifies property to set
* @param value Value to set property to
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @return Object interpretable by subsystem. Might be a Boolean, or the might be new value for confirmation.
*/
public Object setProperty(Object subject, String key, String value, Shell shell)
@@ -2384,7 +2384,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
* true for supportsProperties().
* @param subject Identifies which object to get the properties of
* @param key Identifies property to get value of
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @return String The value of the requested key.
*/
public String getProperty(Object subject, String key, Shell shell)
@@ -2423,9 +2423,9 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
* a number of remote environment variables. This is only applicable if the subsystem factory reports
* true for supportsProperties().
* @param subject Identifies which object to get the properties of
- * @param keys Identifies properties to set
- * @param values Values to set properties to. One to one mapping to keys by index number
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param key Identifies property to set
+ * @param value Values to set properties to. One to one mapping to keys by index number
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @return Object interpretable by subsystem. Might be a Boolean, or the might be new values for confirmation.
*/
public Object setProperties(Object subject, String[] keys, String[] values, Shell shell)
@@ -2472,7 +2472,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
*
* Override internalConnect if you want, but by default it calls getSystem().connect(IProgressMonitor).
*
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
*/
public void connect(Shell shell) throws Exception
{
@@ -2512,7 +2512,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
*
* Override internalConnect if you want, but by default it calls getSystem().connect(IProgressMonitor).
*
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @param forcePrompt Forces the signon prompt to be displayed even if a valid password in cached in memory
* or saved on disk.
*/
@@ -2556,7 +2556,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
/**
* A convenience method, fully equivalent to promptForPassword(shell, false).
- * @param shell parent shell used to show any error messages.
+ * @param Shell parent shell used to show any error messages.
*/
public boolean promptForPassword(Shell shell) throws Exception
{
@@ -2568,7 +2568,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
* but we have detected the user is not connected so we prompt for password outside
* of the progress monitor, then set a flag to do the connection within the progress
* monitor.
- * @param shell parent shell used to show error messages.
+ * @param Shell parent shell used to show error messages.
* @param force true if the prompting should be forced, false if prompting can be skipped if credentials have been stored.
* @return true if the credentials are obtained
*/
@@ -2614,7 +2614,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
*
* Override internalDisconnect if you want, but by default it calls getSystem().disconnect(IProgressMonitor).
*
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
*/
public void disconnect(Shell shell) throws Exception
{
@@ -2628,7 +2628,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
*
* Override internalDisconnect if you want, but by default it calls getSystem().disconnect(IProgressMonitor).
*
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
* @param collapseTree collapse the tree in the system view
*/
public void disconnect(Shell shell, boolean collapseTree) throws Exception
@@ -2672,9 +2672,9 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
* a remote environment variable. This is only applicable if the subsystem factory reports
* true for supportsProperties().
* @param subject Identifies which object to get the properties of
- * @param keys Identifies properties to get value of
- * @param shell parent shell used to show error message. Null means you will handle showing the error message.
- * @return String[] The values of the requested keys.
+ * @param key Identifies property to get value of
+ * @param Shell parent shell used to show error message. Null means you will handle showing the error message.
+ * @return Object The values of the requested keys.
*/
public String[] getProperties(Object subject, String[] keys, Shell shell)
throws Exception
@@ -2979,7 +2979,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
*/
protected String getFirstParentFilterString(Object parent)
{
- return "*"; //$NON-NLS-1$
+ return "*";
}
diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystemConfiguration.java
index 32a29210964..1a1dca020d3 100644
--- a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystemConfiguration.java
+++ b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystemConfiguration.java
@@ -32,33 +32,35 @@ import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.rse.core.IRSESystemType;
import org.eclipse.rse.core.SystemBasePlugin;
import org.eclipse.rse.core.SystemPreferencesManager;
+import org.eclipse.rse.core.filters.ISystemFilter;
+import org.eclipse.rse.core.filters.ISystemFilterContainer;
+import org.eclipse.rse.core.filters.ISystemFilterContainerReference;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
+import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
+import org.eclipse.rse.core.filters.ISystemFilterPoolReference;
+import org.eclipse.rse.core.filters.ISystemFilterPoolReferenceManager;
+import org.eclipse.rse.core.filters.ISystemFilterSavePolicies;
+import org.eclipse.rse.core.filters.ISystemFilterString;
+import org.eclipse.rse.core.filters.SystemFilterPoolManager;
import org.eclipse.rse.core.internal.subsystems.RemoteServerLauncherConstants;
-import org.eclipse.rse.core.internal.subsystems.SubSystemFilterNamingPolicy;
+import org.eclipse.rse.core.internal.subsystems.SubSystemConfigurationProxy;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.model.ISystemModelChangeEvents;
+import org.eclipse.rse.core.model.ISystemNewConnectionWizardPage;
+import org.eclipse.rse.core.model.ISystemProfile;
+import org.eclipse.rse.core.model.ISystemProfileManager;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.references.IRSEBaseReferencingObject;
-import org.eclipse.rse.filters.ISystemFilter;
-import org.eclipse.rse.filters.ISystemFilterContainer;
-import org.eclipse.rse.filters.ISystemFilterContainerReference;
-import org.eclipse.rse.filters.ISystemFilterPool;
-import org.eclipse.rse.filters.ISystemFilterPoolManager;
-import org.eclipse.rse.filters.ISystemFilterPoolReference;
-import org.eclipse.rse.filters.ISystemFilterPoolReferenceManager;
-import org.eclipse.rse.filters.ISystemFilterSavePolicies;
-import org.eclipse.rse.filters.ISystemFilterString;
import org.eclipse.rse.filters.SystemFilterPoolWrapperInformation;
import org.eclipse.rse.filters.SystemFilterStartHere;
-import org.eclipse.rse.internal.filters.SystemFilterPoolManager;
import org.eclipse.rse.internal.model.SystemProfileManager;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemProfile;
-import org.eclipse.rse.model.ISystemProfileManager;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
import org.eclipse.rse.model.SystemResourceChangeEvent;
import org.eclipse.rse.model.SystemStartHere;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
import org.eclipse.rse.ui.ISystemMessages;
import org.eclipse.rse.ui.RSEUIPlugin;
+import org.eclipse.rse.ui.SystemMenuManager;
import org.eclipse.rse.ui.SystemPropertyResources;
import org.eclipse.rse.ui.SystemResources;
import org.eclipse.rse.ui.filters.actions.SystemNewFilterAction;
@@ -73,7 +75,6 @@ import org.eclipse.rse.ui.view.ISystemRemoteElementAdapter;
import org.eclipse.rse.ui.widgets.IServerLauncherForm;
import org.eclipse.rse.ui.widgets.RemoteServerLauncherForm;
import org.eclipse.rse.ui.wizards.ISubSystemPropertiesWizardPage;
-import org.eclipse.rse.ui.wizards.ISystemNewConnectionWizardPage;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.dialogs.PropertyPage;
@@ -164,7 +165,7 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
{
super();
//initSubSystems();
- SystemBasePlugin.logDebugMessage(this.getClass().getName(), "STARTED SSFACTORY"); //$NON-NLS-1$
+ SystemBasePlugin.logDebugMessage(this.getClass().getName(), "STARTED SSFACTORY");
}
@@ -497,13 +498,13 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
// Get configured property page extenders
IConfigurationElement[] propertyPageExtensions =
- registry.getConfigurationElementsFor("org.eclipse.ui", "propertyPages"); //$NON-NLS-1$ //$NON-NLS-2$
+ registry.getConfigurationElementsFor("org.eclipse.ui", "propertyPages");
for (int i = 0; i < propertyPageExtensions.length; i++)
{
IConfigurationElement configurationElement = propertyPageExtensions[i];
- String objectClass = configurationElement.getAttribute("objectClass"); //$NON-NLS-1$
- String name = configurationElement.getAttribute("name"); //$NON-NLS-1$
+ String objectClass = configurationElement.getAttribute("objectClass");
+ String name = configurationElement.getAttribute("name");
Class objCls = null;
try
{
@@ -519,7 +520,7 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
{
try
{
- PropertyPage page = (PropertyPage) configurationElement.createExecutableExtension("class"); //$NON-NLS-1$
+ PropertyPage page = (PropertyPage) configurationElement.createExecutableExtension("class");
page.setTitle(name);
propertyPages.add(page);
}
@@ -674,7 +675,7 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
*/
public ImageDescriptor getImage()
{
- return proxy.getImage();
+ return ((SubSystemConfigurationProxy)proxy).getImage();
}
/**
* Return actual graphics Image of this factory.
@@ -707,7 +708,7 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
*/
public ImageDescriptor getLiveImage()
{
- return proxy.getLiveImage();
+ return ((SubSystemConfigurationProxy)proxy).getLiveImage();
}
/**
@@ -826,31 +827,14 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
{
ISystemValidator userIdValidator =
new ValidatorSpecialChar(
- "=;", //$NON-NLS-1$
+ "=;",
false,
RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_VALIDATE_USERID_NOTVALID),
RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_VALIDATE_USERID_EMPTY));
// false => allow empty? No.
return userIdValidator;
}
- /**
- * Return the validator for the password which is prompted for at runtime.
- * Returns null by default.
- */
- public ISystemValidator getPasswordValidator()
- {
- return null;
- }
- /**
- * Return the validator for the port.
- * A default is supplied.
- * This must be castable to ICellEditorValidator for the property sheet support.
- */
- public ISystemValidator getPortValidator()
- {
- ISystemValidator portValidator = new ValidatorPortInput();
- return portValidator;
- }
+
/**
* Called by SystemRegistry's renameSystemProfile method to ensure we update our
@@ -1163,7 +1147,7 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
*
+ *
+ * @param filters Array of SystemFilters to move.
+ * @param newPosition new zero-based position for the filters (filterEventFiltersRePositioned)
+ */
+ public void moveSystemFilters(ISystemFilter filters[], int delta)
+ throws Exception
+ {
+ /*
+ * DWD revisit this. Make sure that the pool is scheduled to be saved.
+ */
+// ISystemFilterContainer container = filters[0].getParentFilterContainer();
+ int[] oldPositions = new int[filters.length];
+ for (int idx=0; idx
+ *
+ */
+ public ISystemFilterString addSystemFilterString(ISystemFilter filter, String newString) throws Exception
+ {
+ ISystemFilterString newFilterString = filter.addFilterString(newString);
+ ISystemFilterPool parentPool = filter.getParentFilterPool();
+ commit(parentPool);
+ if ((caller != null) && !suspendCallbacks)
+ caller.filterEventFilterStringCreated(newFilterString);
+ return newFilterString;
+ }
+ /**
+ * Insert a new filter string to the its filters' list, at the given zero-based position
+ *
+ *
+ */
+ public ISystemFilterString addSystemFilterString(ISystemFilter filter, String newString, int position) throws Exception
+ {
+ ISystemFilterString newFilterString = filter.addFilterString(newString, position);
+ ISystemFilterPool parentPool = filter.getParentFilterPool();
+ commit(parentPool);
+ if ((caller != null) && !suspendCallbacks)
+ caller.filterEventFilterStringCreated(newFilterString);
+ return newFilterString;
+ }
+ /**
+ * Delete a filter string from the given filter's list
+ *
+ *
+ * @return true if given string was found and hence was deleted.
+ */
+ public boolean removeSystemFilterString(ISystemFilter filter, String oldString) throws Exception
+ {
+ ISystemFilterString oldFilterString = filter.removeFilterString(oldString);
+ if (oldFilterString == null)
+ return false;
+ ISystemFilterPool parentPool = filter.getParentFilterPool();
+ commit(parentPool);
+ if ((caller != null) && !suspendCallbacks)
+ caller.filterEventFilterStringDeleted(oldFilterString);
+ return true;
+ }
+ /**
+ * Remove a filter string from this filter's list, given its SystemFilterString object.
+ *
+ *
+ * @return true if the given string existed and hence was deleted.
+ */
+ public boolean removeSystemFilterString(ISystemFilter filter, ISystemFilterString filterString) throws Exception
+ {
+ boolean ok = filter.removeFilterString(filterString);
+ if (!ok)
+ return false;
+ ISystemFilterPool parentPool = filter.getParentFilterPool();
+ commit(parentPool);
+ if ((caller != null) && !suspendCallbacks)
+ caller.filterEventFilterStringDeleted(filterString);
+ return ok;
+ }
+ /**
+ * Remove a filter string from the given filter's list, given its zero-based position
+ *
+ *
+ * @return true if a string existed at the given position and hence was deleted.
+ */
+ public boolean removeSystemFilterString(ISystemFilter filter, int position) throws Exception
+ {
+ ISystemFilterString oldFilterString = filter.removeFilterString(position);
+ if (oldFilterString == null)
+ return false;
+ ISystemFilterPool parentPool = filter.getParentFilterPool();
+ commit(parentPool);
+ if ((caller != null) && !suspendCallbacks)
+ caller.filterEventFilterStringDeleted(oldFilterString);
+ return true;
+ }
+ /**
+ * Update a filter string's string vale
+ *
+ *
+ */
+ public void updateSystemFilterString(ISystemFilterString filterString, String newValue) throws Exception
+ {
+ if (newValue.equals(filterString.getString()))
+ return;
+ ISystemFilter filter = filterString.getParentSystemFilter();
+ filter.updateFilterString(filterString, newValue);
+ ISystemFilterPool parentPool = filter.getParentFilterPool();
+ commit(parentPool);
+ if ((caller != null) && !suspendCallbacks)
+ caller.filterEventFilterStringUpdated(filterString);
+ }
+ /**
+ * Return the zero-based position of a SystemFilterString object within its filter
+ */
+ public int getSystemFilterStringPosition(ISystemFilterString filterString)
+ {
+ ISystemFilter filter = filterString.getParentSystemFilter();
+ int position = -1;
+ boolean match = false;
+ ISystemFilterString[] filterStrings = filter.getSystemFilterStrings();
+
+ String matchString = filterString.getString();
+ for (int idx = 0; !match && (idx
+ *
+ * @param filterStrings Array of SystemFilterStrings to move.
+ * @param newPosition new zero-based position for the filter strings
+ */
+ public void moveSystemFilterStrings(ISystemFilterString filterStrings[], int delta)
+ throws Exception
+ {
+ ISystemFilter filter = filterStrings[0].getParentSystemFilter();
+ int[] oldPositions = new int[filterStrings.length];
+ for (int idx=0; idx
+ *
+ *
+ *
+ *
+ *
+ * @param conn SystemConnection object to rename
+ * @param newName The new name to give that connection.
+ */
+ public void renameHost(IHost conn, String newName) throws Exception;
+ /**
+ * Return the zero-based position of a SystemConnection object within its profile.
+ */
+ public int getHostPosition(IHost conn);
+ /**
+ * Return the number of SystemConnection objects within this pool.
+ */
+ public int getHostCount();
+
+ /**
+ * Duplicates a given connection in this list within this list or another list.
+ * @param targetPool The SystemConnectionPool to hold the copied connection. Can equal this connection, as long as alias name is unique
+ * @param conn SystemConnection object (within our pool) to clone
+ * @param alias New, unique, alias name to give this connection. Clone will fail if this is not unique.
+ */
+ public IHost cloneHost(ISystemHostPool targetPool, IHost conn, String aliasName)
+ throws Exception;
+
+ /**
+ * Move existing connections a given number of positions in the same pool.
+ * If the delta is negative, they are all moved up by the given amount. If
+ * positive, they are all moved down by the given amount.
+ *
+ * TODO PROBLEM: CAN'T RE-ORDER FOLDERS SO CAN WE SUPPORT THIS ACTION?
+ * @param conns Array of SystemConnections to move.
+ * @param newPosition new zero-based position for the connection
+ */
+ public void moveHosts(IHost conns[], int delta);
+
+ /**
+ * Order connections according to user preferences.
+ * Called after restore.
+ */
+ public void orderHosts(String[] names);
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @return The value of the Name attribute
+ */
+ String getName();
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @param value The new value of the Name attribute
+ */
+ void setName(String value);
+
+ /**
+ * @generated This field/method will be replaced during code generation
+ * @return The list of Connections references
+ */
+ List getHostList();
+
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemModelChangeEvents.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemModelChangeEvents.java
index d4e2caaf759..1ebb90ca6b2 100644
--- a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemModelChangeEvents.java
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemModelChangeEvents.java
@@ -16,17 +16,16 @@
package org.eclipse.rse.core.model;
-
/**
* The event IDs sent when local resources in the RSE model change.
* You should monitor for these events in your view if you display any of the resource types listed here.
*
+ *
+ *
+ *
+ * If no localhost connection is found, this will return null. If one is needed, it can be created
+ * easily by calling {@link #createLocalHost(ISystemProfile, String, String)}.
+ */
+ public IHost getLocalHost();
+
+ /**
+ * Return all connections in all active profiles.
+ */
+ public IHost[] getHosts();
+ /**
+ * Return all connections in a given profile name.
+ */
+ public IHost[] getHostsByProfile(ISystemProfile profile);
+ /**
+ * Return all connections in a given profile.
+ */
+ public IHost[] getHostsByProfile(String profileName);
+ /**
+ * Return all connections for which there exists one or more subsystems owned
+ * by a given subsystem factory.
+ * @see #getSubSystemConfiguration(String)
+ */
+ public IHost[] getHostsBySubSystemConfiguration(ISubSystemConfiguration factory);
+ /**
+ * Return all connections for which there exists one or more subsystems owned
+ * by a given subsystem factory, identified by factory Id
+ */
+ public IHost[] getHostsBySubSystemConfigurationId(String factoryId);
+ /**
+ * Return all connections for which there exists one or more subsystems owned
+ * by any a given subsystem factory that is of the given category.
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * Assumption: firing the delete event is done elsewhere. Specifically, the doDelete method of SystemView.
+ */
+ public void deleteHost(IHost conn);
+ /**
+ * Renames an existing connection.
+ *
+ *
+ * Assumption: firing the rename event is done elsewhere. Specifically, the doRename method of SystemView.
+ */
+ public void renameHost(IHost conn, String newName) throws Exception;
+ /**
+ * Move existing connections a given number of positions in the same profile.
+ * If the delta is negative, they are all moved up by the given amount. If
+ * positive, they are all moved down by the given amount.
+ *
+ * TODO PROBLEM: CAN'T RE-ORDER FOLDERS SO CAN WE SUPPORT THIS ACTION?
+ * @param conns Array of SystemConnections to move.
+ * @param newPosition new zero-based position for the connection
+ */
+ public void moveHosts(String profileName, IHost conns[], int delta);
+ /**
+ * Copy a SystemConnection. All subsystems are copied, and all connection data is copied.
+ * @param monitor Progress monitor to reflect each step of the operation
+ * @param conn The connection to copy
+ * @param targetProfile What profile to copy into
+ * @param newName Unique name to give copied profile
+ * @return new SystemConnection object
+ */
+ public IHost copyHost(IProgressMonitor monitor, IHost conn,
+ ISystemProfile targetProfile, String newName)
+ throws Exception;
+ /**
+ * Move a SystemConnection to another profile. All subsystems are copied, and all connection data is copied.
+ * @param monitor Progress monitor to reflect each step of the operation
+ * @param conn The connection to move
+ * @param targetProfile What profile to move to
+ * @param newName Unique name to give moved profile
+ * @return new SystemConnection object
+ */
+ public IHost moveHost(IProgressMonitor monitor, IHost conn,
+ ISystemProfile targetProfile, String newName)
+ throws Exception;
+
+ /**
+ * Return true if any of the subsystems for the given connection are currently connected
+ */
+ public boolean isAnySubSystemConnected(IHost conn);
+
+ /**
+ * Return true if all of the subsystems for the given connection are currently connected
+ */
+ public boolean areAllSubSystemsConnected(IHost conn);
+
+ /**
+ * Disconnect all subsystems for the given connection, if they are currently connected.
+ */
+ public void disconnectAllSubSystems(IHost conn);
+
+ /**
+ * Inform the world when the connection status changes for a subsystem within a connection
+ */
+ public void connectedStatusChange(ISubSystem subsystem, boolean connected, boolean wasConnected);
+
+ /**
+ * Inform the world when the connection status changes for a subsystem within a connection
+ */
+ public void connectedStatusChange(ISubSystem subsystem, boolean connected, boolean wasConnected, boolean collapseTree);
+
+
+
+
+ // ----------------------------
+ // MISCELLANEOUS METHODS...
+ // ----------------------------
+
+ /**
+ * Returns filter references associated with this resource under the subsystem
+ */
+ public List findFilterReferencesFor(Object resource, ISubSystem subsystem);
+
+ /**
+ * Marks all filters for this subsystem as stale to prevent caching
+ * @param subsystem
+ */
+ public void invalidateFiltersFor(ISubSystem subsystem);
+
+ /**
+ * Marks all filters for this subsystem the contain resourceParent as stale to prevent caching
+ * @param resourceParent
+ * @param subsystem
+ */
+ public void invalidateFiltersFor(Object resourceParent, ISubSystem subsystem);
+
+
+
+ /**
+ * Return last exception object caught in any method, or null if no exception.
+ * This has the side effect of clearing the last exception.
+ */
+ public Exception getLastException();
+
+ // ----------------------------
+ // SAVE / RESTORE METHODS...
+ // ----------------------------
+
+ /**
+ * Save everything!
+ */
+ public boolean save();
+ /**
+ * Save specific connection pool
+ * @return true if saved ok, false if error encountered. If false, call getLastException().
+ */
+ public boolean saveHostPool(ISystemHostPool pool);
+ /**
+ * Save specific connection
+ * @return true if saved ok, false if error encountered. If false, call getLastException().
+ */
+ public boolean saveHost(IHost conn);
+ /**
+ * Restore all connections within active profiles
+ * @return true if restored ok, false if error encountered. If false, call getLastException().
+ */
+ public boolean restore();
+} //SystemRegistry
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/SystemChildrenContentsType.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/SystemChildrenContentsType.java
index 8bfa1c66cd1..74908742cf1 100644
--- a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/SystemChildrenContentsType.java
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/SystemChildrenContentsType.java
@@ -18,13 +18,12 @@
package org.eclipse.rse.core.model;
-
/**
* Represents contents that are children of a container
*/
public class SystemChildrenContentsType implements ISystemContentsType
{
- public static String CONTENTS_TYPE_CHILDREN = "contents_children"; //$NON-NLS-1$
+ public static String CONTENTS_TYPE_CHILDREN = "contents_children";
public static SystemChildrenContentsType _instance = new SystemChildrenContentsType();
public static SystemChildrenContentsType getInstance()
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/SystemSignonInformation.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/SystemSignonInformation.java
new file mode 100644
index 00000000000..dbc55c831e3
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/SystemSignonInformation.java
@@ -0,0 +1,121 @@
+/********************************************************************************
+ * Copyright (c) 2002, 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.model;
+
+
+/**
+ * This class encapsulates the signon information required for a remote system. This class
+ * must be secure and never disclose the password for the remote system in its unencrypted form.
+ * However the encrypted form of the password is not considered secret information and can be
+ * accessed by anyone.
+ *
+ * @author yantzi
+ */
+public final class SystemSignonInformation {
+
+
+ private String _hostname, _userid, _systemType, _password;
+
+ /**
+ * Default no-arg constructor
+ */
+ public SystemSignonInformation()
+ {
+ }
+
+ /**
+ * Constructor for SystemSignonInformation.
+ */
+ public SystemSignonInformation(String hostname, String userid, String systemType) {
+ _hostname = hostname;//RSEUIPlugin.getQualifiedHostName(hostname).toUpperCase();
+ _userid = userid;
+ _systemType = systemType;
+ }
+
+ /**
+ * Constructor for SystemSignonInformation.
+ */
+ public SystemSignonInformation(String hostname, String userid, String password, String systemType) {
+ _hostname = hostname;//RSEUIPlugin.getQualifiedHostName(hostname).toUpperCase();
+ _userid = userid;
+ _password = password;
+ _systemType = systemType;
+ }
+
+ /**
+ * Returns the hostname of the remote system
+ * @return String
+ */
+ public String getHostname() {
+ return _hostname;
+ }
+
+ /**
+ * Returns the systemType of the remote system
+ * @return String
+ */
+ public String getSystemType() {
+ return _systemType;
+ }
+
+ /**
+ * Returns the userid for the remote system
+ * @return String
+ */
+ public String getUserid() {
+ return _userid;
+ }
+
+ /**
+ * Return the password for the remote system
+ */
+ public String getPassword() {
+ return _password;
+ }
+
+ /**
+ * Sets the password for the remote system
+ */
+ public void setPassword(String string) {
+ _password = string;
+ }
+
+ /**
+ * Sets the hostname.
+ * @param hostname The hostname to set
+ */
+ public void setHostname(String hostname) {
+ _hostname = hostname;//RSEUIPlugin.getQualifiedHostName(hostname).toUpperCase();
+ }
+
+ /**
+ * Sets the systemType.
+ * @param systemType The systemType to set
+ */
+ public void setSystemType(String systemType) {
+ _systemType = systemType;
+ }
+
+ /**
+ * Sets the userid.
+ * @param userid The userid to set
+ */
+ public void setUserid(String userid) {
+ _userid = userid;
+ }
+
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/references/IRSEBasePersistableReferenceManager.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/references/IRSEBasePersistableReferenceManager.java
index 4abae979162..f4e5cb03992 100644
--- a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/references/IRSEBasePersistableReferenceManager.java
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/references/IRSEBasePersistableReferenceManager.java
@@ -16,7 +16,6 @@
package org.eclipse.rse.core.references;
import org.eclipse.core.resources.IFolder;
-import org.eclipse.rse.core.references.IRSEBasePersistableReferencingObject;
/**
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/CommunicationsEvent.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/CommunicationsEvent.java
new file mode 100644
index 00000000000..398bc14c40a
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/CommunicationsEvent.java
@@ -0,0 +1,46 @@
+/********************************************************************************
+ * Copyright (c) 2002, 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.subsystems;
+
+
+public class CommunicationsEvent {
+
+
+ // Communications event types
+ public static final int BEFORE_CONNECT = 1;
+ public static final int AFTER_CONNECT = 2;
+ public static final int BEFORE_DISCONNECT = 3;
+ public static final int AFTER_DISCONNECT = 4;
+ public static final int CONNECTION_ERROR = 5;
+
+ private IConnectorService system;
+ private int state;
+
+ public CommunicationsEvent(IConnectorService system, int state) {
+ this.system = system;
+ this.state = state;
+ }
+
+ public int getState() {
+ return state;
+ }
+
+ public IConnectorService getSystem() {
+ return system;
+ }
+
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/ICacheManager.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ICacheManager.java
similarity index 100%
rename from rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/ICacheManager.java
rename to rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ICacheManager.java
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ICommunicationsListener.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ICommunicationsListener.java
new file mode 100644
index 00000000000..b7659c912c7
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/ICommunicationsListener.java
@@ -0,0 +1,49 @@
+/********************************************************************************
+ * Copyright (c) 2002, 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.subsystems;
+
+
+/**
+ * ICommunicationsListener - listen to communication events
+ * @see CommunicationsEvent
+ */
+public interface ICommunicationsListener {
+
+
+ /**
+ * This method is invoked whenever the communications state is invoked
+ * immediately before and after the state of the communications changes.
+ * The state field in CommunicationsEvent determines which state
+ * change is about to or has occured.
+ */
+ public void communicationsStateChange(CommunicationsEvent e);
+
+ /**
+ * This method determines if the communications listener is a passive or
+ * active listener. Typically a passive listener registers with the communications
+ * system and responds to events as they occur. An active listener typically
+ * registeres with the communications system only for the duration of the task (i.e.
+ * user editing a file, or outstanding communications request.)
+ *
+ * The user will be prompted on a disconnect if there are any active communication
+ * listeners registered.
+ *
+ * @return false if the communications listener is an active listener, true if the
+ * communications listener is a passive listener.
+ */
+ public boolean isPassiveCommunicationsListener();
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IConnectorService.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IConnectorService.java
new file mode 100644
index 00000000000..1380a156617
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IConnectorService.java
@@ -0,0 +1,339 @@
+/********************************************************************************
+ * Copyright (c) 2002, 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.subsystems;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.IRSEModelObject;
+import org.eclipse.swt.widgets.Shell;
+
+
+/**
+ * This is the interface implemented by ConnectorService (formerly System) objects.
+ * true
if the object has contents, false
otherwise.
+ */
+ public boolean hasContents(ISystemContentsType contentsType, String filter);
+
+ /**
+ * Returns the contents of the object.
+ * @param contentsType type of contents
+ * @param filter criteria for contained contents.
+ * @return an array of contents.
+ */
+ public Object[] getContents(ISystemContentsType contentsType, String filter);
+
+ /*
+ * Replace occurrences of cached object with new object
+ */
+ public void replaceContent(Object oldObject, Object newObject);
+
+ /**
+ * Sets the contents of this object that match a particular filter
+ * @param contentsType type of contents
+ * @param filter matching criteria for the contained objects
+ * @param con the contained objects that match the filter
+ */
+ public void setContents(ISystemContentsType contentsType, String filter, Object[] con);
+
+ /**
+ * Copies the persistable contents from this one to another one
+ * @param container the container to copy contents to
+ */
+ public void copyContentsTo(IRemoteContainer container);
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteLineReference.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteLineReference.java
new file mode 100644
index 00000000000..c24ce5e2fed
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteLineReference.java
@@ -0,0 +1,62 @@
+/********************************************************************************
+ * Copyright (c) 2002, 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.subsystems;
+/**
+ * This interface represents an object that can be used to jump into line in source
+ */
+public interface IRemoteLineReference
+{
+
+
+ /**
+ * Gets the path to the file that this output references if it references any. It may return null if
+ * no such association exists. This may be used to jump to an editor from a view which displays
+ * this
+ *
+ * @return the path of the referenced file if there is one
+ */
+ public String getAbsolutePath();
+
+ /**
+ * Gets the line number within a file that this references if it references any. By default
+ * it should return 0. If no file association exists, it also returns 0. This may be used to jump into
+ * a location within an editor from a view which displays remote output.
+ *
+ * @return the line number within a referenced file if there is one.
+ */
+ public int getLine();
+
+ /**
+ * Get the start offset in a line corresponding to this reference. -1 indicates there is no offset
+ * @return the offset
+ */
+ public int getCharStart();
+
+ /**
+ * Get the end offset in a line corresponding to this reference. -1 indicates there is no offset
+ * @return the offset
+ */
+ public int getCharEnd();
+
+ /**
+ * Get the object that contains this object.
+ *
+ * @return the parent object
+ */
+ public Object getParent();
+
+}
\ No newline at end of file
diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteObjectIdentifier.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteObjectIdentifier.java
new file mode 100644
index 00000000000..2ef6338fc29
--- /dev/null
+++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/subsystems/IRemoteObjectIdentifier.java
@@ -0,0 +1,30 @@
+/********************************************************************************
+ * Copyright (c) 2002, 2006 IBM Corporation. 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
+ *
+ * Initial Contributors:
+ * The following IBM employees contributed to the Remote System Explorer
+ * component that contains this file: David McKnight, Kushal Munir,
+ * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
+ * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
+ *
+ * Contributors:
+ * {Name} (company) - description of contribution.
+ ********************************************************************************/
+
+package org.eclipse.rse.core.subsystems;
+public interface IRemoteObjectIdentifier
+{
+
+
+ /**
+ * For drag and drop, and clipboard, support of remote objects.
+ *
By default we return false here. This is overridden in UniversalFileSubSystemConfiguration though.
+ */
+ public boolean supportsServerLaunchProperties(IHost host);
+ /**
+ * If {@link #supportsServerLaunchProperties(IHost)} returns true, this method may be called by
+ * the server launcher to decide if a given remote server launch type is supported or not.
+ *
We return true by default.
+ * @see org.eclipse.rse.core.subsystems.ServerLaunchType
+ * @see #getServerLauncherForm(Shell, ISystemMessageLine)
+ */
+ public boolean supportsServerLaunchType(ServerLaunchType serverLaunchType);
+
+ /**
+ * Tell us if filter strings are case sensitive.
+ *
+ * @generated This field/method will be replaced during code generation
+ * @return The list of SubSystemList references
+ */
+ java.util.List getSubSystemList();
+
+ /**
+ * Private. Do not call or use.
+ * @generated This field/method will be replaced during code generation
+ * @return The list of FilterPoolManagerList references
+ */
+ java.util.List getFilterPoolManagerList();
+
+ public ISystemFilterPool getDefaultFilterPool(ISystemProfile profile, String oldProfileName);
+ public ISystemProfile getSystemProfile(String name);
+ public void renameFilterPoolManager(ISystemProfile profile);
+
+
+
+// /**
+// * Return the validator for the userId.
+// * A default is supplied.
+// * Note this is only used for the subsystem's properties, so will not
+// * be used by the connection's default. Thus, is only of limited value.
+// *
+ *
+ * @param namingPolicy The names to use for file and folders when persisting to disk. Pass
+ * null to just use the defaults.
+ */
+ public ISystemFilterPool createSystemFilterPool(
+ String name,
+ boolean allowNestedFilters,
+ boolean isDeletable,
+ boolean tryToRestore)
+ {
+
+
+ SystemFilterPool pool = null;
+ if (tryToRestore)
+ {
+ try
+ {
+ pool = (SystemFilterPool)RSEUIPlugin.getThePersistenceManager().restoreFilterPool(name);
+ }
+ catch (Exception exc) // real error trying to restore, versus simply not found.
+ {
+ // todo: something? Log the exception somewhere?
+ }
+ }
+ if (pool == null) // not found or some serious error.
+ {
+ pool = createPool();
+ }
+ if (pool != null)
+ {
+ pool.initialize(name, allowNestedFilters, isDeletable);
+ }
+ return pool;
+ }
+
+ // temporary!
+ //public boolean isSharable() {return isSharable; }
+ //public void setIsSharable(boolean is) { isSharable = is; }
+
+ /*
+ * Private helper method.
+ * Uses MOF to create an instance of this class.
+ */
+ protected static SystemFilterPool createPool()
+ {
+ ISystemFilterPool pool = new SystemFilterPool();
+ // FIXME SystemFilterImpl.initMOF().createSystemFilterPool();
+ pool.setRelease(SystemResources.CURRENT_RELEASE);
+ return (SystemFilterPool)pool;
+ }
+
+ /*
+ * Private helper method to initialize attributes
+ */
+ protected void initialize(String name,
+ boolean allowNestedFilters,
+ boolean isDeletable)
+ {
+ if (!initialized)
+ initialize(name, savePolicy, namingPolicy);
+ setDeletable(isDeletable); // mof attribute
+ //System.out.println("In initialize() for filter pool " + getName() + ". isDeletable= " + isDeletable);
+ setSupportsNestedFilters(allowNestedFilters); // cascades to each filter
+ }
+
+ /*
+ * Private helper method to core initialization, from either createXXX or restore.
+ */
+ protected void initialize(String name,
+ int savePolicy, IRSEFilterNamingPolicy namingPolicy)
+ {
+ setName(name); // mof attribute
+ setSavePolicy(savePolicy);
+ setNamingPolicy(namingPolicy);
+
+ initialized = true;
+ }
+
+
+ //protected Vector internalGetFilters()
+ protected java.util.List internalGetFilters()
+ {
+ //return filters;
+ return getFilters(); // mof-supplied in parent class
+ }
+
+ /**
+ * Return the caller which instantiated the filter pool manager overseeing this filter framework instance
+ */
+ public ISystemFilterPoolManagerProvider getProvider()
+ {
+ ISystemFilterPoolManager mgr = getSystemFilterPoolManager();
+ if (mgr != null)
+ return mgr.getProvider();
+ else
+ return null;
+ }
+
+ /**
+ * Set the save file policy. See constants in {@link org.eclipse.rse.core.filters.ISystemFilterConstants SystemFilterConstants}.
+ * One of:
+ *
+ *
+ * This method is called by the SystemFilterPoolManager.
+ */
+ public void setSavePolicy(int policy)
+ {
+ if (this.savePolicy != policy)
+ {
+ this.savePolicy = policy;
+ setDirty(true);
+ }
+ }
+
+ /**
+ * Set the naming policy used when saving data to disk.
+ * @see org.eclipse.rse.core.filters.IRSEFilterNamingPolicy
+ */
+ public void setNamingPolicy(IRSEFilterNamingPolicy namingPolicy)
+ {
+ if (this.namingPolicy != namingPolicy)
+ {
+ this.namingPolicy = namingPolicy;
+ setDirty(true);
+ }
+ }
+
+ /**
+ * Get the naming policy currently used when saving data to disk.
+ * @see org.eclipse.rse.core.filters.IRSEFilterNamingPolicy
+ */
+ public IRSEFilterNamingPolicy getNamingPolicy()
+ {
+ return namingPolicy;
+ }
+
+ /**
+ * Set whether filters in this pool support nested filters.
+ * Important to note this is stored in every filter as well as this filter pool.
+ */
+ public void setSupportsNestedFilters(boolean supports)
+ {
+ this.setSupportsNestedFiltersGen(supports);
+ ISystemFilter[] filters = getSystemFilters();
+ if (filters != null)
+ for (int idx=0; idx
+ *
+ * Attributes we clone:
+ *
+ *
+ */
+ public void cloneSystemFilterPool(ISystemFilterPool targetPool)
+ throws Exception
+ {
+ //System.out.println("In SystemFilterPoolImpl#cloneSystemFilterPool. targetPool null? " + (targetPool == null));
+ if (filterPoolData != null)
+ targetPool.setSystemFilterPoolData(filterPoolData);
+
+ //String ourType = getTypeGen();
+ //if (ourType != null)
+ // targetPool.setType(ourType);
+ targetPool.setType(getType());
+
+ targetPool.setDeletable(isDeletable());
+ targetPool.setSupportsNestedFilters(isSupportsNestedFilters());
+
+ //Boolean ourDefault = getDefault();
+ //if (ourDefault != null)
+ // targetPool.setDefault(ourDefault);
+ targetPool.setDefault(isDefault());
+
+ targetPool.setSupportsDuplicateFilterStrings(supportsDuplicateFilterStrings());
+ targetPool.setRelease(getRelease());
+ //targetPool.setNonDeletable(isNonDeletable());
+ targetPool.setNonRenamable(isNonRenamable());
+ targetPool.setOwningParentName(getOwningParentName());
+ if (isSetSingleFilterStringOnly())
+ targetPool.setSingleFilterStringOnly(isSingleFilterStringOnly());
+ if (isSetStringsCaseSensitive())
+ targetPool.setStringsCaseSensitive(isStringsCaseSensitive());
+
+
+ ISystemFilter[] filters = getSystemFilters();
+ if ((filters!=null) && (filters.length>0))
+ {
+ for (int idx=0; idx
+ *
+ * @param filter SystemFilter object to add
+ * @return true if added, false if filter with this aliasname already existed.
+ */
+ public boolean addSystemFilter(ISystemFilter filter)
+ {
+ boolean result = helpers.addSystemFilter(internalGetFilters(),filter);
+ if (result) setDirty(true);
+ return result;
+ }
+ /**
+ * Removes a given filter from the list.
+ * @param filter SystemFilter object to remove
+ */
+ public void deleteSystemFilter(ISystemFilter filter)
+ {
+ helpers.deleteSystemFilter(internalGetFilters(),filter);
+ setDirty(true);
+ }
+
+ /**
+ * Rename a given filter in the list.
+ * @param filter SystemFilter object to remove
+ */
+ public void renameSystemFilter(ISystemFilter filter, String newName)
+ {
+ helpers.renameSystemFilter(internalGetFilters(),filter, newName);
+ setDirty(true);
+ }
+
+ /**
+ * Updates a given filter in the list.
+ * @param filter SystemFilter object to update
+ * @param newName New name to assign it. Assumes unique checking already done.
+ * @param newStrings New strings to assign it. Replaces current strings.
+ */
+ public void updateSystemFilter(ISystemFilter filter, String newName, String[] newStrings)
+ {
+ helpers.updateSystemFilter(internalGetFilters(), filter, newName, newStrings);
+ setDirty(true);
+ }
+
+ /**
+ * Duplicates a given filter in the list.
+ * @param filter SystemFilter object to clone
+ * @param alias New, unique, alias name to give this filter. Clone will fail if this is not unique.
+ */
+ public ISystemFilter cloneSystemFilter(ISystemFilter filter, String aliasName)
+ {
+ ISystemFilter result = helpers.cloneSystemFilter(internalGetFilters(), filter, aliasName);
+ setDirty(true);
+ return result;
+ }
+
+ /**
+ * Return a given filter's zero-based location
+ */
+ public int getSystemFilterPosition(ISystemFilter filter)
+ {
+ return helpers.getSystemFilterPosition(internalGetFilters(),filter);
+ }
+
+ /**
+ * Move a given filter to a given zero-based location
+ */
+ public void moveSystemFilter(int pos, ISystemFilter filter)
+ {
+ helpers.moveSystemFilter(internalGetFilters(),pos,filter);
+ setDirty(true);
+ }
+
+ /**
+ * This is the method required by the IAdaptable interface.
+ * Given an adapter class type, return an object castable to the type, or
+ * null if this is not possible.
+ */
+ public Object getAdapter(Class adapterType)
+ {
+ return Platform.getAdapterManager().getAdapter(this, adapterType);
+ }
+
+ /**
+ * Private helper method to deduce filter names from disk files.
+ * Will populate and return a list.
+ * Only makes sense to use if the save policy is one file per filter.
+ */
+ protected static Vector deduceFilterNames(IFolder folder, IRSEFilterNamingPolicy namingPolicy)
+ {
+ Vector filterNames = SystemResourceHelpers.getResourceHelpers().convertToVectorAndStrip(
+ SystemResourceHelpers.getResourceHelpers().listFiles(folder,
+ namingPolicy.getFilterSaveFileNamePrefix(),
+ SAVEFILE_SUFFIX),
+ namingPolicy.getFilterSaveFileNamePrefix(), SAVEFILE_SUFFIX);
+ return filterNames;
+ }
+
+
+
+ /**
+ * Order filters according to user preferences.
+ *
+ *
+ * @param namingPolicy The names to use for file and folders when persisting to disk. Pass
+ * null to just use the defaults, or if using SAVE_POLICY_NONE.
+ */
+ public static ISystemFilterPoolReferenceManager createSystemFilterPoolReferenceManager(
+ ISystemFilterPoolReferenceManagerProvider caller,
+ ISystemFilterPoolManagerProvider relatedPoolManagerProvider,
+ IFolder mgrFolder,
+ String name,
+ int savePolicy,
+ IRSEFilterNamingPolicy namingPolicy)
+ {
+ SystemFilterPoolReferenceManager mgr = null;
+
+ if (mgrFolder != null)
+ SystemResourceHelpers.getResourceHelpers().ensureFolderExists(mgrFolder);
+ if (namingPolicy == null)
+ namingPolicy = SystemFilterNamingPolicy.getNamingPolicy();
+ try
+ {
+ if (savePolicy != ISystemFilterSavePolicies.SAVE_POLICY_NONE)
+ mgr = (SystemFilterPoolReferenceManager)restore(caller, mgrFolder, name, namingPolicy);
+ }
+ catch (Exception exc) // real error trying to restore, versus simply not found.
+ {
+ // todo: something. Log the exception somewhere?
+ }
+ if (mgr == null) // not found or some serious error.
+ {
+ mgr = createManager();
+ }
+ if (mgr != null)
+ {
+ mgr.initialize(caller, mgrFolder, name, savePolicy, namingPolicy, relatedPoolManagerProvider);
+ }
+
+ return mgr;
+ }
+
+ /*
+ * Private helper method.
+ * Uses MOF to create an instance of this class.
+ */
+ protected static SystemFilterPoolReferenceManager createManager()
+ {
+ ISystemFilterPoolReferenceManager mgr = new SystemFilterPoolReferenceManager();
+ // FIXME SystemFilterImpl.initMOF().createSystemFilterPoolReferenceManager();
+ return (SystemFilterPoolReferenceManager)mgr;
+ }
+
+
+
+ /*
+ * Private helper method to initialize state
+ */
+ protected void initialize(ISystemFilterPoolReferenceManagerProvider caller,
+ IFolder folder,
+ String name,
+ int savePolicy,
+ IRSEFilterNamingPolicy namingPolicy,
+ ISystemFilterPoolManagerProvider relatedPoolManagerProvider)
+ {
+ if (!initialized)
+ initialize(caller, folder, name, savePolicy, namingPolicy); // core data
+ //setSystemFilterPoolManagers(relatedPoolManagers);
+ setSystemFilterPoolManagerProvider(relatedPoolManagerProvider);
+ }
+
+ /*
+ * Private helper method to do core initialization.
+ * Might be called from either the static factory method or the static restore method.
+ */
+ protected void initialize(ISystemFilterPoolReferenceManagerProvider caller,
+ IFolder folder,
+ String name,
+ int savePolicy,
+ IRSEFilterNamingPolicy namingPolicy)
+ {
+ this.mgrFolder = folder;
+ setProvider(caller);
+ setName(name);
+ this.savePolicy = savePolicy;
+ setNamingPolicy(namingPolicy);
+ initialized = true;
+ }
+
+ private void invalidateFilterPoolReferencesCache()
+ {
+ fpRefsArray = null;
+ invalidateCache();
+ }
+
+ // ------------------------------------------------------------
+ // Methods for setting and querying attributes
+ // ------------------------------------------------------------
+ /**
+ * Set the associated master pool manager provider. Note the provider
+ * typically manages multiple pool managers and we manage references
+ * across those.
+ */
+ public void setSystemFilterPoolManagerProvider(ISystemFilterPoolManagerProvider poolMgrProvider)
+ {
+ this.poolMgrProvider = poolMgrProvider;
+ }
+ /**
+ * Get the associated master pool manager provider. Note the provider
+ * typically manages multiple pool managers and we manage references
+ * across those.
+ */
+ public ISystemFilterPoolManagerProvider getSystemFilterPoolManagerProvider()
+ {
+ return poolMgrProvider;
+ }
+ /*
+ * Set the managers of the master list of filter pools, from which
+ * objects in this list reference.
+ *
+ public void setSystemFilterPoolManagers(SystemFilterPoolManager[] mgrs)
+ {
+ this.poolMgrs = mgrs;
+ }*/
+
+ /**
+ * Get the managers of the master list of filter pools, from which
+ * objects in this list reference.
+ */
+ public ISystemFilterPoolManager[] getSystemFilterPoolManagers()
+ {
+ //return poolMgrs;
+ return poolMgrProvider.getSystemFilterPoolManagers();
+ }
+ /**
+ * Get the managers of the master list of filter pools, from which
+ * objects in this list reference, but which are not in the list of
+ * managers our pool manager supplier gives us. That is, these are
+ * references to filter pools outside the expected list.
+ */
+ public ISystemFilterPoolManager[] getAdditionalSystemFilterPoolManagers()
+ {
+ ISystemFilterPoolManager[] poolMgrs = getSystemFilterPoolManagers();
+ Vector v = new Vector();
+
+ ISystemFilterPoolReference[] fpRefs = getSystemFilterPoolReferences();
+ for (int idx=0; idx
+ *
+ * @param relatedManagers the filter pool managers that hold filter pools we reference
+ * @param provider the host of this reference manager, so you can later call getProvider
+ * @return A Vector of SystemFilterPoolReferences that were not successfully resolved, or null if all
+ * were resolved.
+ */
+ public Vector resolveReferencesAfterRestore(ISystemFilterPoolManagerProvider relatedPoolMgrProvider,
+ ISystemFilterPoolReferenceManagerProvider provider)
+ {
+ setSystemFilterPoolManagerProvider(relatedPoolMgrProvider); // sets poolMgrs = relatedManagers
+ setProvider(provider);
+ ISystemFilterPoolManager[] relatedManagers = getSystemFilterPoolManagers();
+ if (relatedManagers != null)
+ {
+ Vector badRefs = new Vector();
+ ISystemFilterPoolReference[] poolRefs = getSystemFilterPoolReferences();
+ if (poolRefs != null)
+ {
+ for (int idx=0; idx
diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/AbstractConnectorServiceManager.java b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/AbstractConnectorServiceManager.java
index 1c384afe36d..3eb4df8e2c1 100644
--- a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/AbstractConnectorServiceManager.java
+++ b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/AbstractConnectorServiceManager.java
@@ -18,9 +18,9 @@ package org.eclipse.rse.core.subsystems;
import java.util.Hashtable;
import java.util.Set;
+import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.model.DummyHost;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.ui.RSEUIPlugin;
import org.eclipse.swt.widgets.Shell;
diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java
index 7e89c2b50fd..8c0827536a1 100644
--- a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java
+++ b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java
@@ -32,20 +32,20 @@ import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.rse.core.SystemBasePlugin;
import org.eclipse.rse.core.SystemPreferencesManager;
+import org.eclipse.rse.core.filters.ISystemFilter;
+import org.eclipse.rse.core.filters.ISystemFilterPool;
+import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
+import org.eclipse.rse.core.filters.ISystemFilterPoolReference;
+import org.eclipse.rse.core.filters.ISystemFilterPoolReferenceManager;
+import org.eclipse.rse.core.filters.ISystemFilterPoolReferenceManagerProvider;
+import org.eclipse.rse.core.filters.ISystemFilterReference;
+import org.eclipse.rse.core.filters.ISystemFilterString;
+import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.model.IPropertySet;
import org.eclipse.rse.core.model.ISystemModelChangeEvents;
+import org.eclipse.rse.core.model.ISystemProfile;
+import org.eclipse.rse.core.model.ISystemRegistry;
import org.eclipse.rse.core.model.RSEModelObject;
-import org.eclipse.rse.filters.ISystemFilter;
-import org.eclipse.rse.filters.ISystemFilterPool;
-import org.eclipse.rse.filters.ISystemFilterPoolManager;
-import org.eclipse.rse.filters.ISystemFilterPoolReference;
-import org.eclipse.rse.filters.ISystemFilterPoolReferenceManager;
-import org.eclipse.rse.filters.ISystemFilterPoolReferenceManagerProvider;
-import org.eclipse.rse.filters.ISystemFilterReference;
-import org.eclipse.rse.filters.ISystemFilterString;
-import org.eclipse.rse.model.IHost;
-import org.eclipse.rse.model.ISystemProfile;
-import org.eclipse.rse.model.ISystemRegistry;
import org.eclipse.rse.model.ISystemResourceChangeEvents;
import org.eclipse.rse.model.SystemResourceChangeEvent;
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
@@ -107,7 +107,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
{
- protected static final String SUBSYSTEM_FILE_NAME = "subsystem"; //$NON-NLS-1$
+ protected static final String SUBSYSTEM_FILE_NAME = "subsystem";
//protected transient SubSystemConfiguration parentFactory = null;
protected static final int OPERATION_RESOLVE_ABSOLUTE = 0;
@@ -399,7 +399,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
* user preferences, so that such things are not shared among the team on a synchronize operation.
* This is transparent to callers of this method however, as this method resolves from the preferences.
*
- * @see org.eclipse.rse.model.IHost#getDefaultUserId()
+ * @see org.eclipse.rse.core.model.IHost#getDefaultUserId()
* @see #setUserId(String)
* @see #getLocalUserId()
* @see #clearLocalUserId()
@@ -438,7 +438,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
*/
protected String getPreferencesKey(String profileName, String connectionName)
{
- String key = profileName + "." + connectionName + "." + getName(); //$NON-NLS-1$ //$NON-NLS-2$
+ String key = profileName + "." + connectionName + "." + getName();
//System.out.println("in SubSystemImpl.getPreferencesKey(): Subsystem key name: " + key);
return key;
}
@@ -467,7 +467,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
* To set the local user Id, simply call setUserId(String id). To clear it, call
* {@link #clearLocalUserId()}.
*
*