mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
[168975] Move RSE Events API to Core
This commit is contained in:
parent
fee9ecb441
commit
e8dc372b54
169 changed files with 1692 additions and 1154 deletions
|
@ -201,9 +201,18 @@ be exported and imported.
|
|||
<A href="../reference/api/org/eclipse/rse/core/model/ISystemRegistry.html">ISystemRegistry</A>.
|
||||
This is a singleton object that you
|
||||
can access by calling the static method
|
||||
<A href="../reference/api/org/eclipse/rse/model/SystemStartHere.html#getSystemRegistry()">getSystemRegistry()</A> in the
|
||||
<A href="../reference/api/org/eclipse/rse/model/SystemStartHere.html">SystemStartHere</A>
|
||||
<A href="../reference/api/org/eclipse/rse/core/model/SystemStartHere.html#getSystemRegistry()">getSystemRegistry()</A> in the
|
||||
<A href="../reference/api/org/eclipse/rse/core/model/SystemStartHere.html">SystemStartHere</A>
|
||||
class in the <samp>org.eclipse.rse.core</samp> plugin.
|
||||
</p>
|
||||
|
||||
<p>A UI-enabled extension of the system registry is available through the
|
||||
<A href="../reference/api/org/eclipse/rse/ui/model/ISystemRegistryUI.html">ISystemRegistryUI</A> interface.
|
||||
This interface is available by calling the static method
|
||||
<A href="../reference/api/org/eclipse/rse/ui/RSEUIPlugin.html#getTheSystemRegistry()">getTheSystemRegistry()</A> in the
|
||||
<A href="../reference/api/org/eclipse/rse/ui/RSEUIPlugin.html">RSEUIPlugin</A>
|
||||
class in the <samp>org.eclipse.rse.ui</samp> plugin.
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -11,7 +11,7 @@
|
|||
<body bgcolor="#ffffff">
|
||||
<h1>RSE Model API</h1>
|
||||
<p>The front door to accessing the elements of the RSE model is the <A href="../../reference/api/org/eclipse/rse/core/model/ISystemRegistry.html">ISystemRegistry</A>, which is a
|
||||
singleton object accessible via <A href="../../reference/api/org/eclipse/rse/model/SystemStartHere.html#getSystemRegistry()">SystemStartHere.getSystemRegistry()</A>.
|
||||
singleton object accessible via <A href="../../reference/api/org/eclipse/rse/core/model/SystemStartHere.html#getSystemRegistry()">SystemStartHere.getSystemRegistry()</A>.
|
||||
</p>
|
||||
<p>The system registry will get you access to profiles, connections and subsystem factories.
|
||||
From a <A href="../../reference/api/org/eclipse/rse/core/subsystems/ISubSystemConfiguration.html">subsystem configuration</A> you can access subsystems, filter pools,
|
||||
|
|
|
@ -117,9 +117,20 @@ together with the RSE dialog and wizard support.
|
|||
|
||||
<p>Often we want to refresh the contents of the Remote Systems view or Table view from within our actions, to visualize
|
||||
changes to the selected resources. To do this, use the
|
||||
<samp><A href="../../reference/api/org/eclipse/rse/model/SystemRegistry.html#fireRemoteResourceChangeEvent(int, java.lang.Object, java.lang.Object, org.eclipse.rse.core.subsystems.ISubSystem, java.lang.String, org.eclipse.jface.viewers.Viewer)">method</a></samp>.
|
||||
<samp><A href="../../reference/api/org/eclipse/rse/core/model/ISystemRegistry.html#fireRemoteResourceChangeEvent(int, java.lang.Object, java.lang.Object, org.eclipse.rse.core.subsystems.ISubSystem, java.lang.String)">method</a></samp>.
|
||||
To get the system registry, use the
|
||||
<samp><A href="../../reference/api/org/eclipse/rse/model/SystemStartHere.html#getSystemRegistry()">method</a></samp>.
|
||||
</body>
|
||||
<samp><A href="../../reference/api/org/eclipse/rse/core/model/SystemStartHere.html#getSystemRegistry()">method</a></samp>.
|
||||
</p>
|
||||
|
||||
<p>At times, you may want to post events in a dispatch thread rather than using the
|
||||
original client's thread; or you may want to pass the originating viewer's ID
|
||||
with the resource change event. Such operations are only possible when the UI
|
||||
is loaded, and therefore you need to use
|
||||
<samp><A href="../../reference/api/org/eclipse/rse/ui/model/ISystemRegistryUI.html#fireRemoteResourceChangeEvent(int, java.lang.Object, java.lang.Object, org.eclipse.rse.core.subsystems.ISubSystem, java.lang.String, org.eclipse.jface.viewers.Viewer)">ISystemRegistryUI.fireEvent()</a></samp>
|
||||
method in that case. To get the system registry UI interface, use the
|
||||
<samp><A href="../../reference/api/org/eclipse/rse/ui/RSEUIPlugin.html#getTheSystemRegistry()">RSEUIPlugin.getTheSystemRegistry()</a></samp>
|
||||
method.
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -57,6 +57,7 @@ org.eclipse.rse.connectorservice.dstore
|
|||
org.eclipse.rse.connectorservice.dstore.util
|
||||
org.eclipse.rse.core
|
||||
org.eclipse.rse.core.comm
|
||||
org.eclipse.rse.core.events
|
||||
org.eclipse.rse.core.filters
|
||||
org.eclipse.rse.core.model
|
||||
org.eclipse.rse.core.references
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
<topic label="Core" href="provisional_api.html">
|
||||
<topic label="org.eclipse.rse.core" href="reference/api/org/eclipse/rse/core/package-summary.html" />
|
||||
<topic label="org.eclipse.rse.core.comm" href="reference/api/org/eclipse/rse/core/comm/package-summary.html" />
|
||||
<topic label="org.eclipse.rse.core.events" href="reference/api/org/eclipse/rse/core/events/package-summary.html" />
|
||||
<topic label="org.eclipse.rse.core.servicesubsystem" href="reference/api/org/eclipse/rse/core/servicesubsystem/package-summary.html" />
|
||||
<topic label="org.eclipse.rse.core.subsystems" href="reference/api/org/eclipse/rse/core/subsystems/package-summary.html" />
|
||||
<topic label="org.eclipse.rse.core.subsystems.util" href="reference/api/org/eclipse/rse/core/subsystems/util/package-summary.html" />
|
||||
|
@ -39,7 +40,6 @@
|
|||
</topic>
|
||||
<topic label="Model and Persistence" href="provisional_api.html">
|
||||
<topic label="org.eclipse.rse.core.model" href="reference/api/org/eclipse/rse/core/model/package-summary.html"/>
|
||||
<topic label="org.eclipse.rse.model" href="reference/api/org/eclipse/rse/model/package-summary.html"/>
|
||||
<topic label="org.eclipse.rse.core.filters" href="reference/api/org/eclipse/rse/core/filters/package-summary.html"/>
|
||||
<topic label="org.eclipse.rse.core.references" href="reference/api/org/eclipse/rse/core/references/package-summary.html"/>
|
||||
<topic label="org.eclipse.rse.persistence" href="reference/api/org/eclipse/rse/persistence/package-summary.html"/>
|
||||
|
@ -118,6 +118,7 @@
|
|||
<topic label="org.eclipse.rse.ui.filters.dialogs" href="reference/api/org/eclipse/rse/ui/filters/dialogs/package-summary.html"/>
|
||||
<topic label="org.eclipse.rse.ui.filters" href="reference/api/org/eclipse/rse/ui/filters/package-summary.html"/>
|
||||
<topic label="org.eclipse.rse.ui.messages" href="reference/api/org/eclipse/rse/ui/messages/package-summary.html"/>
|
||||
<topic label="org.eclipse.rse.ui.model" href="reference/api/org/eclipse/rse/ui/model/package-summary.html"/>
|
||||
<topic label="org.eclipse.rse.ui.open" href="reference/api/org/eclipse/rse/ui/open/package-summary.html"/>
|
||||
<topic label="org.eclipse.rse.ui.operations" href="reference/api/org/eclipse/rse/ui/operations/package-summary.html"/>
|
||||
<topic label="org.eclipse.rse.ui.propertypages" href="reference/api/org/eclipse/rse/ui/propertypages/package-summary.html"/>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation and Wind River Systems, Inc.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -46,21 +46,24 @@ public class DaytimeConnectorServiceManager extends AbstractConnectorServiceMana
|
|||
return fInstance;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager#createConnectorService(org.eclipse.rse.model.IHost)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager#createConnectorService(org.eclipse.rse.core.model.IHost)
|
||||
*/
|
||||
public IConnectorService createConnectorService(IHost host) {
|
||||
return new DaytimeConnectorService(host);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager#sharesSystem(org.eclipse.rse.core.subsystems.ISubSystem)
|
||||
*/
|
||||
public boolean sharesSystem(ISubSystem otherSubSystem) {
|
||||
return (otherSubSystem instanceof IDaytimeSubSystem);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager#getSubSystemCommonInterface(org.eclipse.rse.core.subsystems.ISubSystem)
|
||||
*/
|
||||
public Class getSubSystemCommonInterface(ISubSystem subsystem) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006 Wind River Systems, Inc.
|
||||
* Copyright (c) 2006, 2007 Wind River Systems, Inc.
|
||||
* 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
|
||||
|
@ -14,6 +14,8 @@ package org.eclipse.rse.examples.daytime.subsystems;
|
|||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.core.model.ISystemMessageObject;
|
||||
import org.eclipse.rse.core.model.SystemMessageObject;
|
||||
|
@ -23,12 +25,10 @@ import org.eclipse.rse.core.subsystems.IServiceSubSystemConfiguration;
|
|||
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.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;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
|
||||
/**
|
||||
* This is our subsystem, which manages the remote connection and resources for
|
||||
|
@ -47,7 +47,7 @@ public class DaytimeSubSystem extends SubSystem implements IServiceSubSystem {
|
|||
//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 SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
final ISystemRegistryUI 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);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -50,16 +50,17 @@ public class DeveloperConnectorServiceManager extends
|
|||
return inst;
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager#createConnectorService(org.eclipse.rse.model.IHost)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager#createConnectorService(org.eclipse.rse.core.model.IHost)
|
||||
*/
|
||||
public IConnectorService createConnectorService(IHost host)
|
||||
{
|
||||
return new DeveloperConnectorService(host);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager#sharesSystem(org.eclipse.rse.core.subsystems.ISubSystem)
|
||||
*/
|
||||
public boolean sharesSystem(ISubSystem otherSubSystem)
|
||||
|
@ -67,7 +68,8 @@ public class DeveloperConnectorServiceManager extends
|
|||
return (otherSubSystem instanceof IDeveloperSubSystem);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager#getSubSystemCommonInterface(org.eclipse.rse.core.subsystems.ISubSystem)
|
||||
*/
|
||||
public Class getSubSystemCommonInterface(ISubSystem subsystem)
|
||||
|
|
|
@ -49,8 +49,9 @@ public class DeveloperSubSystemConfiguration extends SubSystemConfiguration {
|
|||
return new DeveloperSubSystem(conn, getConnectorService(conn));
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getConnectorService(org.eclipse.rse.model.IHost)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getConnectorService(org.eclipse.rse.core.model.IHost)
|
||||
*/
|
||||
public IConnectorService getConnectorService(IHost host) {
|
||||
return DeveloperConnectorServiceManager.getTheDeveloperConnectorServiceManager()
|
||||
|
|
|
@ -49,8 +49,9 @@ public class SshConnectorServiceManager extends AbstractConnectorServiceManager
|
|||
return fInstance;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager#createConnectorService(org.eclipse.rse.model.IHost)
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.AbstractConnectorServiceManager#createConnectorService(org.eclipse.rse.core.model.IHost)
|
||||
*/
|
||||
public IConnectorService createConnectorService(IHost host) {
|
||||
IConnectorService service = new SshConnectorService(host);
|
||||
|
|
|
@ -10,6 +10,7 @@ Require-Bundle: org.eclipse.core.runtime,
|
|||
org.eclipse.rse.services
|
||||
Eclipse-LazyStart: true
|
||||
Export-Package: org.eclipse.rse.core,
|
||||
org.eclipse.rse.core.events,
|
||||
org.eclipse.rse.core.filters,
|
||||
org.eclipse.rse.core.model,
|
||||
org.eclipse.rse.core.references,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,10 +11,10 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.core.model;
|
||||
package org.eclipse.rse.core.events;
|
||||
|
||||
/**
|
||||
* A change event passed to you when listening for RSE model changes.
|
||||
|
@ -22,14 +22,14 @@ package org.eclipse.rse.core.model;
|
|||
*/
|
||||
public interface ISystemModelChangeEvent {
|
||||
/**
|
||||
* Get the event type, such as {@link org.eclipse.rse.core.model.ISystemModelChangeEvents#SYSTEM_RESOURCE_ADDED}.
|
||||
* @see org.eclipse.rse.core.model.ISystemModelChangeEvents
|
||||
* Get the event type, such as {@link org.eclipse.rse.core.events.ISystemModelChangeEvents#SYSTEM_RESOURCE_ADDED}.
|
||||
* @see org.eclipse.rse.core.events.ISystemModelChangeEvents
|
||||
*/
|
||||
public int getEventType();
|
||||
|
||||
/**
|
||||
* Get the resource type, such as {@link org.eclipse.rse.core.model.ISystemModelChangeEvents#SYSTEM_RESOURCETYPE_CONNECTION}.
|
||||
* @see org.eclipse.rse.core.model.ISystemModelChangeEvents
|
||||
* Get the resource type, such as {@link org.eclipse.rse.core.events.ISystemModelChangeEvents#SYSTEM_RESOURCETYPE_CONNECTION}.
|
||||
* @see org.eclipse.rse.core.events.ISystemModelChangeEvents
|
||||
*/
|
||||
public int getResourceType();
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,16 +11,16 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.core.model;
|
||||
package org.eclipse.rse.core.events;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* <p>
|
||||
* To monitor, implement interface {@link org.eclipse.rse.core.model.ISystemModelChangeListener} and
|
||||
* To monitor, implement interface {@link org.eclipse.rse.core.events.ISystemModelChangeListener} and
|
||||
* 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)}.
|
||||
* <p>
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,16 +11,16 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.core.model;
|
||||
package org.eclipse.rse.core.events;
|
||||
|
||||
/**
|
||||
* Interface that listeners interesting in changes to local resources in the RSE model
|
||||
* implement, and subsequently register their interest, via SystemRegistry.
|
||||
* <p>
|
||||
* If you list any of the resource types defined in {@link org.eclipse.rse.core.model.ISystemModelChangeEvents}
|
||||
* If you list any of the resource types defined in {@link org.eclipse.rse.core.events.ISystemModelChangeEvents}
|
||||
* you should monitor by implementing this interface, and registering with the
|
||||
* 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
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,37 +11,42 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.core.model;
|
||||
package org.eclipse.rse.core.events;
|
||||
|
||||
/**
|
||||
* Interface of event sent when a remote system preference changes.
|
||||
* @see org.eclipse.rse.core.model.ISystemPreferenceChangeEvents
|
||||
* @see org.eclipse.rse.core.events.ISystemPreferenceChangeEvents
|
||||
*/
|
||||
public interface ISystemPreferenceChangeEvent {
|
||||
|
||||
/**
|
||||
* Returns the type of the event.
|
||||
* @see org.eclipse.rse.core.model.ISystemPreferenceChangeEvents
|
||||
* @return a type that is one of the constants in this interface
|
||||
* @see org.eclipse.rse.core.events.ISystemPreferenceChangeEvents
|
||||
* @return a type that is one of the constants in ISystemPreferenceChangeEvents.
|
||||
*/
|
||||
public int getType();
|
||||
|
||||
/**
|
||||
* Set the type
|
||||
* @see org.eclipse.rse.core.model.ISystemPreferenceChangeEvents
|
||||
* Set the type of the event.
|
||||
* @see org.eclipse.rse.core.events.ISystemPreferenceChangeEvents
|
||||
* @param type the type of the event.
|
||||
*/
|
||||
public void setType(int type);
|
||||
|
||||
/**
|
||||
* Get the old value. For boolean will be a Boolean object
|
||||
* Get the old value of the Preference.
|
||||
* For boolean will be a Boolean object.
|
||||
* @return the old value of the Preference.
|
||||
*/
|
||||
public Object getOldValue();
|
||||
|
||||
/**
|
||||
* Get the new value. For boolean will be a Boolean object
|
||||
* Get the new value of the Preference.
|
||||
* For boolean will be a Boolean object.
|
||||
* @return the new value of the Preference.
|
||||
*/
|
||||
public Object getNewValue();
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,10 +11,10 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.core.model;
|
||||
package org.eclipse.rse.core.events;
|
||||
|
||||
/**
|
||||
* Interface of event ID constants for preferences changed
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,23 +11,25 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.core.model;
|
||||
package org.eclipse.rse.core.events;
|
||||
|
||||
import java.util.EventListener;
|
||||
|
||||
/**
|
||||
* Interface that listeners interesting in changes to remote
|
||||
* system preferences can implement and subsequently register
|
||||
* their interest in via SystemRegistry.
|
||||
* their interest in with the ISystemRegistry.
|
||||
*/
|
||||
public interface ISystemPreferenceChangeListener extends EventListener {
|
||||
|
||||
/**
|
||||
* This is the method in your class that will be called when a
|
||||
* system resource changes.
|
||||
* This method will be called when a Preference changes.
|
||||
* TODO document on which thread the event will be sent.
|
||||
* @see ISystemPreferenceChangeEvent
|
||||
* @param event the event being sent.
|
||||
*/
|
||||
public void systemPreferenceChanged(ISystemPreferenceChangeEvent event);
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,12 +11,11 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.model;
|
||||
package org.eclipse.rse.core.events;
|
||||
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
|
||||
|
||||
|
@ -27,38 +26,42 @@ import org.eclipse.rse.core.subsystems.ISubSystem;
|
|||
public interface ISystemRemoteChangeEvent
|
||||
{
|
||||
/**
|
||||
* Get the event type, such as {@link org.eclipse.rse.model.ISystemRemoteChangeEvents#SYSTEM_REMOTE_RESOURCE_CREATED}.
|
||||
* @see org.eclipse.rse.model.ISystemRemoteChangeEvents
|
||||
* Get the event type, such as {@link org.eclipse.rse.core.events.ISystemRemoteChangeEvents#SYSTEM_REMOTE_RESOURCE_CREATED}.
|
||||
* @see org.eclipse.rse.core.events.ISystemRemoteChangeEvents
|
||||
* @return the event type.
|
||||
*/
|
||||
public int getEventType();
|
||||
|
||||
/**
|
||||
* Get the resource that this event applies to.
|
||||
* It must either be the binary object of the resource, or the absolute name of the resource.
|
||||
* @return the resource that this event applies to.
|
||||
*/
|
||||
public Object getResource();
|
||||
|
||||
/**
|
||||
* Get the parent remote object for the affected remote object. This is not always known,
|
||||
* but when it is (ie, non null) then it can be used to refresh all expanded occurrences of that parent
|
||||
* @return the parent remote object of the affected resource,
|
||||
* or <code>null</code> if not applicable.
|
||||
*/
|
||||
public Object getResourceParent();
|
||||
|
||||
/**
|
||||
* Get the old name of the resource, in the event of a resource rename. Null for other event types.
|
||||
* Get the old name of the resource, in the event of a resource rename.
|
||||
* Null for other event types.
|
||||
* @return the old name of the resource in case of a rename event,
|
||||
* or <code>null</code> if not applicable.
|
||||
*/
|
||||
public String getOldName();
|
||||
|
||||
/**
|
||||
* Get the subsystem in which this resource resides.
|
||||
* This allows the search for impacts to be limited to subsystems of the same parent factory, and to connections
|
||||
* with the same hostname as the subsystem's connection.
|
||||
* This allows the search for impacts to be limited to subsystems
|
||||
* of the same parent factory, and to connections with the same
|
||||
* hostname as the subsystem's connection.
|
||||
* @return the subsystem in which this resource resides.
|
||||
*/
|
||||
public ISubSystem getSubSystem();
|
||||
|
||||
/**
|
||||
* Get the originating viewer from which this remote resource change event comes from. The combination of this,
|
||||
* if non-null, plus the selected parent, allows viewers to decide whether to update the selection within the
|
||||
* parent resource, after refreshing that resource.
|
||||
*/
|
||||
public Viewer getOriginatingViewer();
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,10 +11,10 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.model;
|
||||
package org.eclipse.rse.core.events;
|
||||
|
||||
/**
|
||||
* The event IDs sent when remote resources in the model change
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,10 +11,11 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.model;
|
||||
package org.eclipse.rse.core.events;
|
||||
|
||||
/**
|
||||
* Interface that listeners interesting in changes to remote resources
|
||||
* implement, and subsequently register their interest, in via SystemRegistry.
|
||||
|
@ -23,9 +24,10 @@ public interface ISystemRemoteChangeListener
|
|||
{
|
||||
|
||||
/**
|
||||
* This is the method in your class that will be called when a remote resource
|
||||
* changes. You will be called after the resource is changed.
|
||||
* @see ISystemRemoteChangeEvent
|
||||
* This method will be called when a remote resource changes.
|
||||
* You will be called after the resource is changed.
|
||||
* TODO document on which thread the event will be sent.
|
||||
* @param event the event.
|
||||
*/
|
||||
public void systemRemoteResourceChanged(ISystemRemoteChangeEvent event);
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* 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:
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
s ********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.core.events;
|
||||
|
||||
/**
|
||||
* Interface of event sent when a remote system resource changes.
|
||||
*
|
||||
* These events are mainly for internal use. BPs/ISVs should instead
|
||||
* fire and monitor for {@link org.eclipse.rse.core.events.ISystemModelChangeEvent}.
|
||||
* @see org.eclipse.rse.core.events.ISystemResourceChangeEvents
|
||||
*/
|
||||
public interface ISystemResourceChangeEvent
|
||||
{
|
||||
/**
|
||||
* Returns an object identifying the source of this event.
|
||||
* @see java.util.EventObject
|
||||
*
|
||||
* @return an object identifying the source of this event
|
||||
*/
|
||||
public Object getSource();
|
||||
|
||||
/**
|
||||
* For multi-target events, return the array of source targets.
|
||||
* @return array of source objects.
|
||||
*/
|
||||
public Object[] getMultiSource();
|
||||
|
||||
/**
|
||||
* Returns the parent of the object source.
|
||||
* Only quaranteed to be set for additions and deletions.
|
||||
*
|
||||
* @return an object identifying the parent of the source of this event,
|
||||
* or <code>null</code> if not applicable.
|
||||
*/
|
||||
public Object getParent();
|
||||
|
||||
/**
|
||||
* Set the parent object of this event.
|
||||
* @param parent the parent object.
|
||||
*/
|
||||
public void setParent(Object parent);
|
||||
|
||||
/**
|
||||
* Returns the grandparent of the object source.
|
||||
* Only quaranteed to be set for special case events, which have a
|
||||
* special contract with the SystemView.
|
||||
*
|
||||
* @return an object identifying the grandparent of the source of this event
|
||||
*/
|
||||
public Object getGrandParent();
|
||||
|
||||
/**
|
||||
* Return the position value for adding a new item.
|
||||
* Used in ADD events. A negative number indicates an append operation.
|
||||
*
|
||||
* @return position to add the new item to.
|
||||
*/
|
||||
public int getPosition();
|
||||
|
||||
/**
|
||||
* Set the position value for adding a new item.
|
||||
* Used in ADD events. A negative number indicates an append operation.
|
||||
*
|
||||
* @param position zero-based position to insert the new item.
|
||||
*/
|
||||
public void setPosition(int position);
|
||||
|
||||
/**
|
||||
* For relative add events, return the previous node this is being added after.
|
||||
* @return the previous node for adding a new node after.
|
||||
*/
|
||||
public Object getRelativePrevious();
|
||||
|
||||
/**
|
||||
* For relative add events, set the previous node this is being added after.
|
||||
* @param previousObject the object after which to add the new object.
|
||||
*/
|
||||
public void setRelativePrevious(Object previousObject);
|
||||
|
||||
/**
|
||||
* Returns the type of the event.
|
||||
* @see org.eclipse.rse.core.events.ISystemResourceChangeEvents
|
||||
* @return a type that is one of the constants in ISystemResourceChangeEvents.
|
||||
*/
|
||||
public int getType();
|
||||
|
||||
/**
|
||||
* Set the type of this event
|
||||
* @see org.eclipse.rse.core.events.ISystemResourceChangeEvents
|
||||
* @param type a type that is one of the constants in ISystemResourceChangeEvents.
|
||||
*/
|
||||
public void setType(int type);
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,12 +11,10 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.model;
|
||||
|
||||
|
||||
package org.eclipse.rse.core.events;
|
||||
|
||||
/**
|
||||
* Interface of event ID constants
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,14 +11,12 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.model;
|
||||
package org.eclipse.rse.core.events;
|
||||
import java.util.EventListener;
|
||||
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
||||
/**
|
||||
* Interface that listeners interesting in changes to remote
|
||||
* system connections and subsystems can listen implement and
|
||||
|
@ -32,9 +30,5 @@ public interface ISystemResourceChangeListener extends EventListener
|
|||
* @see ISystemResourceChangeEvent
|
||||
*/
|
||||
public void systemResourceChanged(ISystemResourceChangeEvent event);
|
||||
/**
|
||||
* This is the method in your class that will be called to return the
|
||||
* shell for your viewer
|
||||
*/
|
||||
public Shell getShell();
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,31 +11,28 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.model;
|
||||
package org.eclipse.rse.core.events;
|
||||
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
|
||||
|
||||
/**
|
||||
* For listeners interested in changes with remote resources.
|
||||
* These events are designed to state what the change to the resource was, not to
|
||||
* optimize those events for a GUI (eg, a delete event versus a refresh event)
|
||||
*/
|
||||
public class SystemRemoteChangeEvent implements ISystemRemoteChangeEvent, ISystemRemoteChangeEvents
|
||||
public class SystemRemoteChangeEvent implements ISystemRemoteChangeEvent
|
||||
{
|
||||
private int eventType;
|
||||
private Object resource, parent;
|
||||
private String oldName;
|
||||
private ISubSystem subsystem;
|
||||
private Viewer originatingViewer;
|
||||
|
||||
/**
|
||||
* Constructor for non-rename event
|
||||
* @param eventType - one of the constants from {@link org.eclipse.rse.model.ISystemRemoteChangeEvents}
|
||||
* @param eventType - one of the constants from {@link org.eclipse.rse.core.events.ISystemRemoteChangeEvents}
|
||||
* @param resource - the remote resource object, or absolute name of the resource as would be given by calling getAbsoluteName on its remote adapter
|
||||
* @param resourceParent - the remote resource's parent object, or absolute name, if that is known. If it is non-null, this will aid in refreshing occurences of that parent.
|
||||
* @param subsystem - the subsystem which contains this remote resource. This allows the search for impacts to be
|
||||
|
@ -49,9 +46,10 @@ public class SystemRemoteChangeEvent implements ISystemRemoteChangeEvent, ISyste
|
|||
this.parent = resourceParent;
|
||||
this.subsystem = subsystem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor for a rename event.
|
||||
* @param eventType - one of the constants from {@link org.eclipse.rse.model.ISystemRemoteChangeEvents}
|
||||
* @param eventType - one of the constants from {@link org.eclipse.rse.core.events.ISystemRemoteChangeEvents}
|
||||
* @param resource - the remote resource object, or absolute name of the resource as would be given by calling getAbsoluteName on its remote adapter
|
||||
* @param resourceParent - the remote resource's parent object, or absolute name, if that is known. If it is non-null, this will aid in refreshing occurences of that parent.
|
||||
* @param subsystem - the subsystem which contains this remote resource. This allows the search for impacts to be
|
||||
|
@ -63,6 +61,7 @@ public class SystemRemoteChangeEvent implements ISystemRemoteChangeEvent, ISyste
|
|||
this(eventType, resource, resourceParent, subsystem);
|
||||
this.oldName = oldName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor you shouldn't use unless you intend to call the setters
|
||||
*/
|
||||
|
@ -77,6 +76,7 @@ public class SystemRemoteChangeEvent implements ISystemRemoteChangeEvent, ISyste
|
|||
{
|
||||
this.eventType = eventType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset the resource
|
||||
*/
|
||||
|
@ -84,6 +84,7 @@ public class SystemRemoteChangeEvent implements ISystemRemoteChangeEvent, ISyste
|
|||
{
|
||||
this.resource = resource;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset the resource's remote resource parent
|
||||
*/
|
||||
|
@ -99,6 +100,7 @@ public class SystemRemoteChangeEvent implements ISystemRemoteChangeEvent, ISyste
|
|||
{
|
||||
this.subsystem = subsystem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset the old name on a rename event
|
||||
*/
|
||||
|
@ -108,23 +110,14 @@ public class SystemRemoteChangeEvent implements ISystemRemoteChangeEvent, ISyste
|
|||
}
|
||||
|
||||
/**
|
||||
* Set the originating viewer. Only this viewer is candidate for updating the selection. Eg, on a
|
||||
* create event, if this and the resource parent is set, the newly created object is selected after
|
||||
* the parent's contents are refreshed, for the originating viewer.
|
||||
*/
|
||||
public void setOriginatingViewer(Viewer originatingViewer)
|
||||
{
|
||||
this.originatingViewer = originatingViewer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the event type, such as {@link org.eclipse.rse.model.ISystemRemoteChangeEvents#SYSTEM_REMOTE_RESOURCE_CREATED}.
|
||||
* @see org.eclipse.rse.model.ISystemRemoteChangeEvents
|
||||
* Get the event type, such as {@link org.eclipse.rse.core.events.ISystemRemoteChangeEvents#SYSTEM_REMOTE_RESOURCE_CREATED}.
|
||||
* @see org.eclipse.rse.core.events.ISystemRemoteChangeEvents
|
||||
*/
|
||||
public int getEventType()
|
||||
{
|
||||
return eventType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the resource that this event applies to
|
||||
* It must either be the binary object of the resource, or the absolute name of the resource.
|
||||
|
@ -133,6 +126,7 @@ public class SystemRemoteChangeEvent implements ISystemRemoteChangeEvent, ISyste
|
|||
{
|
||||
return resource;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the parent remote object for the affected remote object. This is not always known,
|
||||
* but when it is (ie, non null) then it can be used to refresh all expanded occurrences of that parent
|
||||
|
@ -141,6 +135,7 @@ public class SystemRemoteChangeEvent implements ISystemRemoteChangeEvent, ISyste
|
|||
{
|
||||
return parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the subsystem in which this resource resides.
|
||||
* This allows the search for impacts to be limited to subsystems of the same parent factory, and to connections
|
||||
|
@ -150,6 +145,7 @@ public class SystemRemoteChangeEvent implements ISystemRemoteChangeEvent, ISyste
|
|||
{
|
||||
return subsystem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the old name of the resource, in the event of a resource rename. Null for other event types.
|
||||
*/
|
||||
|
@ -158,13 +154,4 @@ public class SystemRemoteChangeEvent implements ISystemRemoteChangeEvent, ISyste
|
|||
return oldName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the originating viewer from which this remote resource change event comes from. The combination of this,
|
||||
* if non-null, plus the resource parent, allows viewers to decide whether to update the selection within the
|
||||
* parent resource, after refreshing that resource.
|
||||
*/
|
||||
public Viewer getOriginatingViewer()
|
||||
{
|
||||
return originatingViewer;
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,20 +11,16 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.model;
|
||||
package org.eclipse.rse.core.events;
|
||||
import java.util.EventObject;
|
||||
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.swt.widgets.Item;
|
||||
|
||||
|
||||
/**
|
||||
* Event object sent to SystemResourceChangeListeners when a
|
||||
* remote system object is created, changed, removed, etc.
|
||||
* @see org.eclipse.rse.model.ISystemResourceChangeEvents
|
||||
* @see org.eclipse.rse.core.events.ISystemResourceChangeEvents
|
||||
*/
|
||||
public class SystemResourceChangeEvent
|
||||
extends EventObject
|
||||
|
@ -33,14 +29,12 @@ public class SystemResourceChangeEvent
|
|||
private static final long serialVersionUID = 1;
|
||||
private Object parent,grandparent, prevObj;
|
||||
private Object[] multiSource;
|
||||
private Viewer originatingViewer;
|
||||
private int type;
|
||||
private int position = -1;
|
||||
private Item item;
|
||||
|
||||
/**
|
||||
* Constructor for SystemResourceChangeEvent.
|
||||
* @see org.eclipse.rse.model.ISystemResourceChangeEvents
|
||||
* @see org.eclipse.rse.core.events.ISystemResourceChangeEvents
|
||||
* @param source The object that was added,deleted,renamed,changed.
|
||||
* @param type The type of event, one of ISystemChangeEvent constants.
|
||||
* @param parent The parent of the object that was added or deleted.
|
||||
|
@ -53,7 +47,7 @@ public class SystemResourceChangeEvent
|
|||
}
|
||||
/**
|
||||
* Constructor for SystemResourceChangeEvent when the source is multipe resources.
|
||||
* @see org.eclipse.rse.model.ISystemResourceChangeEvents
|
||||
* @see org.eclipse.rse.core.events.ISystemResourceChangeEvents
|
||||
* @param source The array of objects that were added,deleted,renamed,changed.
|
||||
* @param type The type of event, one of ISystemChangeEvent constants.
|
||||
* @param parent The parent of the object that was added or deleted.
|
||||
|
@ -121,21 +115,12 @@ public class SystemResourceChangeEvent
|
|||
{
|
||||
this.position = position;
|
||||
}
|
||||
/**
|
||||
* Set the viewer Item of the currently selected object. This is a clue when we want to
|
||||
* expand and select only the specific instance of this widget in this view.
|
||||
*/
|
||||
public void setViewerItem(Item item)
|
||||
{
|
||||
this.item = item;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the type of the event (add, change, remove, rename, change, property change).
|
||||
* @see org.eclipse.rse.model.ISystemResourceChangeEvents
|
||||
* @see org.eclipse.rse.model.ISystemResourceChangeEvent
|
||||
* @see org.eclipse.rse.model.ISystemResourceChangeEvent#getType()
|
||||
* @see org.eclipse.rse.core.events.ISystemResourceChangeEvents
|
||||
* @see org.eclipse.rse.core.events.ISystemResourceChangeEvent
|
||||
* @see org.eclipse.rse.core.events.ISystemResourceChangeEvent#getType()
|
||||
*/
|
||||
public int getType()
|
||||
{
|
||||
|
@ -143,7 +128,7 @@ public class SystemResourceChangeEvent
|
|||
}
|
||||
/**
|
||||
* Set the type
|
||||
* @see org.eclipse.rse.model.ISystemResourceChangeEvents
|
||||
* @see org.eclipse.rse.core.events.ISystemResourceChangeEvents
|
||||
*/
|
||||
public void setType(int type)
|
||||
{
|
||||
|
@ -165,27 +150,4 @@ public class SystemResourceChangeEvent
|
|||
this.prevObj = previousObject;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the originating viewer. For some events, this allows responding viewers to decide if the event applies to them
|
||||
*/
|
||||
public void setOriginatingViewer(Viewer viewer)
|
||||
{
|
||||
this.originatingViewer = viewer;
|
||||
}
|
||||
/**
|
||||
* Get the originating viewer. For some events, this allows responding viewers to decide if the event applies to them
|
||||
*/
|
||||
public Viewer getOriginatingViewer()
|
||||
{
|
||||
return originatingViewer;
|
||||
}
|
||||
/**
|
||||
* Get the viewer Item of the currently selected object. This is a clue when we want to
|
||||
* expand and select only the specific instance of this widget in this view.
|
||||
*/
|
||||
public Item getViewerItem()
|
||||
{
|
||||
return item;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006, 2007 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -22,6 +22,14 @@ import java.util.Vector;
|
|||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.core.runtime.jobs.ISchedulingRule;
|
||||
import org.eclipse.rse.core.IRSESystemType;
|
||||
import org.eclipse.rse.core.events.ISystemModelChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemModelChangeListener;
|
||||
import org.eclipse.rse.core.events.ISystemPreferenceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemPreferenceChangeListener;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeListener;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterStartHere;
|
||||
import org.eclipse.rse.core.subsystems.IConnectorService;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
|
@ -128,6 +136,26 @@ public interface ISystemRegistry extends ISchedulingRule {
|
|||
*/
|
||||
public ISubSystemConfiguration[] getSubSystemConfigurationsBySystemType(String systemType, boolean filterDuplicateServiceSubSystemFactories);
|
||||
|
||||
// ----------------------------------
|
||||
// SYSTEMVIEWINPUTPROVIDER METHODS...
|
||||
// ----------------------------------
|
||||
|
||||
/**
|
||||
* This method is called by the connection adapter when the user expands
|
||||
* a connection.
|
||||
* This method must return the child objects to show for that connection.
|
||||
*/
|
||||
public Object[] getConnectionChildren(IHost selectedConnection);
|
||||
|
||||
/**
|
||||
* This method is called by the connection adapter when deciding
|
||||
* to show a plus-sign or not beside a connection.
|
||||
*
|
||||
* @return true if this connection has children to be shown.
|
||||
*/
|
||||
public boolean hasConnectionChildren(IHost selectedConnection);
|
||||
|
||||
|
||||
// ----------------------------
|
||||
// USER PREFERENCE METHODS...
|
||||
// ----------------------------
|
||||
|
@ -676,6 +704,131 @@ public interface ISystemRegistry extends ISchedulingRule {
|
|||
*/
|
||||
public void connectedStatusChange(ISubSystem subsystem, boolean connected, boolean wasConnected, boolean collapseTree);
|
||||
|
||||
// ----------------------------
|
||||
// RESOURCE EVENT METHODS...
|
||||
// ----------------------------
|
||||
|
||||
/**
|
||||
* Register your interest in being told when a system resource such as a connection is changed.
|
||||
*/
|
||||
public void addSystemResourceChangeListener(ISystemResourceChangeListener l);
|
||||
|
||||
/**
|
||||
* De-Register your interest in being told when a system resource such as a connection is changed.
|
||||
*/
|
||||
public void removeSystemResourceChangeListener(ISystemResourceChangeListener l);
|
||||
|
||||
/**
|
||||
* Query if the ISystemResourceChangeListener is already listening for SystemResourceChange events
|
||||
*/
|
||||
public boolean isRegisteredSystemResourceChangeListener(ISystemResourceChangeListener l);
|
||||
|
||||
/**
|
||||
* Notify all listeners of a change to a system resource such as a connection.
|
||||
* You would not normally call this as the methods in this class call it when appropriate.
|
||||
*/
|
||||
public void fireEvent(ISystemResourceChangeEvent event);
|
||||
|
||||
/**
|
||||
* Notify a specific listener of a change to a system resource such as a connection.
|
||||
*/
|
||||
public void fireEvent(ISystemResourceChangeListener l, ISystemResourceChangeEvent event);
|
||||
|
||||
// ----------------------------
|
||||
// MODEL RESOURCE EVENT METHODS...
|
||||
// ----------------------------
|
||||
|
||||
/**
|
||||
* Register your interest in being told when an RSE model resource is changed.
|
||||
* These are model events, not GUI-optimized events.
|
||||
*/
|
||||
public void addSystemModelChangeListener(ISystemModelChangeListener l);
|
||||
|
||||
/**
|
||||
* De-Register your interest in being told when an RSE model resource is changed.
|
||||
*/
|
||||
public void removeSystemModelChangeListener(ISystemModelChangeListener l);
|
||||
|
||||
/**
|
||||
* Notify all listeners of a change to a system model resource such as a connection.
|
||||
* You would not normally call this as the methods in this class call it when appropriate.
|
||||
*/
|
||||
public void fireEvent(ISystemModelChangeEvent event);
|
||||
|
||||
/**
|
||||
* Notify all listeners of a change to a system model resource such as a connection.
|
||||
* This one takes the information needed and creates the event for you.
|
||||
*/
|
||||
public void fireModelChangeEvent(int eventType, int resourceType, Object resource, String oldName);
|
||||
|
||||
/**
|
||||
* Notify a specific listener of a change to a system model resource such as a connection.
|
||||
*/
|
||||
public void fireEvent(ISystemModelChangeListener l, ISystemModelChangeEvent event);
|
||||
|
||||
// --------------------------------
|
||||
// REMOTE RESOURCE EVENT METHODS...
|
||||
// --------------------------------
|
||||
|
||||
/**
|
||||
* Register your interest in being told when a remote resource is changed.
|
||||
* These are model events, not GUI-optimized events.
|
||||
*/
|
||||
public void addSystemRemoteChangeListener(ISystemRemoteChangeListener l);
|
||||
|
||||
/**
|
||||
* De-Register your interest in being told when a remote resource is changed.
|
||||
*/
|
||||
public void removeSystemRemoteChangeListener(ISystemRemoteChangeListener l);
|
||||
|
||||
/**
|
||||
* Notify all listeners of a change to a remote resource such as a file.
|
||||
* You would not normally call this as the methods in this class call it when appropriate.
|
||||
*/
|
||||
public void fireEvent(ISystemRemoteChangeEvent event);
|
||||
|
||||
/**
|
||||
* Notify all listeners of a change to a remote resource such as a file.
|
||||
* This one takes the information needed and creates the event for you.
|
||||
* @param eventType - one of the constants from {@link org.eclipse.rse.core.events.ISystemRemoteChangeEvents}
|
||||
* @param resource - the remote resource object, or absolute name of the resource as would be given by calling getAbsoluteName on its remote adapter
|
||||
* @param resourceParent - the remote resource's parent object, or absolute name, if that is known. If it is non-null, this will aid in refreshing occurences of that parent.
|
||||
* @param subsystem - the subsystem which contains this remote resource. This allows the search for impacts to be
|
||||
* limited to subsystems of the same parent factory, and to connections with the same hostname as the subsystem's connection.
|
||||
* @param oldName - on a rename operation, this is the absolute name of the resource prior to the rename
|
||||
*/
|
||||
public void fireRemoteResourceChangeEvent(int eventType, Object resource, Object resourceParent, ISubSystem subsystem, String oldName);
|
||||
|
||||
/**
|
||||
* Notify a specific listener of a change to a remote resource such as a file.
|
||||
*/
|
||||
public void fireEvent(ISystemRemoteChangeListener l, ISystemRemoteChangeEvent event);
|
||||
|
||||
// ----------------------------
|
||||
// PREFERENCE EVENT METHODS...
|
||||
// ----------------------------
|
||||
|
||||
/**
|
||||
* Register your interest in being told when a system preference changes
|
||||
*/
|
||||
public void addSystemPreferenceChangeListener(ISystemPreferenceChangeListener l);
|
||||
|
||||
/**
|
||||
* De-Register your interest in being told when a system preference changes
|
||||
*/
|
||||
public void removeSystemPreferenceChangeListener(ISystemPreferenceChangeListener l);
|
||||
|
||||
/**
|
||||
* Notify all listeners of a change to a system preference
|
||||
* You would not normally call this as the methods in this class call it when appropriate.
|
||||
*/
|
||||
public void fireEvent(ISystemPreferenceChangeEvent event);
|
||||
|
||||
/**
|
||||
* Notify a specific listener of a change to a system preference
|
||||
*/
|
||||
public void fireEvent(ISystemPreferenceChangeListener l, ISystemPreferenceChangeEvent event);
|
||||
|
||||
// ----------------------------
|
||||
// MISCELLANEOUS METHODS...
|
||||
// ----------------------------
|
||||
|
@ -735,4 +888,4 @@ public interface ISystemRegistry extends ISchedulingRule {
|
|||
* @return true if restored ok, false if error encountered. If false, call getLastException().
|
||||
*/
|
||||
public boolean restore();
|
||||
} //SystemRegistry
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,20 +11,18 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.model;
|
||||
package org.eclipse.rse.core.model;
|
||||
|
||||
public class SystemEscapeCharHelper {
|
||||
|
||||
|
||||
private static char ESCAPE_CHAR = '#';
|
||||
|
||||
private char changedChars[];
|
||||
private int escapeStringLength;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
* @param chars array of chars to be escaped.
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2004, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2004, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,16 +11,15 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.model;
|
||||
package org.eclipse.rse.core.model;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.core.runtime.IAdaptable;
|
||||
import org.eclipse.rse.core.model.AbstractSystemResourceSet;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.ui.view.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.core.subsystems.ISystemDragDropAdapter;
|
||||
|
||||
|
||||
public class SystemRemoteResourceSet extends AbstractSystemResourceSet
|
||||
|
@ -28,8 +27,6 @@ public class SystemRemoteResourceSet extends AbstractSystemResourceSet
|
|||
private ISubSystem _subSystem;
|
||||
private ISystemDragDropAdapter _adapter;
|
||||
|
||||
|
||||
|
||||
public SystemRemoteResourceSet(ISubSystem subSystem)
|
||||
{
|
||||
super();
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,18 +11,14 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.model;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.core.model.ISystemProfile;
|
||||
import org.eclipse.rse.core.model.ISystemProfileManager;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
package org.eclipse.rse.core.model;
|
||||
import org.eclipse.rse.core.RSECorePlugin;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
|
||||
import org.eclipse.rse.internal.core.model.SystemProfileManager;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -33,11 +29,11 @@ public class SystemStartHere
|
|||
/**
|
||||
* STEP 1. Get system registry singleton
|
||||
* <p>
|
||||
* SAME AS: <code>RSEUIPlugin.getTheSystemRegistry</code>
|
||||
* SAME AS: <code>RSECorePlugin.getSystemRegistry</code>
|
||||
*/
|
||||
public static ISystemRegistry getSystemRegistry()
|
||||
{
|
||||
return RSEUIPlugin.getTheSystemRegistry();
|
||||
return RSECorePlugin.getDefault().getSystemRegistry();
|
||||
}
|
||||
|
||||
/**
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,16 +11,14 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.ui.view;
|
||||
package org.eclipse.rse.core.subsystems;
|
||||
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.rse.core.model.ISystemResourceSet;
|
||||
import org.eclipse.rse.core.subsystems.IRemoteObjectIdentifier;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.model.SystemRemoteResourceSet;
|
||||
import org.eclipse.rse.core.model.SystemRemoteResourceSet;
|
||||
|
||||
public interface ISystemDragDropAdapter extends IRemoteObjectIdentifier
|
||||
{
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,20 +11,19 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.model;
|
||||
package org.eclipse.rse.internal.core.model;
|
||||
|
||||
import org.eclipse.rse.core.model.ISystemModelChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemModelChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemModelChangeEvent;
|
||||
|
||||
/**
|
||||
* For listeners interested in model changes with resources in the rse project.
|
||||
* These events are designed to state what the change the resource was, not to
|
||||
* optimize those events for a GUI (eg, a delete event versus a refresh event)
|
||||
*/
|
||||
public class SystemModelChangeEvent implements ISystemModelChangeEvent, ISystemModelChangeEvents
|
||||
public class SystemModelChangeEvent implements ISystemModelChangeEvent
|
||||
{
|
||||
private int eventType, resourceType;
|
||||
private Object resource;
|
||||
|
@ -85,16 +84,16 @@ public class SystemModelChangeEvent implements ISystemModelChangeEvent, ISystemM
|
|||
}
|
||||
|
||||
/**
|
||||
* Get the event type, such as {@link org.eclipse.rse.core.model.ISystemModelChangeEvents#SYSTEM_RESOURCE_ADDED}.
|
||||
* @see org.eclipse.rse.core.model.ISystemModelChangeEvents
|
||||
* Get the event type, such as {@link org.eclipse.rse.core.events.ISystemModelChangeEvents#SYSTEM_RESOURCE_ADDED}.
|
||||
* @see org.eclipse.rse.core.events.ISystemModelChangeEvents
|
||||
*/
|
||||
public int getEventType()
|
||||
{
|
||||
return eventType;
|
||||
}
|
||||
/**
|
||||
* Get the resource type, such as {@link org.eclipse.rse.core.model.ISystemModelChangeEvents#SYSTEM_RESOURCETYPE_CONNECTION}.
|
||||
* @see org.eclipse.rse.core.model.ISystemModelChangeEvents
|
||||
* Get the resource type, such as {@link org.eclipse.rse.core.events.ISystemModelChangeEvents#SYSTEM_RESOURCETYPE_CONNECTION}.
|
||||
* @see org.eclipse.rse.core.events.ISystemModelChangeEvents
|
||||
*/
|
||||
public int getResourceType()
|
||||
{
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,14 +11,14 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.model;
|
||||
package org.eclipse.rse.internal.core.model;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.eclipse.rse.core.model.ISystemModelChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemModelChangeListener;
|
||||
import org.eclipse.rse.core.events.ISystemModelChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemModelChangeListener;
|
||||
|
||||
|
||||
/**
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,19 +11,19 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.model;
|
||||
package org.eclipse.rse.internal.core.model;
|
||||
import java.util.EventObject;
|
||||
|
||||
import org.eclipse.rse.core.model.ISystemPreferenceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemPreferenceChangeEvent;
|
||||
|
||||
|
||||
/**
|
||||
* Event object sent to ISystemPreferenceChangeListeners when a
|
||||
* remote system preference is changed.
|
||||
* @see org.eclipse.rse.core.model.ISystemPreferenceChangeEvents
|
||||
* @see org.eclipse.rse.core.events.ISystemPreferenceChangeEvents
|
||||
*/
|
||||
public class SystemPreferenceChangeEvent
|
||||
extends EventObject
|
||||
|
@ -35,7 +35,7 @@ public class SystemPreferenceChangeEvent
|
|||
|
||||
/**
|
||||
* Constructor
|
||||
* @see org.eclipse.rse.core.model.ISystemPreferenceChangeEvents
|
||||
* @see org.eclipse.rse.core.events.ISystemPreferenceChangeEvents
|
||||
* @param source The object that was added,deleted,renamed,changed.
|
||||
* @param type The type of event, one of ISystemChangeEvent constants.
|
||||
* @param parent The parent of the object that was added or deleted.
|
||||
|
@ -50,7 +50,7 @@ public class SystemPreferenceChangeEvent
|
|||
|
||||
/**
|
||||
* Return the type of the event
|
||||
* @see org.eclipse.rse.core.model.ISystemPreferenceChangeEvents
|
||||
* @see org.eclipse.rse.core.events.ISystemPreferenceChangeEvents
|
||||
*/
|
||||
public int getType()
|
||||
{
|
||||
|
@ -73,7 +73,7 @@ public class SystemPreferenceChangeEvent
|
|||
|
||||
/**
|
||||
* Set the type
|
||||
* @see org.eclipse.rse.core.model.ISystemPreferenceChangeEvents
|
||||
* @see org.eclipse.rse.core.events.ISystemPreferenceChangeEvents
|
||||
*/
|
||||
public void setType(int type)
|
||||
{
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,14 +11,14 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.model;
|
||||
package org.eclipse.rse.internal.core.model;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.eclipse.rse.core.model.ISystemPreferenceChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemPreferenceChangeListener;
|
||||
import org.eclipse.rse.core.events.ISystemPreferenceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemPreferenceChangeListener;
|
||||
|
||||
|
||||
/**
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,15 +11,14 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.model;
|
||||
package org.eclipse.rse.internal.core.model;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.eclipse.rse.model.ISystemRemoteChangeEvent;
|
||||
import org.eclipse.rse.model.ISystemRemoteChangeListener;
|
||||
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeListener;
|
||||
|
||||
/**
|
||||
* Manages the list of registered remote resource change listeners.
|
||||
|
@ -36,8 +35,9 @@ public class SystemRemoteChangeEventManager
|
|||
}
|
||||
|
||||
/**
|
||||
* Add a listener to list of listeners. If this object is already in
|
||||
* the list, this does nothing.
|
||||
* Add a listener to list of listeners.
|
||||
* If this object is already in the list, this does nothing.
|
||||
* @param l the new listener to add.
|
||||
*/
|
||||
public void addSystemRemoteChangeListener(ISystemRemoteChangeListener l)
|
||||
{
|
||||
|
@ -46,8 +46,9 @@ public class SystemRemoteChangeEventManager
|
|||
}
|
||||
|
||||
/**
|
||||
* Remove a listener to list of listeners. If this object is not in
|
||||
* the list, this does nothing.
|
||||
* Remove a listener to list of listeners.
|
||||
* If this object is not in the list, this does nothing.
|
||||
* @param l the listener to remove.
|
||||
*/
|
||||
public void removeSystemRemoteChangeListener(ISystemRemoteChangeListener l)
|
||||
{
|
||||
|
@ -56,7 +57,9 @@ public class SystemRemoteChangeEventManager
|
|||
}
|
||||
|
||||
/**
|
||||
* Notify all registered listeners of the given event
|
||||
* Notify all registered listeners of the given event.
|
||||
* TODO document on which thread the event is being sent.
|
||||
* @param event the event to send.
|
||||
*/
|
||||
public void notify(ISystemRemoteChangeEvent event)
|
||||
{
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.files.ui.resources;
|
||||
|
@ -32,15 +33,14 @@ import org.eclipse.core.runtime.jobs.Job;
|
|||
import org.eclipse.jface.dialogs.ProgressMonitorDialog;
|
||||
import org.eclipse.jface.operation.IRunnableContext;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterReference;
|
||||
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.files.ui.FileResources;
|
||||
import org.eclipse.rse.internal.files.ui.resources.SystemRemoteEditManager;
|
||||
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.subsystems.files.core.model.RemoteFileUtility;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
|
@ -589,7 +589,7 @@ public abstract class SystemTempFileListener implements IResourceChangeListener
|
|||
|
||||
protected void refreshRemoteResource(Object parent)
|
||||
{
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
// refresh
|
||||
if (parent != null)
|
||||
{
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.files.ui.resources;
|
||||
|
@ -20,12 +21,12 @@ import java.util.ArrayList;
|
|||
import org.eclipse.core.resources.IFile;
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.internal.files.ui.actions.SystemUploadConflictAction;
|
||||
import org.eclipse.rse.internal.files.ui.resources.SystemRemoteEditManager;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.services.files.RemoteFileIOException;
|
||||
import org.eclipse.rse.services.files.RemoteFileSecurityException;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
|
@ -261,7 +262,7 @@ public class SystemUniversalTempFileListener extends SystemTempFileListener
|
|||
|
||||
IRemoteFile parent = remoteFile.getParentRemoteFile();
|
||||
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
// refresh
|
||||
if (parent != null)
|
||||
{
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
* Contributors:
|
||||
* Michael Scharf (Wind River) - Fix 163844: InvalidThreadAccess in checkForCollision
|
||||
* Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.files.ui.resources;
|
||||
|
@ -45,13 +46,13 @@ import org.eclipse.jface.preference.IPreferenceStore;
|
|||
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.SystemRemoteResourceSet;
|
||||
import org.eclipse.rse.core.model.SystemWorkspaceResourceSet;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.internal.files.ui.Activator;
|
||||
import org.eclipse.rse.internal.files.ui.FileResources;
|
||||
import org.eclipse.rse.internal.files.ui.resources.SystemRemoteEditManager;
|
||||
import org.eclipse.rse.internal.subsystems.files.core.ISystemFilePreferencesConstants;
|
||||
import org.eclipse.rse.model.SystemRemoteResourceSet;
|
||||
import org.eclipse.rse.services.clientserver.SystemEncodingUtil;
|
||||
import org.eclipse.rse.services.clientserver.archiveutils.ArchiveHandlerManager;
|
||||
import org.eclipse.rse.services.clientserver.archiveutils.ISystemArchiveHandler;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2003, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2003, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.actions;
|
||||
|
@ -27,13 +27,14 @@ 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.events.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.core.subsystems.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.files.ui.dialogs.AddToArchiveDialog;
|
||||
import org.eclipse.rse.internal.files.ui.FileResources;
|
||||
import org.eclipse.rse.model.ISystemRemoteChangeEvents;
|
||||
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.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||
|
@ -44,7 +45,6 @@ import org.eclipse.rse.ui.ISystemMessages;
|
|||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.actions.SystemBaseAction;
|
||||
import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
||||
import org.eclipse.rse.ui.view.ISystemDragDropAdapter;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
||||
|
||||
|
@ -158,8 +158,8 @@ public class SystemAddToArchiveAction extends SystemBaseAction
|
|||
IRemoteFile selection = (IRemoteFile) _selected.get(i);
|
||||
addToArchive(selection, destinationArchive, saveFullPathInfo, relativeTo);
|
||||
}
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED, destinationArchive, destinationArchive.getParentPath(), destSS, null, null);
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED, destinationArchive, destinationArchive.getParentPath(), destSS, null);
|
||||
registry.fireEvent(new SystemResourceChangeEvent(destinationArchive, ISystemResourceChangeEvents.EVENT_REFRESH, destinationArchive.getParentPath()));
|
||||
repeat = false;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2003, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2003, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,17 +11,17 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.actions;
|
||||
import org.eclipse.jface.operation.IRunnableContext;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.files.ui.dialogs.CombineDialog;
|
||||
import org.eclipse.rse.internal.files.ui.FileResources;
|
||||
import org.eclipse.rse.model.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.services.clientserver.archiveutils.ArchiveHandlerManager;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||
|
@ -156,8 +156,8 @@ public class SystemCombineAction extends SystemExtractToAction {
|
|||
{
|
||||
}
|
||||
}
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED, destination, destination.getParentPath(), destSS, null, null);
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED, destination, destination.getParentPath(), destSS, null);
|
||||
registry.fireEvent(new SystemResourceChangeEvent(destination, ISystemResourceChangeEvents.EVENT_REFRESH, destination.getParentPath()));
|
||||
repeat = false;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2003, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2003, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,17 +11,17 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.actions;
|
||||
import org.eclipse.jface.operation.IRunnableContext;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.files.ui.dialogs.CombineDialog;
|
||||
import org.eclipse.rse.internal.files.ui.FileResources;
|
||||
import org.eclipse.rse.model.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.services.clientserver.archiveutils.ArchiveHandlerManager;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||
|
@ -166,8 +166,8 @@ public class SystemConvertAction extends SystemExtractToAction {
|
|||
catch (java.lang.InterruptedException e)
|
||||
{
|
||||
}
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED, destination, destination.getParentPath(), destSS, null, null);
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED, destination, destination.getParentPath(), destSS, null);
|
||||
registry.fireEvent(new SystemResourceChangeEvent(destination, ISystemResourceChangeEvents.EVENT_REFRESH, destination.getParentPath()));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.actions;
|
||||
|
@ -24,6 +24,7 @@ import org.eclipse.jface.dialogs.Dialog;
|
|||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.core.filters.ISystemFilter;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterPool;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterPoolReferenceManager;
|
||||
|
@ -35,7 +36,6 @@ import org.eclipse.rse.files.ui.dialogs.SystemRemoteFolderDialog;
|
|||
import org.eclipse.rse.internal.files.ui.resources.SystemRemoteEditManager;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.internal.ui.view.SystemView;
|
||||
import org.eclipse.rse.model.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.services.clientserver.SystemEncodingUtil;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||
|
@ -489,18 +489,18 @@ public class SystemCopyRemoteFileAction extends SystemBaseCopyAction
|
|||
if (parent instanceof IRemoteFile)
|
||||
// refresh parent in all views...
|
||||
sr.fireEvent(
|
||||
new org.eclipse.rse.model.SystemResourceChangeEvent(
|
||||
new org.eclipse.rse.ui.model.SystemResourceChangeEvent(
|
||||
parent,ISystemResourceChangeEvent.EVENT_REFRESH_REMOTE, null)
|
||||
);
|
||||
else
|
||||
// refresh parent in all views...
|
||||
sr.fireEvent(
|
||||
new org.eclipse.rse.model.SystemResourceChangeEvent(
|
||||
new org.eclipse.rse.ui.model.SystemResourceChangeEvent(
|
||||
parent,ISystemResourceChangeEvent.EVENT_REFRESH, null)
|
||||
);
|
||||
// select new files in this view only
|
||||
sr.fireEvent((ISystemResourceChangeListener)v,
|
||||
new org.eclipse.rse.model.SystemResourceChangeEvent(
|
||||
new org.eclipse.rse.ui.model.SystemResourceChangeEvent(
|
||||
copiedFiles,ISystemResourceChangeEvent.EVENT_SELECT_REMOTE, targetFolder)
|
||||
);
|
||||
}
|
||||
|
@ -509,8 +509,8 @@ public class SystemCopyRemoteFileAction extends SystemBaseCopyAction
|
|||
else
|
||||
{
|
||||
// refresh target folder in all views, but only select new files in this view...
|
||||
org.eclipse.rse.model.SystemResourceChangeEvent event =
|
||||
new org.eclipse.rse.model.SystemResourceChangeEvent(
|
||||
org.eclipse.rse.ui.model.SystemResourceChangeEvent event =
|
||||
new org.eclipse.rse.ui.model.SystemResourceChangeEvent(
|
||||
targetFolder,ISystemResourceChangeEvent.EVENT_REFRESH_REMOTE, copiedFiles);
|
||||
event.setOriginatingViewer(getViewer());
|
||||
sr.fireEvent(event);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2003, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2003, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.actions;
|
||||
|
@ -26,11 +26,12 @@ 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.events.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.internal.files.ui.FileResources;
|
||||
import org.eclipse.rse.model.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.core.subsystems.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
|
@ -40,7 +41,6 @@ import org.eclipse.rse.ui.ISystemMessages;
|
|||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.actions.SystemBaseAction;
|
||||
import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
||||
import org.eclipse.rse.ui.view.ISystemDragDropAdapter;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
||||
|
||||
|
@ -119,8 +119,8 @@ public class SystemExtractAction extends SystemBaseAction
|
|||
}
|
||||
// always refresh
|
||||
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED, destination, destinationParent, ss, null, null);
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED, destination, destinationParent, ss, null);
|
||||
registry.fireEvent(new SystemResourceChangeEvent(destination, ISystemResourceChangeEvents.EVENT_REFRESH, destinationParent));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2003, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2003, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,19 +11,19 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.actions;
|
||||
import org.eclipse.jface.operation.IRunnableContext;
|
||||
import org.eclipse.rse.core.IRSESystemType;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.files.ui.dialogs.ExtractToDialog;
|
||||
import org.eclipse.rse.internal.files.ui.FileResources;
|
||||
import org.eclipse.rse.model.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
|
||||
|
@ -149,8 +149,8 @@ public class SystemExtractToAction extends SystemExtractAction implements IValid
|
|||
{
|
||||
}
|
||||
// always refresh
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED, destination, destination.getParentPath(), destSS, null, null);
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED, destination, destination.getParentPath(), destSS, null);
|
||||
registry.fireEvent(new SystemResourceChangeEvent(destination, ISystemResourceChangeEvents.EVENT_REFRESH, destination.getParentPath()));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,16 +11,16 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.actions;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.model.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
|
@ -172,7 +172,7 @@ public class SystemMoveRemoteFileAction extends SystemCopyRemoteFileAction
|
|||
{
|
||||
//System.out.println("Firing REFRESH_REMOTE");
|
||||
sr.fireEvent(
|
||||
new org.eclipse.rse.model.impl.SystemResourceChangeEvent(
|
||||
new org.eclipse.rse.ui.model.impl.SystemResourceChangeEvent(
|
||||
parent,ISystemResourceChangeEvent.EVENT_REFRESH_REMOTE, null) );
|
||||
}
|
||||
else
|
||||
|
@ -180,11 +180,11 @@ public class SystemMoveRemoteFileAction extends SystemCopyRemoteFileAction
|
|||
//System.out.println("MOVE OPERATION: Firing REFRESH");
|
||||
// FIRST REFRESH EXPANDED FILTER
|
||||
sr.fireEvent(
|
||||
new org.eclipse.rse.model.impl.SystemResourceChangeEvent(
|
||||
new org.eclipse.rse.ui.model.impl.SystemResourceChangeEvent(
|
||||
parent,ISystemResourceChangeEvent.EVENT_REFRESH, null) );
|
||||
// NEXT REFRESH ALL OTHER PLACES THAT MIGHT BE SHOWING THE SOURCE FOLDER
|
||||
sr.fireEvent(
|
||||
new org.eclipse.rse.model.impl.SystemResourceChangeEvent(
|
||||
new org.eclipse.rse.ui.model.impl.SystemResourceChangeEvent(
|
||||
firstSelectionParent,ISystemResourceChangeEvent.EVENT_REFRESH_REMOTE, null) );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.actions;
|
||||
|
@ -23,6 +23,8 @@ import org.eclipse.core.runtime.Status;
|
|||
import org.eclipse.core.runtime.jobs.Job;
|
||||
import org.eclipse.jface.window.Window;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.subsystems.SubSystem;
|
||||
import org.eclipse.rse.core.subsystems.SubSystem.SystemMessageDialogRunnable;
|
||||
import org.eclipse.rse.files.ui.dialogs.ISaveAsDialog;
|
||||
|
@ -31,8 +33,6 @@ import org.eclipse.rse.files.ui.resources.SystemEditableRemoteFile;
|
|||
import org.eclipse.rse.files.ui.resources.SystemIFileProperties;
|
||||
import org.eclipse.rse.internal.files.ui.FileResources;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.services.clientserver.SystemEncodingUtil;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.propertypages;
|
||||
|
@ -23,8 +23,8 @@ import java.util.Date;
|
|||
import java.util.List;
|
||||
|
||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.internal.subsystems.files.core.SystemFileResources;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.services.files.RemoteFileIOException;
|
||||
import org.eclipse.rse.services.files.RemoteFileSecurityException;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
|
@ -451,7 +451,7 @@ public class SystemFilePropertyPage extends SystemBasePropertyPage
|
|||
{
|
||||
getRemoteFile().getParentRemoteFileSubSystem().setReadOnly(new NullProgressMonitor(), getRemoteFile(), readOnlySelected);
|
||||
RSEUIPlugin.getTheSystemRegistry().fireEvent(
|
||||
new org.eclipse.rse.model.SystemResourceChangeEvent(
|
||||
new org.eclipse.rse.core.events.SystemResourceChangeEvent(
|
||||
getRemoteFile(),ISystemResourceChangeEvents.EVENT_PROPERTY_CHANGE,null));
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,14 +11,14 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.resources;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import org.eclipse.rse.model.SystemEscapeCharHelper;
|
||||
import org.eclipse.rse.core.model.SystemEscapeCharHelper;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.view;
|
||||
|
@ -38,11 +38,11 @@ import org.eclipse.rse.internal.files.ui.actions.SystemNewFolderAction;
|
|||
import org.eclipse.rse.internal.files.ui.resources.SystemRemoteEditManager;
|
||||
import org.eclipse.rse.internal.files.ui.wizards.SystemFileNewConnectionWizardPage;
|
||||
import org.eclipse.rse.internal.subsystems.files.core.ISystemFilePreferencesConstants;
|
||||
import org.eclipse.rse.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystemConfiguration;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.actions.SystemPasteFromClipboardAction;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.view.IContextObject;
|
||||
import org.eclipse.rse.ui.view.SubSystemConfigurationAdapter;
|
||||
import org.eclipse.swt.dnd.Clipboard;
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.view;
|
||||
|
@ -41,6 +42,8 @@ import org.eclipse.jface.viewers.AbstractTreeViewer;
|
|||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.filters.ISystemFilter;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterReference;
|
||||
import org.eclipse.rse.core.filters.SystemFilterReference;
|
||||
|
@ -50,8 +53,10 @@ import org.eclipse.rse.core.model.ISystemMessageObject;
|
|||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.core.model.ISystemResourceSet;
|
||||
import org.eclipse.rse.core.model.SystemMessageObject;
|
||||
import org.eclipse.rse.core.model.SystemRemoteResourceSet;
|
||||
import org.eclipse.rse.core.model.SystemWorkspaceResourceSet;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.core.subsystems.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.core.subsystems.RemoteChildrenContentsType;
|
||||
import org.eclipse.rse.core.subsystems.SubSystem;
|
||||
import org.eclipse.rse.files.ui.resources.SystemEditableRemoteFile;
|
||||
|
@ -79,11 +84,6 @@ import org.eclipse.rse.internal.ui.view.ISystemMementoConstants;
|
|||
import org.eclipse.rse.internal.ui.view.SystemDNDTransferRunnable;
|
||||
import org.eclipse.rse.internal.ui.view.SystemViewResources;
|
||||
import org.eclipse.rse.internal.ui.view.search.SystemSearchTableView;
|
||||
import org.eclipse.rse.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.model.SystemRemoteResourceSet;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.services.clientserver.PathUtility;
|
||||
import org.eclipse.rse.services.clientserver.StringCompare;
|
||||
import org.eclipse.rse.services.clientserver.SystemEncodingUtil;
|
||||
|
@ -118,11 +118,11 @@ import org.eclipse.rse.ui.actions.SystemCopyToClipboardAction;
|
|||
import org.eclipse.rse.ui.actions.SystemPasteFromClipboardAction;
|
||||
import org.eclipse.rse.ui.dialogs.SystemRenameSingleDialog;
|
||||
import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.operations.SystemFetchOperation;
|
||||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||
import org.eclipse.rse.ui.view.AbstractSystemViewAdapter;
|
||||
import org.eclipse.rse.ui.view.IContextObject;
|
||||
import org.eclipse.rse.ui.view.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemEditableRemoteObject;
|
||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
||||
import org.eclipse.rse.ui.view.ISystemRemoteElementAdapter;
|
||||
|
@ -2506,7 +2506,7 @@ public class SystemViewRemoteFileAdapter
|
|||
boolean ok = true;
|
||||
IRemoteFile file = (IRemoteFile) element;
|
||||
IRemoteFileSubSystem ss = file.getParentRemoteFileSubSystem();
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
try
|
||||
{
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [180562] dont implement ISystemOutputRemoteTypes
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.view;
|
||||
|
@ -27,6 +28,7 @@ import org.eclipse.jface.resource.ImageDescriptor;
|
|||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
import org.eclipse.rse.core.SystemAdapterHelpers;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.core.subsystems.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.files.ui.resources.SystemEditableRemoteFile;
|
||||
import org.eclipse.rse.files.ui.resources.SystemIFileProperties;
|
||||
import org.eclipse.rse.internal.files.ui.FileResources;
|
||||
|
@ -41,7 +43,6 @@ import org.eclipse.rse.ui.RSEUIPlugin;
|
|||
import org.eclipse.rse.ui.SystemMenuManager;
|
||||
import org.eclipse.rse.ui.actions.SystemCopyToClipboardAction;
|
||||
import org.eclipse.rse.ui.view.AbstractSystemViewAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemEditableRemoteObject;
|
||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
||||
import org.eclipse.rse.ui.view.ISystemRemoteElementAdapter;
|
||||
|
|
|
@ -12,14 +12,15 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [180519][api] declaratively register adapter factories
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.view;
|
||||
|
||||
import org.eclipse.core.runtime.IAdapterFactory;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.subsystems.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.services.search.IHostSearchResult;
|
||||
import org.eclipse.rse.ui.view.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemRemoteElementAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
||||
import org.eclipse.ui.IActionFilter;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2000, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2000, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.wizards;
|
||||
|
@ -20,15 +20,14 @@ import java.util.Vector;
|
|||
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.filters.ISystemFilter;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterReference;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.internal.files.ui.FileResources;
|
||||
import org.eclipse.rse.model.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeListener;
|
||||
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.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||
|
@ -43,6 +42,7 @@ import org.eclipse.rse.ui.ISystemIconConstants;
|
|||
import org.eclipse.rse.ui.ISystemMessages;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.view.ISystemTree;
|
||||
import org.eclipse.rse.ui.wizards.AbstractSystemWizard;
|
||||
|
||||
|
@ -279,7 +279,7 @@ public class SystemNewFileWizard
|
|||
protected static void updateGUI(IRemoteFile parentFolder, IRemoteFile newFileOrFolder, Viewer viewer,
|
||||
boolean isInputAFilter, ISystemFilterReference selectedFilterRef)
|
||||
{
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
if (selectedFilterRef != null)
|
||||
{
|
||||
selectedFilterRef.markStale(true);
|
||||
|
@ -287,7 +287,7 @@ public class SystemNewFileWizard
|
|||
|
||||
// invalidate filters that reference this object
|
||||
// TODO: we shouldn't have to do this. Presumably step 0 below should take care of it.
|
||||
SystemRegistry.getSystemRegistry().invalidateFiltersFor(newFileOrFolder, parentFolder.getParentRemoteFileSubSystem());
|
||||
sr.invalidateFiltersFor(newFileOrFolder, parentFolder.getParentRemoteFileSubSystem());
|
||||
|
||||
// step 0: refresh all affected filters...
|
||||
ISubSystem fileSS = newFileOrFolder.getParentRemoteFileSubSystem();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2005, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2005, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.processes.ui.actions;
|
||||
|
@ -27,15 +27,14 @@ 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.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
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.internal.processes.ui.ProcessesPlugin;
|
||||
import org.eclipse.rse.internal.processes.ui.SystemProcessesResources;
|
||||
import org.eclipse.rse.internal.processes.ui.dialogs.SystemKillDialog;
|
||||
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.services.clientserver.messages.SystemMessageException;
|
||||
import org.eclipse.rse.services.clientserver.processes.ISystemProcessRemoteConstants;
|
||||
|
@ -47,6 +46,7 @@ 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.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
||||
|
||||
|
@ -147,7 +147,7 @@ public class SystemKillProcessAction extends SystemBaseDialogAction implements I
|
|||
*/
|
||||
protected IRunnableContext getRunnableContext()
|
||||
{
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IRunnableContext irc = sr.getRunnableContext();
|
||||
if (irc == null)
|
||||
irc = new ProgressMonitorDialog(getShell());
|
||||
|
@ -241,7 +241,7 @@ public class SystemKillProcessAction extends SystemBaseDialogAction implements I
|
|||
|
||||
|
||||
// update the ui
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
for (int i = 0; i < results.size(); i++)
|
||||
{
|
||||
ISystemFilterReference ref = (ISystemFilterReference)results.get(i);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.processes.ui.view;
|
||||
|
@ -25,10 +25,10 @@ import org.eclipse.rse.core.SystemBasePlugin;
|
|||
import org.eclipse.rse.core.model.ISystemMessageObject;
|
||||
import org.eclipse.rse.core.model.ISystemResourceSet;
|
||||
import org.eclipse.rse.core.model.SystemMessageObject;
|
||||
import org.eclipse.rse.core.model.SystemRemoteResourceSet;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.internal.processes.ui.ProcessesPlugin;
|
||||
import org.eclipse.rse.internal.processes.ui.actions.SystemKillProcessAction;
|
||||
import org.eclipse.rse.model.SystemRemoteResourceSet;
|
||||
import org.eclipse.rse.services.clientserver.processes.IHostProcessFilter;
|
||||
import org.eclipse.rse.services.clientserver.processes.ISystemProcessRemoteConstants;
|
||||
import org.eclipse.rse.services.clientserver.processes.ISystemProcessRemoteTypes;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,21 +11,23 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.shells.ui;
|
||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.core.model.ISubSystemConfigurationCategories;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvent;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.shells.ui.RemoteCommandHelpers;
|
||||
import org.eclipse.rse.subsystems.files.core.model.ISystemRemoteCommand;
|
||||
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCmdSubSystem;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.SystemWidgetHelpers;
|
||||
import org.eclipse.rse.ui.model.ISystemShellProvider;
|
||||
import org.eclipse.rse.ui.widgets.SystemHostCombo;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.events.ModifyEvent;
|
||||
|
@ -47,7 +49,7 @@ import org.eclipse.swt.widgets.Listener;
|
|||
* but can also be instantiated and used anywhere.
|
||||
*/
|
||||
public class SystemRemoteCommandEntryForm extends Composite
|
||||
implements org.eclipse.rse.model.ISystemResourceChangeListener
|
||||
implements ISystemResourceChangeListener, ISystemShellProvider
|
||||
{
|
||||
private SystemHostCombo sysConnCombo;
|
||||
private IRemoteCmdSubSystem[] subSystems = null;
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
* Martin Oberhuber (Wind River) - Fix 154874 - handle files with space or $ in the name
|
||||
* Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType
|
||||
* Martin Oberhuber (Wind River) - [180562] dont implement ISystemThemeConstants
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.shells.ui.view;
|
||||
|
@ -34,7 +35,6 @@ import org.eclipse.rse.core.subsystems.ISubSystem;
|
|||
import org.eclipse.rse.internal.shells.ui.ShellResources;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.internal.ui.view.SystemTableViewProvider;
|
||||
import org.eclipse.rse.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.services.clientserver.PathUtility;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.shells.ui.view.CommandEntryViewerConfiguration;
|
||||
|
@ -51,6 +51,7 @@ import org.eclipse.rse.ui.RSEUIPlugin;
|
|||
import org.eclipse.rse.ui.SystemWidgetHelpers;
|
||||
import org.eclipse.rse.ui.actions.SystemCopyToClipboardAction;
|
||||
import org.eclipse.rse.ui.actions.SystemPasteFromClipboardAction;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.custom.CTabFolder;
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.shells.ui.view;
|
||||
|
@ -36,16 +37,15 @@ 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.events.ISystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeListener;
|
||||
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.shells.ui.ShellResources;
|
||||
import org.eclipse.rse.internal.shells.ui.actions.SystemBaseShellAction;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
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.view.SystemViewRemoteOutputAdapter;
|
||||
|
@ -58,6 +58,7 @@ import org.eclipse.rse.ui.SystemWidgetHelpers;
|
|||
import org.eclipse.rse.ui.actions.SystemBaseDummyAction;
|
||||
import org.eclipse.rse.ui.actions.SystemTablePrintAction;
|
||||
import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
||||
import org.eclipse.rse.ui.model.ISystemShellProvider;
|
||||
import org.eclipse.rse.ui.view.IRSEViewPart;
|
||||
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
||||
import org.eclipse.swt.events.SelectionEvent;
|
||||
|
@ -73,8 +74,6 @@ import org.eclipse.ui.IWorkbenchPart;
|
|||
import org.eclipse.ui.part.CellEditorActionHandler;
|
||||
import org.eclipse.ui.part.ViewPart;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This is the desktop view wrapper of the System View viewer.
|
||||
*/
|
||||
|
@ -85,6 +84,7 @@ public class SystemCommandsViewPart
|
|||
SelectionListener,
|
||||
ISelectionChangedListener,
|
||||
ISystemResourceChangeListener,
|
||||
ISystemShellProvider,
|
||||
IRSEViewPart,
|
||||
IMenuListener,
|
||||
ISystemMessageLine
|
||||
|
@ -317,7 +317,7 @@ public class SystemCommandsViewPart
|
|||
|
||||
SystemWidgetHelpers.setHelp(_folder, RSEUIPlugin.HELPPREFIX + "ucmd0000"); //$NON-NLS-1$
|
||||
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
|
||||
|
||||
|
||||
|
@ -339,7 +339,7 @@ public class SystemCommandsViewPart
|
|||
selectionService.removeSelectionListener(this);
|
||||
_folder.dispose();
|
||||
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.removeSystemResourceChangeListener(this);
|
||||
super.dispose();
|
||||
}
|
||||
|
|
|
@ -12,16 +12,17 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [180519][api] declaratively register adapter factories
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.shells.ui.view;
|
||||
import org.eclipse.core.runtime.IAdapterFactory;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.subsystems.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.shells.ui.view.SystemViewRemoteOutputAdapter;
|
||||
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCommandShell;
|
||||
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteError;
|
||||
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteOutput;
|
||||
import org.eclipse.rse.ui.view.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemRemoteElementAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
||||
import org.eclipse.ui.IActionFilter;
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [180562] dont implement ISystemThemeConstants
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.shells.ui.view;
|
||||
|
@ -20,10 +21,10 @@ import org.eclipse.jface.util.IPropertyChangeListener;
|
|||
import org.eclipse.jface.util.PropertyChangeEvent;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.jface.viewers.ViewerFilter;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.internal.shells.ui.view.SystemCommandsViewProvider;
|
||||
import org.eclipse.rse.internal.ui.view.SystemTableViewProvider;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvent;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.subsystems.shells.core.model.ISystemOutputRemoteTypes;
|
||||
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCommandShell;
|
||||
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteOutput;
|
||||
|
@ -40,7 +41,8 @@ import org.eclipse.swt.widgets.Widget;
|
|||
import org.eclipse.ui.PlatformUI;
|
||||
import org.eclipse.ui.themes.IThemeManager;
|
||||
|
||||
public class SystemCommandsView extends SystemTableView implements IPropertyChangeListener
|
||||
public class SystemCommandsView extends SystemTableView
|
||||
implements IPropertyChangeListener
|
||||
{
|
||||
public class CommandsViewFilter extends ViewerFilter
|
||||
{
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [180562] dont implement ISystemOutputRemoteTypes
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.shells.ui.view;
|
||||
|
@ -32,6 +33,7 @@ import org.eclipse.jface.resource.ImageDescriptor;
|
|||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
import org.eclipse.rse.core.subsystems.IRemoteLineReference;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.core.subsystems.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.core.subsystems.util.ISubSystemConfigurationAdapter;
|
||||
import org.eclipse.rse.files.ui.resources.SystemEditableRemoteFile;
|
||||
import org.eclipse.rse.files.ui.resources.SystemIFileProperties;
|
||||
|
@ -59,7 +61,6 @@ import org.eclipse.rse.ui.SystemMenuManager;
|
|||
import org.eclipse.rse.ui.actions.SystemCopyToClipboardAction;
|
||||
import org.eclipse.rse.ui.actions.SystemPasteFromClipboardAction;
|
||||
import org.eclipse.rse.ui.view.AbstractSystemViewAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemEditableRemoteObject;
|
||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
||||
import org.eclipse.rse.ui.view.ISystemRemoteElementAdapter;
|
||||
|
|
|
@ -12,14 +12,14 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
*******************************************************************************/
|
||||
|
||||
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.internal.ui.view.SystemAbstractAPIProvider;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.subsystems.files.core.model.ISystemFileAPIProvider;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
|
@ -34,7 +34,7 @@ public class SystemFileAPIProviderImpl
|
|||
{
|
||||
|
||||
|
||||
protected SystemRegistry sr = null;
|
||||
protected ISystemRegistry sr = null;
|
||||
protected boolean directoryMode = false;
|
||||
//protected Object[] emptyList = new Object[0];
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.files.core.servicesubsystem;
|
||||
|
@ -72,7 +72,7 @@ public abstract class FileServiceSubSystemConfiguration extends RemoteFileSubSys
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.subsystems.files.core.subsystems.RemoteFileSubSystemConfiguration#supportsServerLaunchProperties(org.eclipse.rse.model.IHost)
|
||||
* @see org.eclipse.rse.subsystems.files.core.subsystems.RemoteFileSubSystemConfiguration#supportsServerLaunchProperties(org.eclipse.rse.ui.model.IHost)
|
||||
*/
|
||||
public final boolean supportsServerLaunchProperties(IHost host)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2004, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2004, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,14 +11,14 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.files.core.servicesubsystem;
|
||||
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.services.search.IHostSearchConstants;
|
||||
import org.eclipse.rse.services.search.IHostSearchResultConfiguration;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
|
@ -39,7 +39,7 @@ public class OutputRefresh implements Runnable
|
|||
|
||||
if (searchConfig != null)
|
||||
{
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireEvent(new SystemResourceChangeEvent(searchConfig, ISystemResourceChangeEvents.EVENT_REFRESH, null));
|
||||
|
||||
if (isDone)
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.files.core.subsystems;
|
||||
|
@ -23,8 +23,8 @@ import java.net.InetAddress;
|
|||
import java.util.List;
|
||||
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.rse.core.model.SystemRemoteResourceSet;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.model.SystemRemoteResourceSet;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||
import org.eclipse.rse.services.files.RemoteFileIOException;
|
||||
import org.eclipse.rse.services.files.RemoteFileSecurityException;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2004, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2004, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.files.core.subsystems;
|
||||
|
@ -32,7 +32,7 @@ public class RemoteFileChildrenContentsType implements ISystemContentsType
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.model.ISystemContentsType#getType()
|
||||
* @see org.eclipse.rse.ui.model.ISystemContentsType#getType()
|
||||
*/
|
||||
public String getType()
|
||||
{
|
||||
|
@ -40,7 +40,7 @@ public class RemoteFileChildrenContentsType implements ISystemContentsType
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.model.ISystemContentsType#isPersistent()
|
||||
* @see org.eclipse.rse.ui.model.ISystemContentsType#isPersistent()
|
||||
*/
|
||||
public boolean isPersistent()
|
||||
{
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - Fix 162962 - recursive removeCachedRemoteFile()
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.files.core.subsystems;
|
||||
|
@ -44,6 +45,7 @@ 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;
|
||||
import org.eclipse.rse.core.model.SystemRemoteResourceSet;
|
||||
import org.eclipse.rse.core.subsystems.CommunicationsEvent;
|
||||
import org.eclipse.rse.core.subsystems.ICommunicationsListener;
|
||||
import org.eclipse.rse.core.subsystems.IConnectorService;
|
||||
|
@ -51,7 +53,6 @@ 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.model.SystemRemoteResourceSet;
|
||||
import org.eclipse.rse.services.clientserver.FileTypeMatcher;
|
||||
import org.eclipse.rse.services.clientserver.IClientServerConstants;
|
||||
import org.eclipse.rse.services.clientserver.IMatcher;
|
||||
|
@ -1395,7 +1396,7 @@ public abstract class RemoteFileSubSystem extends SubSystem implements IRemoteFi
|
|||
case CommunicationsEvent.AFTER_DISCONNECT :
|
||||
_cachedRemoteFiles.clear();
|
||||
// DKM - taking this out because it causes an exception when the event occurs in Modal Context
|
||||
//SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
//ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
//sr.connectedStatusChange(this, false, true, true);
|
||||
getConnectorService().removeCommunicationsListener(this);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2004, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2004, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.files.core.subsystems;
|
||||
|
@ -32,7 +32,7 @@ public class RemoteFolderChildrenContentsType implements ISystemContentsType
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.model.ISystemContentsType#getType()
|
||||
* @see org.eclipse.rse.ui.model.ISystemContentsType#getType()
|
||||
*/
|
||||
public String getType()
|
||||
{
|
||||
|
@ -40,7 +40,7 @@ public class RemoteFolderChildrenContentsType implements ISystemContentsType
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.model.ISystemContentsType#isPersistent()
|
||||
* @see org.eclipse.rse.ui.model.ISystemContentsType#isPersistent()
|
||||
*/
|
||||
public boolean isPersistent()
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2004, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2004, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.files.core.subsystems;
|
||||
|
@ -32,7 +32,7 @@ public class RemoteSearchResultsContentsType implements ISystemContentsType
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.model.ISystemContentsType#getType()
|
||||
* @see org.eclipse.rse.ui.model.ISystemContentsType#getType()
|
||||
*/
|
||||
public String getType()
|
||||
{
|
||||
|
@ -40,7 +40,7 @@ public class RemoteSearchResultsContentsType implements ISystemContentsType
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.model.ISystemContentsType#isPersistent()
|
||||
* @see org.eclipse.rse.ui.model.ISystemContentsType#isPersistent()
|
||||
*/
|
||||
public boolean isPersistent()
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.subsystems.files.dstore;
|
||||
|
@ -30,13 +30,13 @@ import org.eclipse.dstore.core.model.DataStore;
|
|||
import org.eclipse.dstore.extra.DomainEvent;
|
||||
import org.eclipse.dstore.extra.IDomainListener;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
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.internal.subsystems.files.core.SystemFileResources;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.subsystems.files.core.servicesubsystem.FileServiceSubSystem;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
|
@ -56,7 +56,7 @@ public class RemoteFilePropertyChangeListener implements IDomainListener,
|
|||
|
||||
protected Shell shell;
|
||||
|
||||
protected SystemRegistry _registry;
|
||||
protected ISystemRegistry _registry;
|
||||
|
||||
protected IConnectorService system;
|
||||
|
||||
|
@ -116,14 +116,14 @@ public class RemoteFilePropertyChangeListener implements IDomainListener,
|
|||
for (int i = 0; i < _files.length; i++)
|
||||
{
|
||||
_registry.fireEvent(new
|
||||
org.eclipse.rse.model.SystemResourceChangeEvent(_files[i],
|
||||
org.eclipse.rse.core.events.SystemResourceChangeEvent(_files[i],
|
||||
ISystemResourceChangeEvents.EVENT_ICON_CHANGE,
|
||||
_parentFile));
|
||||
}
|
||||
|
||||
/*
|
||||
_registry.fireEvent(new
|
||||
org.eclipse.rse.model.SystemResourceChangeEvent(_files,
|
||||
org.eclipse.rse.ui.model.SystemResourceChangeEvent(_files,
|
||||
ISystemResourceChangeEvent.EVENT_REPLACE_CHILDREN,
|
||||
_parentFile));
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.processes.servicesubsystem;
|
||||
|
@ -42,7 +42,7 @@ public abstract class ProcessServiceSubSystemConfiguration extends RemoteProcess
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.subsystems.processes.servicesubsystem.IProcessServiceSubSystemConfiguration#getProcessService(org.eclipse.rse.model.IHost)
|
||||
* @see org.eclipse.rse.subsystems.processes.servicesubsystem.IProcessServiceSubSystemConfiguration#getProcessService(org.eclipse.rse.ui.model.IHost)
|
||||
*/
|
||||
public IProcessService getProcessService(IHost host)
|
||||
{
|
||||
|
@ -64,7 +64,7 @@ public abstract class ProcessServiceSubSystemConfiguration extends RemoteProcess
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#supportsServerLaunchProperties(org.eclipse.rse.model.IHost)
|
||||
* @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#supportsServerLaunchProperties(org.eclipse.rse.ui.model.IHost)
|
||||
*/
|
||||
public boolean supportsServerLaunchProperties(IHost host)
|
||||
{
|
||||
|
@ -72,7 +72,7 @@ public abstract class ProcessServiceSubSystemConfiguration extends RemoteProcess
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.servicesubsystem.IServiceSubSystemConfiguration#getService(org.eclipse.rse.model.IHost)
|
||||
* @see org.eclipse.rse.core.servicesubsystem.IServiceSubSystemConfiguration#getService(org.eclipse.rse.ui.model.IHost)
|
||||
*/
|
||||
public IService getService(IHost host)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.processes.dstore;
|
||||
|
@ -48,7 +48,7 @@ public class DStoreProcessSubSystemConfiguration extends ProcessServiceSubSystem
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#createSubSystemInternal(org.eclipse.rse.model.IHost)
|
||||
* @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#createSubSystemInternal(org.eclipse.rse.ui.model.IHost)
|
||||
*/
|
||||
public ISubSystem createSubSystemInternal(IHost host)
|
||||
{
|
||||
|
@ -86,7 +86,7 @@ public class DStoreProcessSubSystemConfiguration extends ProcessServiceSubSystem
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.subsystems.processes.servicesubsystem.IProcessServiceSubSystemConfiguration#createProcessService(org.eclipse.rse.model.IHost)
|
||||
* @see org.eclipse.rse.subsystems.processes.servicesubsystem.IProcessServiceSubSystemConfiguration#createProcessService(org.eclipse.rse.ui.model.IHost)
|
||||
*/
|
||||
public IProcessService createProcessService(IHost host)
|
||||
{
|
||||
|
@ -107,7 +107,7 @@ public class DStoreProcessSubSystemConfiguration extends ProcessServiceSubSystem
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getConnectorService(org.eclipse.rse.model.IHost)
|
||||
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getConnectorService(org.eclipse.rse.ui.model.IHost)
|
||||
*/
|
||||
public IConnectorService getConnectorService(IHost host)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 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
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.processes.local;
|
||||
|
@ -95,7 +95,7 @@ public class LocalProcessSubSystemConfiguration extends ProcessServiceSubSystemC
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getConnectorService(org.eclipse.rse.model.IHost)
|
||||
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getConnectorService(org.eclipse.rse.ui.model.IHost)
|
||||
*/
|
||||
public IConnectorService getConnectorService(IHost host)
|
||||
{
|
||||
|
@ -103,7 +103,7 @@ public class LocalProcessSubSystemConfiguration extends ProcessServiceSubSystemC
|
|||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.subsystems.processes.servicesubsystem.IProcessServiceSubSystemConfiguration#createProcessService(org.eclipse.rse.model.IHost)
|
||||
* @see org.eclipse.rse.subsystems.processes.servicesubsystem.IProcessServiceSubSystemConfiguration#createProcessService(org.eclipse.rse.ui.model.IHost)
|
||||
*/
|
||||
public IProcessService createProcessService(IHost host)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.subsystems.shells.servicesubsystem;
|
||||
|
@ -19,10 +19,10 @@ 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.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.internal.subsystems.shells.core.ShellStrings;
|
||||
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.subsystems.IRemoteCommandShell;
|
||||
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteOutput;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
|
@ -73,7 +73,7 @@ public class OutputRefreshJob extends UIJob
|
|||
{
|
||||
try
|
||||
{
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
if (_outputs != null)
|
||||
{
|
||||
if ((_outputs.length > 0) && (_outputs[0] != null)) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.shells.core.model;
|
||||
|
@ -22,14 +22,15 @@ import java.util.Stack;
|
|||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvent;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCmdSubSystem;
|
||||
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCommandShell;
|
||||
import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteOutput;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.model.ISystemShellProvider;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
||||
|
||||
|
@ -42,7 +43,8 @@ import org.eclipse.swt.widgets.Shell;
|
|||
* is called.
|
||||
*
|
||||
*/
|
||||
public abstract class RemoteCommandShellOperation implements ISystemResourceChangeListener
|
||||
public abstract class RemoteCommandShellOperation
|
||||
implements ISystemResourceChangeListener, ISystemShellProvider
|
||||
{
|
||||
|
||||
protected class CommandAlias
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.shells.core.subsystems;
|
||||
|
@ -26,9 +26,12 @@ import org.eclipse.core.runtime.NullProgressMonitor;
|
|||
import org.eclipse.core.runtime.OperationCanceledException;
|
||||
import org.eclipse.rse.core.RSECorePlugin;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.core.model.IProperty;
|
||||
import org.eclipse.rse.core.model.IPropertySet;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.core.model.PropertyList;
|
||||
import org.eclipse.rse.core.subsystems.CommunicationsEvent;
|
||||
import org.eclipse.rse.core.subsystems.ICommunicationsListener;
|
||||
|
@ -37,9 +40,6 @@ import org.eclipse.rse.core.subsystems.IRemoteSystemEnvVar;
|
|||
import org.eclipse.rse.core.subsystems.SubSystem;
|
||||
import org.eclipse.rse.internal.subsystems.shells.core.ShellStrings;
|
||||
import org.eclipse.rse.internal.subsystems.shells.subsystems.RemoteSystemEnvVar;
|
||||
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;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
|
@ -647,7 +647,7 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
|
|||
_cmdShells.clear();
|
||||
_defaultShell = null;
|
||||
// registry.fireEvent(new
|
||||
// org.eclipse.rse.model.SystemResourceChangeEvent(this,
|
||||
// org.eclipse.rse.ui.model.SystemResourceChangeEvent(this,
|
||||
// ISystemResourceChangeEvent.EVENT_COMMAND_SHELL_FINISHED, null));
|
||||
Display.getDefault().asyncExec(new Refresh(this));
|
||||
|
||||
|
@ -663,7 +663,7 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
|
|||
|
||||
public void run()
|
||||
{
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireEvent(new SystemResourceChangeEvent(_ss, ISystemResourceChangeEvents.EVENT_REFRESH, _ss));
|
||||
}
|
||||
}
|
||||
|
@ -681,7 +681,7 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
|
|||
|
||||
public void run()
|
||||
{
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireEvent(new SystemResourceChangeEvent(_cmdShell, ISystemResourceChangeEvents.EVENT_COMMAND_SHELL_REMOVED, null));
|
||||
registry.fireEvent(new SystemResourceChangeEvent(_ss, ISystemResourceChangeEvents.EVENT_REFRESH, _ss));
|
||||
}
|
||||
|
@ -802,7 +802,7 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
|
|||
return null;
|
||||
}
|
||||
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireEvent(new SystemResourceChangeEvent(this, ISystemResourceChangeEvents.EVENT_REFRESH, this));
|
||||
|
||||
return cmdShell;
|
||||
|
@ -814,7 +814,7 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
|
|||
public IRemoteCommandShell runShell(IProgressMonitor monitor, Object context) throws Exception
|
||||
{
|
||||
IRemoteCommandShell cmdShell = internalRunShell(monitor, context);
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireEvent(new SystemResourceChangeEvent(this, ISystemResourceChangeEvents.EVENT_REFRESH, this));
|
||||
|
||||
return cmdShell;
|
||||
|
|
|
@ -22,7 +22,6 @@ Export-Package: org.eclipse.rse.core,
|
|||
org.eclipse.rse.core.servicesubsystem,
|
||||
org.eclipse.rse.core.subsystems,
|
||||
org.eclipse.rse.core.subsystems.util,
|
||||
org.eclipse.rse.internal.model;x-internal:=true,
|
||||
org.eclipse.rse.internal.ui;x-internal:=true,
|
||||
org.eclipse.rse.internal.ui.actions;x-internal:=true,
|
||||
org.eclipse.rse.internal.ui.dialogs;x-internal:=true,
|
||||
|
@ -37,14 +36,15 @@ Export-Package: org.eclipse.rse.core,
|
|||
org.eclipse.rse.internal.ui.view.search;x-internal:=true,
|
||||
org.eclipse.rse.internal.ui.view.team;x-internal:=true,
|
||||
org.eclipse.rse.internal.ui.widgets;x-internal:=true,
|
||||
org.eclipse.rse.model,
|
||||
org.eclipse.rse.ui,
|
||||
org.eclipse.rse.ui.actions,
|
||||
org.eclipse.rse.ui.dialogs,
|
||||
org.eclipse.rse.ui.filters,
|
||||
org.eclipse.rse.ui.filters.actions,
|
||||
org.eclipse.rse.ui.filters.dialogs,
|
||||
org.eclipse.rse.ui.internal.model;x-internal:=true,
|
||||
org.eclipse.rse.ui.messages,
|
||||
org.eclipse.rse.ui.model,
|
||||
org.eclipse.rse.ui.open,
|
||||
org.eclipse.rse.ui.operations,
|
||||
org.eclipse.rse.ui.propertypages,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,18 +11,18 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.actions;
|
||||
|
||||
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
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.ui.SystemResources;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.ui.ISystemContextMenuConstants;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.actions.SystemBaseAction;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,16 +11,16 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.actions;
|
||||
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.subsystems.IConnectorService;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.ui.ISystemContextMenuConstants;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.actions.SystemBaseAction;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.actions;
|
||||
|
@ -20,11 +20,11 @@ import java.util.Iterator;
|
|||
|
||||
import org.eclipse.core.runtime.IAdaptable;
|
||||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.ui.ISystemContextMenuConstants;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.actions.SystemBaseAction;
|
||||
|
@ -76,7 +76,7 @@ public class SystemCollapseAction extends SystemBaseAction {
|
|||
*/
|
||||
public void run() {
|
||||
//System.out.println("Inside run of SystemRefreshAction");
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
if ((viewer != null) && (viewer instanceof ISystemResourceChangeListener)) {
|
||||
sr.fireEvent((ISystemResourceChangeListener) viewer, new SystemResourceChangeEvent("dummy", ISystemResourceChangeEvents.EVENT_COLLAPSE_SELECTED, null)); //$NON-NLS-1$
|
||||
} else
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,17 +11,17 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.actions;
|
||||
|
||||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.ui.ISystemContextMenuConstants;
|
||||
import org.eclipse.rse.ui.ISystemIconConstants;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
|
@ -61,7 +61,7 @@ public class SystemCollapseAllAction extends SystemBaseAction {
|
|||
* @see org.eclipse.jface.action.Action#run()
|
||||
*/
|
||||
public void run() {
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
if ((viewer != null) && (viewer instanceof ISystemResourceChangeListener)) {
|
||||
sr.fireEvent((ISystemResourceChangeListener) viewer, new SystemResourceChangeEvent("false", ISystemResourceChangeEvents.EVENT_COLLAPSE_ALL, null)); //$NON-NLS-1$
|
||||
} else
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.actions;
|
||||
|
@ -20,11 +20,11 @@ import java.util.Iterator;
|
|||
|
||||
import org.eclipse.core.runtime.IAdaptable;
|
||||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.ui.ISystemContextMenuConstants;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.actions.SystemBaseAction;
|
||||
|
@ -79,7 +79,7 @@ public class SystemExpandAction extends SystemBaseAction {
|
|||
*/
|
||||
public void run() {
|
||||
//System.out.println("Inside run of SystemRefreshAction");
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
if ((viewer != null) && (viewer instanceof ISystemResourceChangeListener)) {
|
||||
sr.fireEvent((ISystemResourceChangeListener) viewer, new SystemResourceChangeEvent("dummy", ISystemResourceChangeEvents.EVENT_EXPAND_SELECTED, null)); //$NON-NLS-1$
|
||||
} else
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.actions;
|
||||
|
@ -20,11 +20,11 @@ import org.eclipse.jface.action.Action;
|
|||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterReference;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.model.ISystemPromptableObject;
|
||||
import org.eclipse.rse.ui.ISystemContextMenuConstants;
|
||||
import org.eclipse.rse.ui.ISystemIconConstants;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.actions.SystemBaseAction;
|
||||
import org.eclipse.rse.ui.model.ISystemPromptableObject;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
import org.eclipse.ui.IWorkbenchWindow;
|
||||
import org.eclipse.ui.actions.OpenInNewWindowAction;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,13 +11,13 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.actions;
|
||||
import org.eclipse.rse.core.model.ISystemPreferenceChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemPreferenceChangeEvents;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.internal.model.SystemPreferenceChangeEvent;
|
||||
import org.eclipse.rse.internal.core.model.SystemPreferenceChangeEvent;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.actions.SystemBaseAction;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2007 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -12,11 +12,12 @@
|
|||
*
|
||||
* Contributors:
|
||||
* David Dykstal (IBM) - moved SystemPreferencesManager to a new package
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.actions;
|
||||
import org.eclipse.rse.core.model.ISystemPreferenceChangeEvents;
|
||||
import org.eclipse.rse.internal.model.SystemPreferenceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemPreferenceChangeEvents;
|
||||
import org.eclipse.rse.internal.core.model.SystemPreferenceChangeEvent;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.SystemPreferencesManager;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -12,11 +12,12 @@
|
|||
*
|
||||
* Contributors:
|
||||
* David Dykstal (IBM) - moved SystemPreferencesManager to a new package
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.actions;
|
||||
import org.eclipse.rse.core.model.ISystemPreferenceChangeEvents;
|
||||
import org.eclipse.rse.internal.model.SystemPreferenceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemPreferenceChangeEvents;
|
||||
import org.eclipse.rse.internal.core.model.SystemPreferenceChangeEvent;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.SystemPreferencesManager;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.actions;
|
||||
|
@ -26,12 +26,12 @@ import org.eclipse.rse.core.model.ISystemProfile;
|
|||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.internal.ui.dialogs.SystemCopyProfileDialog;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
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.actions.SystemBaseDialogAction;
|
||||
import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
import org.eclipse.ui.ISharedImages;
|
||||
import org.eclipse.ui.PlatformUI;
|
||||
|
@ -121,7 +121,7 @@ public class SystemProfileNameCopyAction extends SystemBaseDialogAction
|
|||
*/
|
||||
protected IRunnableContext getRunnableContext()
|
||||
{
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IRunnableContext irc = sr.getRunnableContext();
|
||||
if (irc == null)
|
||||
irc = new ProgressMonitorDialog(getShell());
|
||||
|
|
|
@ -12,17 +12,18 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.dialogs;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.ISystemConnectionFormCaller;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.SystemConnectionForm;
|
||||
import org.eclipse.rse.ui.dialogs.SystemPromptDialog;
|
||||
import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.swt.widgets.Control;
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
* David Dykstal (IBM) - moved SystemPreferencesManager to a new package
|
||||
* - created and used PreferencesMapper
|
||||
* Martin Oberhuber (Wind River) - [180562] dont implement ISystemPreferencesConstants
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.propertypages;
|
||||
|
@ -23,8 +24,8 @@ import org.eclipse.jface.preference.FieldEditorPreferencePage;
|
|||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.eclipse.jface.util.PropertyChangeEvent;
|
||||
import org.eclipse.rse.core.RSECorePlugin;
|
||||
import org.eclipse.rse.core.model.ISystemPreferenceChangeEvents;
|
||||
import org.eclipse.rse.internal.model.SystemPreferenceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemPreferenceChangeEvents;
|
||||
import org.eclipse.rse.internal.core.model.SystemPreferenceChangeEvent;
|
||||
import org.eclipse.rse.internal.ui.PreferencesMapper;
|
||||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.ui.ISystemPreferencesConstants;
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.propertypages;
|
||||
|
@ -19,12 +20,12 @@ import org.eclipse.rse.core.IRSESystemType;
|
|||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.ISystemConnectionFormCaller;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.SystemConnectionForm;
|
||||
import org.eclipse.rse.ui.SystemWidgetHelpers;
|
||||
import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.propertypages.SystemBasePropertyPage;
|
||||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.propertypages;
|
||||
|
@ -49,9 +49,9 @@ import org.eclipse.ui.dialogs.PropertyPage;
|
|||
|
||||
/**
|
||||
* The property page for subsystem properties when accessed from the connection property page.
|
||||
* The plugin.xml file registers this for objects of class org.eclipse.rse.model.IHost
|
||||
* The plugin.xml file registers this for objects of class org.eclipse.rse.ui.model.IHost
|
||||
<page
|
||||
objectClass="org.eclipse.rse.model.IHost"
|
||||
objectClass="org.eclipse.rse.ui.model.IHost"
|
||||
name="SubSystems"
|
||||
class="org.eclipse.rse.core.ui.propertypages.SystemConnectionSubSystemsPropertyPage"
|
||||
id="org.eclipse.rse.SystemConnectionSubSystemsPropertyPage">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
@ -29,21 +29,21 @@ import org.eclipse.core.runtime.Status;
|
|||
import org.eclipse.jface.viewers.TreeViewer;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterReference;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.core.model.ISystemContainer;
|
||||
import org.eclipse.rse.core.model.ISystemResourceSet;
|
||||
import org.eclipse.rse.core.model.SystemRemoteResourceSet;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
|
||||
import org.eclipse.rse.core.subsystems.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.internal.ui.GenericMessages;
|
||||
import org.eclipse.rse.model.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.model.SystemRemoteResourceSet;
|
||||
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.messages.SystemMessageDialog;
|
||||
import org.eclipse.rse.ui.view.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
import org.eclipse.ui.progress.UIJob;
|
||||
|
@ -610,7 +610,7 @@ public class SystemDNDTransferRunnable extends WorkspaceJob
|
|||
|
||||
public IStatus runInUIThread(IProgressMonitor monitor)
|
||||
{
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistryUI registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
if (_resultTgtObjects.size() > 0)
|
||||
{
|
||||
boolean doRefresh = _ok;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
@ -26,7 +26,7 @@ import org.eclipse.rse.core.filters.SystemFilterSimple;
|
|||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
|
||||
import org.eclipse.rse.internal.model.SystemNewConnectionPromptObject;
|
||||
import org.eclipse.rse.ui.internal.model.SystemNewConnectionPromptObject;
|
||||
import org.eclipse.rse.ui.view.ISystemRemoteElementAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemSelectRemoteObjectAPIProviderCaller;
|
||||
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
@ -46,6 +46,12 @@ import org.eclipse.jface.viewers.TreeViewer;
|
|||
import org.eclipse.jface.window.SameShellProvider;
|
||||
import org.eclipse.rse.core.SystemAdapterHelpers;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeListener;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterReference;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.core.model.ISystemRegistry;
|
||||
|
@ -58,13 +64,6 @@ import org.eclipse.rse.internal.ui.actions.SystemCommonSelectAllAction;
|
|||
import org.eclipse.rse.internal.ui.actions.SystemOpenExplorerPerspectiveAction;
|
||||
import org.eclipse.rse.internal.ui.actions.SystemShowInTableAction;
|
||||
import org.eclipse.rse.internal.ui.actions.SystemSubMenuManager;
|
||||
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.services.clientserver.StringCompare;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||
import org.eclipse.rse.ui.ISystemContextMenuConstants;
|
||||
|
@ -78,6 +77,8 @@ import org.eclipse.rse.ui.actions.ISystemAction;
|
|||
import org.eclipse.rse.ui.actions.SystemRefreshAction;
|
||||
import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
||||
import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.model.ISystemShellProvider;
|
||||
import org.eclipse.rse.ui.view.AbstractSystemViewAdapter;
|
||||
import org.eclipse.rse.ui.view.ContextObject;
|
||||
import org.eclipse.rse.ui.view.IContextObject;
|
||||
|
@ -125,13 +126,15 @@ import org.eclipse.ui.views.properties.IPropertyDescriptor;
|
|||
*
|
||||
*/
|
||||
public class SystemTableTreeView
|
||||
// TODO change TreeViewer to TableTreeViewer when Eclipse fixes SWT viewer
|
||||
//FIXEM change TreeViewer to TableTreeViewer when Eclipse fixes SWT viewer
|
||||
//extends TableTreeViewer
|
||||
extends TreeViewer
|
||||
implements IMenuListener, ISystemDeleteTarget, ISystemRenameTarget, ISystemSelectAllTarget, ISystemResourceChangeListener, ISystemRemoteChangeListener, ISelectionChangedListener, ISelectionProvider
|
||||
implements IMenuListener,
|
||||
ISystemDeleteTarget, ISystemRenameTarget, ISystemSelectAllTarget,
|
||||
ISystemResourceChangeListener, ISystemRemoteChangeListener,
|
||||
ISystemShellProvider, ISelectionChangedListener, ISelectionProvider
|
||||
{
|
||||
|
||||
|
||||
protected Composite getTableTree()
|
||||
{
|
||||
// TODO - turn back to table tree
|
||||
|
@ -881,7 +884,7 @@ implements IMenuListener, ISystemDeleteTarget, ISystemRenameTarget, ISystemSelec
|
|||
/**
|
||||
* This is the method in your class that will be called when a remote resource
|
||||
* changes. You will be called after the resource is changed.
|
||||
* @see org.eclipse.rse.model.ISystemRemoteChangeEvent
|
||||
* @see org.eclipse.rse.core.events.ISystemRemoteChangeEvent
|
||||
*/
|
||||
public void systemRemoteResourceChanged(ISystemRemoteChangeEvent event)
|
||||
{
|
||||
|
@ -1274,7 +1277,7 @@ implements IMenuListener, ISystemDeleteTarget, ISystemRenameTarget, ISystemSelec
|
|||
*/
|
||||
public boolean doDelete(IProgressMonitor monitor)
|
||||
{
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IStructuredSelection selection = (IStructuredSelection) getSelection();
|
||||
Iterator elements = selection.iterator();
|
||||
//int selectedCount = selection.size();
|
||||
|
@ -1322,7 +1325,7 @@ implements IMenuListener, ISystemDeleteTarget, ISystemRenameTarget, ISystemSelec
|
|||
if (_selectionIsRemoteObject)
|
||||
sr.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_DELETED, deletedVector, null, null, null, this);
|
||||
else
|
||||
sr.fireEvent(new org.eclipse.rse.model.SystemResourceChangeEvent(deleted, ISystemResourceChangeEvents.EVENT_DELETE_MANY, getInput()));
|
||||
sr.fireEvent(new org.eclipse.rse.core.events.SystemResourceChangeEvent(deleted, ISystemResourceChangeEvents.EVENT_DELETE_MANY, getInput()));
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
|
@ -1366,7 +1369,7 @@ implements IMenuListener, ISystemDeleteTarget, ISystemRenameTarget, ISystemSelec
|
|||
*/
|
||||
public boolean doRename(String[] newNames)
|
||||
{
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IStructuredSelection selection = (IStructuredSelection) getSelection();
|
||||
Iterator elements = selection.iterator();
|
||||
//int selectedCount = selection.size();
|
||||
|
@ -1396,7 +1399,7 @@ implements IMenuListener, ISystemDeleteTarget, ISystemRenameTarget, ISystemSelec
|
|||
sr.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_RENAMED, element, parentElement, remoteAdapter.getSubSystem(element), oldFullName, this);
|
||||
}
|
||||
else {
|
||||
sr.fireEvent(new org.eclipse.rse.model.SystemResourceChangeEvent(element, ISystemResourceChangeEvents.EVENT_RENAME, parentElement));
|
||||
sr.fireEvent(new org.eclipse.rse.core.events.SystemResourceChangeEvent(element, ISystemResourceChangeEvents.EVENT_RENAME, parentElement));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2007 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -13,6 +13,7 @@
|
|||
* Contributors:
|
||||
* Michael Berger (IBM) - 146339 Added refresh action graphic.
|
||||
* David Dykstal (IBM) - moved SystemsPreferencesManager to a new package
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
@ -43,6 +44,13 @@ import org.eclipse.jface.viewers.SelectionChangedEvent;
|
|||
import org.eclipse.jface.viewers.StructuredSelection;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.jface.window.Window;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeListener;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterReference;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.core.model.ISystemContainer;
|
||||
|
@ -53,14 +61,6 @@ import org.eclipse.rse.internal.ui.SystemPropertyResources;
|
|||
import org.eclipse.rse.internal.ui.SystemResources;
|
||||
import org.eclipse.rse.internal.ui.actions.SystemCommonDeleteAction;
|
||||
import org.eclipse.rse.internal.ui.actions.SystemCommonRenameAction;
|
||||
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.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||
import org.eclipse.rse.ui.ISystemIconConstants;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
|
@ -73,6 +73,8 @@ import org.eclipse.rse.ui.actions.SystemTablePrintAction;
|
|||
import org.eclipse.rse.ui.dialogs.SystemPromptDialog;
|
||||
import org.eclipse.rse.ui.dialogs.SystemSelectAnythingDialog;
|
||||
import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.model.ISystemShellProvider;
|
||||
import org.eclipse.rse.ui.view.IRSEViewPart;
|
||||
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
||||
import org.eclipse.rse.ui.view.SystemTableView;
|
||||
|
@ -111,11 +113,13 @@ import org.osgi.framework.Bundle;
|
|||
/**
|
||||
* Comment goes here
|
||||
*/
|
||||
public class SystemTableViewPart extends ViewPart implements ISelectionListener, ISelectionChangedListener,
|
||||
ISystemMessageLine, ISystemResourceChangeListener, ISystemRemoteChangeListener, IRSEViewPart
|
||||
public class SystemTableViewPart extends ViewPart
|
||||
implements ISelectionListener, ISelectionChangedListener,
|
||||
ISystemMessageLine, ISystemShellProvider,
|
||||
ISystemResourceChangeListener, ISystemRemoteChangeListener,
|
||||
IRSEViewPart
|
||||
{
|
||||
|
||||
|
||||
class BrowseAction extends Action
|
||||
{
|
||||
|
||||
|
@ -335,7 +339,7 @@ public class SystemTableViewPart extends ViewPart implements ISelectionListener,
|
|||
((ISystemContainer)inputObject).markStale(true);
|
||||
}
|
||||
((SystemTableViewProvider) _viewer.getContentProvider()).flushCache();
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
registry.fireEvent(new SystemResourceChangeEvent(inputObject, ISystemResourceChangeEvents.EVENT_REFRESH, inputObject));
|
||||
|
||||
//_viewer.refresh();
|
||||
|
@ -1155,7 +1159,7 @@ public class SystemTableViewPart extends ViewPart implements ISelectionListener,
|
|||
_browsePosition = 0;
|
||||
|
||||
// register global edit actions
|
||||
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistryUI registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
Clipboard clipboard = registry.getSystemClipboard();
|
||||
|
||||
CellEditorActionHandler editorActionHandler = new CellEditorActionHandler(getViewSite().getActionBars());
|
||||
|
@ -1562,7 +1566,7 @@ public class SystemTableViewPart extends ViewPart implements ISelectionListener,
|
|||
/**
|
||||
* This is the method in your class that will be called when a remote resource
|
||||
* changes. You will be called after the resource is changed.
|
||||
* @see org.eclipse.rse.model.ISystemRemoteChangeEvent
|
||||
* @see org.eclipse.rse.core.events.ISystemRemoteChangeEvent
|
||||
*/
|
||||
public void systemRemoteResourceChanged(ISystemRemoteChangeEvent event)
|
||||
{
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
* - [177537] [api] Dynamic system type provider need a hook to add dynamic system type specific menu groups
|
||||
* - Several bugfixes.
|
||||
* David Dykstal (IBM) - moved SystemPreferencesManager to a new package
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
@ -61,12 +62,20 @@ import org.eclipse.jface.viewers.SelectionChangedEvent;
|
|||
import org.eclipse.jface.viewers.StructuredSelection;
|
||||
import org.eclipse.jface.viewers.TreeExpansionEvent;
|
||||
import org.eclipse.jface.viewers.TreePath;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.jface.viewers.ViewerFilter;
|
||||
import org.eclipse.jface.window.SameShellProvider;
|
||||
import org.eclipse.rse.core.IRSESystemType;
|
||||
import org.eclipse.rse.core.RSECorePlugin;
|
||||
import org.eclipse.rse.core.SystemAdapterHelpers;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemRemoteChangeListener;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.filters.ISystemFilter;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterContainer;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterContainerReference;
|
||||
|
@ -95,16 +104,6 @@ import org.eclipse.rse.internal.ui.actions.SystemOpenExplorerPerspectiveAction;
|
|||
import org.eclipse.rse.internal.ui.actions.SystemShowInMonitorAction;
|
||||
import org.eclipse.rse.internal.ui.actions.SystemShowInTableAction;
|
||||
import org.eclipse.rse.internal.ui.actions.SystemSubMenuManager;
|
||||
import org.eclipse.rse.model.ISystemPromptableObject;
|
||||
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.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||
import org.eclipse.rse.ui.ISystemContextMenuConstants;
|
||||
import org.eclipse.rse.ui.ISystemDeleteTarget;
|
||||
|
@ -120,6 +119,11 @@ import org.eclipse.rse.ui.actions.SystemRefreshAction;
|
|||
import org.eclipse.rse.ui.dialogs.SystemPromptDialog;
|
||||
import org.eclipse.rse.ui.messages.ISystemMessageLine;
|
||||
import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
||||
import org.eclipse.rse.ui.model.ISystemPromptableObject;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.model.ISystemShellProvider;
|
||||
import org.eclipse.rse.ui.model.SystemRemoteElementResourceSet;
|
||||
import org.eclipse.rse.ui.model.SystemResourceChangeEventUI;
|
||||
import org.eclipse.rse.ui.view.AbstractSystemViewAdapter;
|
||||
import org.eclipse.rse.ui.view.ContextObject;
|
||||
import org.eclipse.rse.ui.view.IContextObject;
|
||||
|
@ -169,9 +173,12 @@ import org.eclipse.ui.views.framelist.GoIntoAction;
|
|||
/*
|
||||
* At one time implemented the following as well: MenuListener, IDoubleClickListener, ArmListener, IWireEventTarget
|
||||
*/
|
||||
public class SystemView extends SafeTreeViewer implements ISystemTree, ISystemResourceChangeListener, ISystemRemoteChangeListener, IMenuListener,
|
||||
IPostSelectionProvider,
|
||||
ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISystemDeleteTarget, ISystemRenameTarget, ISystemSelectAllTarget
|
||||
public class SystemView extends SafeTreeViewer
|
||||
implements ISystemTree, ISystemShellProvider,
|
||||
ISystemResourceChangeListener, ISystemRemoteChangeListener,
|
||||
IMenuListener, IPostSelectionProvider,
|
||||
ISystemDeleteTarget, ISystemRenameTarget, ISystemSelectAllTarget,
|
||||
ISelectionChangedListener, ITreeViewerListener
|
||||
{
|
||||
|
||||
protected Shell shell; // shell hosting this viewer
|
||||
|
@ -1594,34 +1601,49 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
Widget parentItem = null;
|
||||
Object[] multiSource = null;
|
||||
Object previous = null;
|
||||
if (_event.getViewerItem() instanceof TreeItem)
|
||||
inputTreeItem = (TreeItem) _event.getViewerItem();
|
||||
else
|
||||
inputTreeItem = null;
|
||||
boolean wasSelected = false;
|
||||
boolean originatedHere = (_event.getOriginatingViewer() == null) || (_event.getOriginatingViewer() == _originatingViewer);
|
||||
boolean originatedHere = true;
|
||||
if (_event instanceof SystemResourceChangeEventUI) {
|
||||
Viewer viewer = ((SystemResourceChangeEventUI)_event).getOriginatingViewer();
|
||||
if (viewer!=null && viewer!=_originatingViewer) {
|
||||
originatedHere = false;
|
||||
}
|
||||
Object viewerItem = ((SystemResourceChangeEventUI)_event).getViewerItem();
|
||||
if (viewerItem instanceof TreeItem) {
|
||||
inputTreeItem = (TreeItem)viewerItem;
|
||||
} else {
|
||||
inputTreeItem = null;
|
||||
}
|
||||
} else {
|
||||
inputTreeItem = null;
|
||||
}
|
||||
|
||||
//logDebugMsg("INSIDE SYSRESCHGD: " + type + ", " + src + ", " + parent);
|
||||
switch (type) {
|
||||
// SPECIAL CASES: ANYTHING TO DO WITH FILTERS!!
|
||||
case EVENT_RENAME_FILTER_REFERENCE:
|
||||
case EVENT_CHANGE_FILTER_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_RENAME_FILTER_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_CHANGE_FILTER_REFERENCE:
|
||||
findAndUpdateFilter(_event, type);
|
||||
break;
|
||||
case EVENT_CHANGE_FILTERSTRING_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_CHANGE_FILTERSTRING_REFERENCE:
|
||||
findAndUpdateFilterString(_event, type);
|
||||
break;
|
||||
|
||||
case EVENT_ADD_FILTERSTRING_REFERENCE:
|
||||
case EVENT_DELETE_FILTERSTRING_REFERENCE:
|
||||
case EVENT_MOVE_FILTERSTRING_REFERENCES:
|
||||
case ISystemResourceChangeEvents.EVENT_ADD_FILTERSTRING_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_DELETE_FILTERSTRING_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_MOVE_FILTERSTRING_REFERENCES:
|
||||
//findAndUpdateFilterStringParent(event, type);
|
||||
//break;
|
||||
case EVENT_ADD_FILTER_REFERENCE:
|
||||
case EVENT_DELETE_FILTER_REFERENCE:
|
||||
case EVENT_MOVE_FILTER_REFERENCES:
|
||||
case ISystemResourceChangeEvents.EVENT_ADD_FILTER_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_DELETE_FILTER_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_MOVE_FILTER_REFERENCES:
|
||||
// are we a secondary perspective, and our input or parent of our input was deleted?
|
||||
if (((type == EVENT_DELETE_FILTERSTRING_REFERENCE) || (type == EVENT_DELETE_FILTER_REFERENCE)) && affectsInput(src)) {
|
||||
if ((
|
||||
(type == ISystemResourceChangeEvents.EVENT_DELETE_FILTERSTRING_REFERENCE)
|
||||
|| (type == ISystemResourceChangeEvents.EVENT_DELETE_FILTER_REFERENCE)
|
||||
)
|
||||
&& affectsInput(src)
|
||||
) {
|
||||
close();
|
||||
return Status.OK_STATUS;
|
||||
}
|
||||
|
@ -1629,8 +1651,8 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
findAndUpdateFilterParent(_event, type);
|
||||
break;
|
||||
|
||||
case EVENT_ADD:
|
||||
case EVENT_ADD_RELATIVE:
|
||||
case ISystemResourceChangeEvents.EVENT_ADD:
|
||||
case ISystemResourceChangeEvents.EVENT_ADD_RELATIVE:
|
||||
if (debug) {
|
||||
logDebugMsg("SV event: EVENT_ADD "); //$NON-NLS-1$
|
||||
}
|
||||
|
@ -1649,7 +1671,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
//System.out.println("inputProvider.showingConnections().........: " + (inputProvider.showingConnections()));
|
||||
if ((parent == inputProvider) && addingConnection && (_event.getParent() instanceof ISystemRegistry) && !inputProvider.showingConnections()) return Status.OK_STATUS; // only reflect new connections in main perspective. pc42742
|
||||
int pos = -1;
|
||||
if (type == EVENT_ADD_RELATIVE) {
|
||||
if (type == ISystemResourceChangeEvents.EVENT_ADD_RELATIVE) {
|
||||
previous = _event.getRelativePrevious();
|
||||
if (previous != null) pos = getItemIndex(parentItem, previous);
|
||||
if (pos >= 0) pos++; // want to add after previous
|
||||
|
@ -1684,7 +1706,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
setSelection(new StructuredSelection(src), true);
|
||||
}
|
||||
break;
|
||||
case EVENT_ADD_MANY:
|
||||
case ISystemResourceChangeEvents.EVENT_ADD_MANY:
|
||||
if (debug) {
|
||||
logDebugMsg("SV event: EVENT_ADD_MANY"); //$NON-NLS-1$
|
||||
}
|
||||
|
@ -1721,7 +1743,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
setSelection(new StructuredSelection(multiSource), true);
|
||||
}
|
||||
break;
|
||||
case EVENT_REPLACE_CHILDREN:
|
||||
case ISystemResourceChangeEvents.EVENT_REPLACE_CHILDREN:
|
||||
if (debug) {
|
||||
logDebugMsg("SV event: EVENT_REPLACE_CHILDREN"); //$NON-NLS-1$
|
||||
}
|
||||
|
@ -1748,7 +1770,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
//setSelection(new StructuredSelection(multiSource),true);
|
||||
}
|
||||
break;
|
||||
case EVENT_CHANGE_CHILDREN:
|
||||
case ISystemResourceChangeEvents.EVENT_CHANGE_CHILDREN:
|
||||
if (debug) {
|
||||
logDebugMsg("SV event: EVENT_CHANGE_CHILDREN. src=" + src + ", parent=" + parent); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
//Exception e = new Exception();
|
||||
|
@ -1786,7 +1808,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
} else
|
||||
collapseNode(parent, true);
|
||||
break;
|
||||
case EVENT_DELETE:
|
||||
case ISystemResourceChangeEvents.EVENT_DELETE:
|
||||
if (debug) logDebugMsg("SV event: EVENT_DELETE "); //$NON-NLS-1$
|
||||
// are we a secondary perspective, and our input or parent of our input was deleted?
|
||||
if (affectsInput(src)) {
|
||||
|
@ -1805,7 +1827,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
}
|
||||
break;
|
||||
|
||||
case EVENT_DELETE_MANY:
|
||||
case ISystemResourceChangeEvents.EVENT_DELETE_MANY:
|
||||
if (debug) logDebugMsg("SV event: EVENT_DELETE_MANY "); //$NON-NLS-1$
|
||||
multiSource = _event.getMultiSource();
|
||||
// are we a secondary perspective, and our input or parent of our input was deleted?
|
||||
|
@ -1845,7 +1867,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
deleteRemoteObject(multiSource[idx]);
|
||||
break;
|
||||
*/
|
||||
case EVENT_RENAME:
|
||||
case ISystemResourceChangeEvents.EVENT_RENAME:
|
||||
if (debug) logDebugMsg("SV event: EVENT_RENAME "); //$NON-NLS-1$
|
||||
properties[0] = IBasicPropertyConstants.P_TEXT;
|
||||
update(src, properties); // for refreshing non-structural properties in viewer when model changes
|
||||
|
@ -1861,7 +1883,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
renameRemoteObject(src, (String)parent);
|
||||
break;
|
||||
*/
|
||||
case EVENT_ICON_CHANGE:
|
||||
case ISystemResourceChangeEvents.EVENT_ICON_CHANGE:
|
||||
if (debug) logDebugMsg("SV event: EVENT_ICON_CHANGE "); //$NON-NLS-1$
|
||||
|
||||
if (initViewerFilters != null && initViewerFilters.length > 0) {
|
||||
|
@ -1886,7 +1908,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
//refresh(src); THIS IS AN EVIL OPERATION: CAUSES ALL EXPANDED NODES TO RE-REQUEST THEIR CHILDREN. OUCH!
|
||||
//updatePropertySheet();
|
||||
//break;
|
||||
case EVENT_REFRESH:
|
||||
case ISystemResourceChangeEvents.EVENT_REFRESH:
|
||||
if (debug) logDebugMsg("SV event: EVENT_REFRESH "); //$NON-NLS-1$
|
||||
//if (src != null)
|
||||
// refresh(src); // ONLY VALID WHEN USER TRULY WANTS TO REQUERY CHILDREN FROM HOST
|
||||
|
@ -1902,7 +1924,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
break;
|
||||
// refresh the parent of the currently selected items.
|
||||
// todo: intelligently re-select previous selections
|
||||
case EVENT_REFRESH_SELECTED_PARENT:
|
||||
case ISystemResourceChangeEvents.EVENT_REFRESH_SELECTED_PARENT:
|
||||
if (debug) logDebugMsg("SV event: EVENT_REFRESH_SELECTED_PARENT "); //$NON-NLS-1$
|
||||
TreeItem[] items = getTree().getSelection();
|
||||
if ((items != null) && (items.length > 0) && (items[0] != null)) {
|
||||
|
@ -1918,7 +1940,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
//else
|
||||
//System.out.println("Selection is empty");
|
||||
break;
|
||||
case EVENT_REFRESH_SELECTED:
|
||||
case ISystemResourceChangeEvents.EVENT_REFRESH_SELECTED:
|
||||
if (debug) logDebugMsg("SV event: EVENT_REFRESH_SELECTED "); //$NON-NLS-1$
|
||||
IStructuredSelection selected = (IStructuredSelection) getSelection();
|
||||
Iterator i = selected.iterator();
|
||||
|
@ -1976,7 +1998,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
|
||||
updatePropertySheet();
|
||||
break;
|
||||
case EVENT_REFRESH_SELECTED_FILTER:
|
||||
case ISystemResourceChangeEvents.EVENT_REFRESH_SELECTED_FILTER:
|
||||
if (debug) logDebugMsg("SV event: EVENT_REFRESH_SELECTED_FILTER "); //$NON-NLS-1$
|
||||
IStructuredSelection selectedItems = (IStructuredSelection) getSelection();
|
||||
Iterator j = selectedItems.iterator();
|
||||
|
@ -2021,17 +2043,17 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
systemResourceChanged(_event);
|
||||
}
|
||||
break;
|
||||
case EVENT_REFRESH_REMOTE:
|
||||
case ISystemResourceChangeEvents.EVENT_REFRESH_REMOTE:
|
||||
if (debug) logDebugMsg("SV event: EVENT_REFRESH_REMOTE: src = " + src); //$NON-NLS-1$
|
||||
refreshRemoteObject(src, parent, originatedHere);
|
||||
break;
|
||||
case EVENT_SELECT_REMOTE:
|
||||
case ISystemResourceChangeEvents.EVENT_SELECT_REMOTE:
|
||||
if (debug) logDebugMsg("SV event: EVENT_SELECT_REMOTE: src = " + src); //$NON-NLS-1$
|
||||
//remoteItemsToSkip = null; // reset
|
||||
selectRemoteObjects(src, (ISubSystem) null, parent);
|
||||
break;
|
||||
|
||||
case EVENT_MOVE_MANY:
|
||||
case ISystemResourceChangeEvents.EVENT_MOVE_MANY:
|
||||
if (debug) logDebugMsg("SV event: EVENT_MOVE_MANY "); //$NON-NLS-1$
|
||||
multiSource = _event.getMultiSource();
|
||||
if ((multiSource == null) || (multiSource.length == 0)) return Status.OK_STATUS;
|
||||
|
@ -2045,7 +2067,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
setSelection(new StructuredSelection(multiSource), true);
|
||||
}
|
||||
break;
|
||||
case EVENT_PROPERTY_CHANGE:
|
||||
case ISystemResourceChangeEvents.EVENT_PROPERTY_CHANGE:
|
||||
if (debug) logDebugMsg("SV event: EVENT_PROPERTY_CHANGE "); //$NON-NLS-1$
|
||||
String[] allProps = { IBasicPropertyConstants.P_TEXT, IBasicPropertyConstants.P_IMAGE };
|
||||
ISystemRemoteElementAdapter ra = (ISystemRemoteElementAdapter)((IAdaptable)src).getAdapter(ISystemRemoteElementAdapter.class);
|
||||
|
@ -2055,15 +2077,15 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
update(src, allProps); // for refreshing non-structural properties in viewer when model changes
|
||||
updatePropertySheet();
|
||||
break;
|
||||
case EVENT_PROPERTYSHEET_UPDATE:
|
||||
case ISystemResourceChangeEvents.EVENT_PROPERTYSHEET_UPDATE:
|
||||
if (debug) logDebugMsg("SV event: EVENT_PROPERTYSHEET_UPDATE "); //$NON-NLS-1$
|
||||
updatePropertySheet();
|
||||
break;
|
||||
case EVENT_MUST_COLLAPSE:
|
||||
case ISystemResourceChangeEvents.EVENT_MUST_COLLAPSE:
|
||||
if (debug) logDebugMsg("SV event: EVENT_MUST_COLLAPSE "); //$NON-NLS-1$
|
||||
collapseNode(src, true); // collapse and flush gui widgets from memory
|
||||
break;
|
||||
case EVENT_COLLAPSE_ALL:
|
||||
case ISystemResourceChangeEvents.EVENT_COLLAPSE_ALL:
|
||||
if (debug) logDebugMsg("SV event: EVENT_COLLAPSE_ALL "); //$NON-NLS-1$
|
||||
collapseAll(); // collapse all
|
||||
if ((src != null) && (src instanceof String) && ((String) src).equals("false")) // defect 41203 //$NON-NLS-1$
|
||||
|
@ -2071,16 +2093,16 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
} else
|
||||
refresh(); // flush gui widgets from memory
|
||||
break;
|
||||
case EVENT_COLLAPSE_SELECTED: // defect 41203
|
||||
case ISystemResourceChangeEvents.EVENT_COLLAPSE_SELECTED: // defect 41203
|
||||
if (debug) logDebugMsg("SV event: EVENT_COLLAPSE_SELECTED "); //$NON-NLS-1$
|
||||
collapseSelected();
|
||||
break;
|
||||
case EVENT_EXPAND_SELECTED: // defect 41203
|
||||
case ISystemResourceChangeEvents.EVENT_EXPAND_SELECTED: // defect 41203
|
||||
if (debug) logDebugMsg("SV event: EVENT_EXPAND_SELECTED "); //$NON-NLS-1$
|
||||
expandSelected();
|
||||
break;
|
||||
|
||||
case EVENT_REVEAL_AND_SELECT:
|
||||
case ISystemResourceChangeEvents.EVENT_REVEAL_AND_SELECT:
|
||||
if (debug) logDebugMsg("SV event: EVENT_REVEAL_AND_SELECT "); //$NON-NLS-1$
|
||||
parentItem = findItem(parent);
|
||||
if (parentItem == null) return Status.OK_STATUS;
|
||||
|
@ -2104,14 +2126,14 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
}
|
||||
}
|
||||
break;
|
||||
case EVENT_SELECT:
|
||||
case ISystemResourceChangeEvents.EVENT_SELECT:
|
||||
if (debug) logDebugMsg("SV event: EVENT_SELECT "); //$NON-NLS-1$
|
||||
item = findItem(src);
|
||||
if (item == null) // if not showing item, this is a no-op
|
||||
return Status.OK_STATUS;
|
||||
setSelection(new StructuredSelection(src), true);
|
||||
break;
|
||||
case EVENT_SELECT_EXPAND:
|
||||
case ISystemResourceChangeEvents.EVENT_SELECT_EXPAND:
|
||||
if (debug) logDebugMsg("SV event: EVENT_SELECT_EXPAND "); //$NON-NLS-1$
|
||||
item = findItem(src);
|
||||
if (item == null) // if not showing item, this is a no-op
|
||||
|
@ -2132,13 +2154,20 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
/**
|
||||
* This is the method in your class that will be called when a remote resource
|
||||
* changes. You will be called after the resource is changed.
|
||||
* @see org.eclipse.rse.model.ISystemRemoteChangeEvent
|
||||
* @see org.eclipse.rse.core.events.ISystemRemoteChangeEvent
|
||||
*/
|
||||
public void systemRemoteResourceChanged(ISystemRemoteChangeEvent event) {
|
||||
int eventType = event.getEventType();
|
||||
Object remoteResourceParent = event.getResourceParent();
|
||||
Object remoteResource = event.getResource();
|
||||
boolean originatedHere = (event.getOriginatingViewer() == this);
|
||||
boolean originatedHere;
|
||||
if (event instanceof SystemResourceChangeEventUI) {
|
||||
Viewer viewer = ((SystemResourceChangeEventUI)event).getOriginatingViewer();
|
||||
originatedHere = (viewer==this);
|
||||
} else {
|
||||
originatedHere = false;
|
||||
}
|
||||
|
||||
List remoteResourceNames = null;
|
||||
if (remoteResource instanceof List) {
|
||||
remoteResourceNames = (List) remoteResource;
|
||||
|
@ -3380,10 +3409,10 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
if (debug) {
|
||||
String eventType = null;
|
||||
switch (type) {
|
||||
case EVENT_RENAME_FILTER_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_RENAME_FILTER_REFERENCE:
|
||||
eventType = "EVENT_RENAME_FILTER_REFERENCE"; //$NON-NLS-1$
|
||||
break;
|
||||
case EVENT_CHANGE_FILTER_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_CHANGE_FILTER_REFERENCE:
|
||||
eventType = "EVENT_CHANGE_FILTER_REFERENCE"; //$NON-NLS-1$
|
||||
break;
|
||||
}
|
||||
|
@ -3421,10 +3450,10 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
logDebugMsg("......didn't find renamed/updated filter's reference!"); //$NON-NLS-1$
|
||||
else {
|
||||
// STEP 3: UPDATE THAT FILTER...
|
||||
if (type == EVENT_RENAME_FILTER_REFERENCE) {
|
||||
if (type == ISystemResourceChangeEvents.EVENT_RENAME_FILTER_REFERENCE) {
|
||||
String[] rproperties = { IBasicPropertyConstants.P_TEXT };
|
||||
update(item.getData(), rproperties); // for refreshing non-structural properties in viewer when model changes
|
||||
} else if (type == EVENT_CHANGE_FILTER_REFERENCE) {
|
||||
} else if (type == ISystemResourceChangeEvents.EVENT_CHANGE_FILTER_REFERENCE) {
|
||||
//if (((TreeItem)item).getExpanded())
|
||||
//refresh(item.getData());
|
||||
smartRefresh(new TreeItem[] { (TreeItem) item });
|
||||
|
@ -3456,7 +3485,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
logDebugMsg("......didn't find updated filter string's reference!"); //$NON-NLS-1$
|
||||
else {
|
||||
// STEP 3: UPDATE THAT FILTER STRING...
|
||||
if (type == EVENT_CHANGE_FILTERSTRING_REFERENCE) // HAD BETTER!
|
||||
if (type == ISystemResourceChangeEvents.EVENT_CHANGE_FILTERSTRING_REFERENCE) // HAD BETTER!
|
||||
{
|
||||
//if (((TreeItem)item).getExpanded())
|
||||
//refresh(item.getData());
|
||||
|
@ -3516,29 +3545,29 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
//{
|
||||
String eventType = null;
|
||||
switch (type) {
|
||||
case EVENT_ADD_FILTER_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_ADD_FILTER_REFERENCE:
|
||||
add = true;
|
||||
if (debug) eventType = "EVENT_ADD_FILTER_REFERENCE"; //$NON-NLS-1$
|
||||
break;
|
||||
case EVENT_DELETE_FILTER_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_DELETE_FILTER_REFERENCE:
|
||||
delete = true;
|
||||
if (debug) eventType = "EVENT_DELETE_FILTER_REFERENCE"; //$NON-NLS-1$
|
||||
break;
|
||||
case EVENT_MOVE_FILTER_REFERENCES:
|
||||
case ISystemResourceChangeEvents.EVENT_MOVE_FILTER_REFERENCES:
|
||||
move = true;
|
||||
if (debug) eventType = "EVENT_MOVE_FILTER_REFERENCES"; //$NON-NLS-1$
|
||||
break;
|
||||
case EVENT_ADD_FILTERSTRING_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_ADD_FILTERSTRING_REFERENCE:
|
||||
add = true;
|
||||
afilterstring = true;
|
||||
if (debug) eventType = "EVENT_ADD_FILTERSTRING_REFERENCE"; //$NON-NLS-1$
|
||||
break;
|
||||
case EVENT_DELETE_FILTERSTRING_REFERENCE:
|
||||
case ISystemResourceChangeEvents.EVENT_DELETE_FILTERSTRING_REFERENCE:
|
||||
delete = true;
|
||||
afilterstring = true;
|
||||
if (debug) eventType = "EVENT_DELETE_FILTERSTRING_REFERENCE"; //$NON-NLS-1$
|
||||
break;
|
||||
case EVENT_MOVE_FILTERSTRING_REFERENCES:
|
||||
case ISystemResourceChangeEvents.EVENT_MOVE_FILTERSTRING_REFERENCES:
|
||||
move = true;
|
||||
afilterstring = true;
|
||||
if (debug) eventType = "EVENT_MOVE_FILTERSTRING_REFERENCES"; //$NON-NLS-1$
|
||||
|
@ -4514,7 +4543,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
* Required method from ISystemDeleteTarget
|
||||
*/
|
||||
public boolean doDelete(IProgressMonitor monitor) {
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IStructuredSelection selection = (IStructuredSelection) getSelection();
|
||||
Iterator elements = selection.iterator();
|
||||
//int selectedCount = selection.size();
|
||||
|
@ -4609,7 +4638,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
Object[] deleted = new Object[deletedVector.size()];
|
||||
for (int idx = 0; idx < deleted.length; idx++)
|
||||
deleted[idx] = deletedVector.elementAt(idx);
|
||||
sr.fireEvent(new org.eclipse.rse.model.SystemResourceChangeEvent(deleted, ISystemResourceChangeEvents.EVENT_DELETE_MANY, getSelectedParent()));
|
||||
sr.fireEvent(new org.eclipse.rse.core.events.SystemResourceChangeEvent(deleted, ISystemResourceChangeEvents.EVENT_DELETE_MANY, getSelectedParent()));
|
||||
}
|
||||
}
|
||||
return ok;
|
||||
|
@ -4642,7 +4671,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
* Required method from ISystemRenameTarget
|
||||
*/
|
||||
public boolean doRename(String[] newNames) {
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IStructuredSelection selection = (IStructuredSelection) getSelection();
|
||||
Iterator elements = selection.iterator();
|
||||
Object element = null;
|
||||
|
@ -4669,7 +4698,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
}
|
||||
|
||||
else
|
||||
sr.fireEvent(new org.eclipse.rse.model.SystemResourceChangeEvent(element, ISystemResourceChangeEvents.EVENT_RENAME, parentElement));
|
||||
sr.fireEvent(new org.eclipse.rse.core.events.SystemResourceChangeEvent(element, ISystemResourceChangeEvents.EVENT_RENAME, parentElement));
|
||||
}
|
||||
}
|
||||
} catch (SystemMessageException exc) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,12 +11,15 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.rse.core.SystemBasePlugin;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.core.events.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.core.events.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.core.filters.ISystemFilter;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterPool;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterPoolReference;
|
||||
|
@ -28,12 +31,9 @@ import org.eclipse.rse.core.subsystems.ISubSystem;
|
|||
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
|
||||
import org.eclipse.rse.core.subsystems.SubSystemHelpers;
|
||||
import org.eclipse.rse.core.subsystems.util.ISubSystemConfigurationAdapter;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeEvents;
|
||||
import org.eclipse.rse.model.ISystemResourceChangeListener;
|
||||
import org.eclipse.rse.model.SystemRegistry;
|
||||
import org.eclipse.rse.model.SystemResourceChangeEvent;
|
||||
import org.eclipse.rse.ui.ISystemMessages;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.view.ISystemViewInputProvider;
|
||||
|
||||
|
||||
|
@ -153,7 +153,7 @@ public class SystemViewAPIProviderForFilters
|
|||
ISystemViewInputProvider inputProvider = this;
|
||||
if ((sfr != null) && (inputProvider.getViewer()!=null))
|
||||
{
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
SystemResourceChangeEvent event = new SystemResourceChangeEvent(sfr, ISystemResourceChangeEvents.EVENT_SELECT_EXPAND, null);
|
||||
Viewer v = inputProvider.getViewer();
|
||||
if (v instanceof ISystemResourceChangeListener)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,7 +11,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
@ -28,14 +28,14 @@ import org.eclipse.rse.core.model.IHost;
|
|||
import org.eclipse.rse.core.model.ISystemMessageObject;
|
||||
import org.eclipse.rse.core.model.ISystemProfile;
|
||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||
import org.eclipse.rse.internal.model.SystemNewConnectionPromptObject;
|
||||
import org.eclipse.rse.core.subsystems.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.internal.ui.view.team.SystemTeamViewCategoryAdapter;
|
||||
import org.eclipse.rse.internal.ui.view.team.SystemTeamViewCategoryNode;
|
||||
import org.eclipse.rse.internal.ui.view.team.SystemTeamViewProfileAdapter;
|
||||
import org.eclipse.rse.internal.ui.view.team.SystemTeamViewSubSystemConfigurationAdapter;
|
||||
import org.eclipse.rse.internal.ui.view.team.SystemTeamViewSubSystemConfigurationNode;
|
||||
import org.eclipse.rse.model.ISystemPromptableObject;
|
||||
import org.eclipse.rse.ui.view.ISystemDragDropAdapter;
|
||||
import org.eclipse.rse.ui.internal.model.SystemNewConnectionPromptObject;
|
||||
import org.eclipse.rse.ui.model.ISystemPromptableObject;
|
||||
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemViewInputProvider;
|
||||
import org.eclipse.ui.IActionFilter;
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
* Uwe Stieber (Wind River) - Menu action contributions can be acknowlegded by system type provider
|
||||
* David Dykstal (IBM) - 180562: remove implementation of IRSEUserIdConstants
|
||||
* Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
@ -47,7 +48,6 @@ import org.eclipse.rse.internal.ui.actions.SystemOpenExplorerPerspectiveAction;
|
|||
import org.eclipse.rse.internal.ui.actions.SystemShowInMonitorAction;
|
||||
import org.eclipse.rse.internal.ui.actions.SystemShowInTableAction;
|
||||
import org.eclipse.rse.internal.ui.actions.SystemWorkOfflineAction;
|
||||
import org.eclipse.rse.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.ISystemContextMenuConstants;
|
||||
import org.eclipse.rse.ui.ISystemMessages;
|
||||
import org.eclipse.rse.ui.RSESystemTypeAdapter;
|
||||
|
@ -55,6 +55,7 @@ import org.eclipse.rse.ui.RSEUIPlugin;
|
|||
import org.eclipse.rse.ui.SystemMenuManager;
|
||||
import org.eclipse.rse.ui.actions.SystemNewConnectionAction;
|
||||
import org.eclipse.rse.ui.actions.SystemRefreshAction;
|
||||
import org.eclipse.rse.ui.model.ISystemRegistryUI;
|
||||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||
import org.eclipse.rse.ui.validators.ValidatorSpecialChar;
|
||||
import org.eclipse.rse.ui.view.AbstractSystemViewAdapter;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2002, 2007 IBM Corporation and others. All rights reserved.
|
||||
* This program and the accompanying materials are made available under the terms
|
||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||
|
@ -11,14 +11,14 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.internal.model.SystemNewConnectionPromptObject;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
import org.eclipse.rse.ui.internal.model.SystemNewConnectionPromptObject;
|
||||
|
||||
|
||||
/**
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue