mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-27 19:05:38 +02:00
[188801] we shouldn't be passing in a view to get the adapter anyway. I still need to deal with the events getting fired from a job thread
This commit is contained in:
parent
8528df2f57
commit
68aed79eed
1 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,6 @@ import org.eclipse.jface.dialogs.ProgressMonitorDialog;
|
||||||
import org.eclipse.jface.operation.IRunnableContext;
|
import org.eclipse.jface.operation.IRunnableContext;
|
||||||
import org.eclipse.jface.viewers.ISelection;
|
import org.eclipse.jface.viewers.ISelection;
|
||||||
import org.eclipse.jface.viewers.IStructuredSelection;
|
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||||
import org.eclipse.jface.viewers.Viewer;
|
|
||||||
import org.eclipse.rse.core.RSECorePlugin;
|
import org.eclipse.rse.core.RSECorePlugin;
|
||||||
import org.eclipse.rse.core.events.ISystemRemoteChangeEvents;
|
import org.eclipse.rse.core.events.ISystemRemoteChangeEvents;
|
||||||
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
|
||||||
|
@ -124,7 +123,8 @@ public class SystemCommonDeleteAction
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -279,7 +279,7 @@ public class SystemCommonDeleteAction
|
||||||
while (iter.hasNext())
|
while (iter.hasNext())
|
||||||
{
|
{
|
||||||
Object object = iter.next();
|
Object object = iter.next();
|
||||||
ISystemViewElementAdapter adapter = SystemAdapterHelpers.getViewAdapter(object, (Viewer)target);
|
ISystemViewElementAdapter adapter = SystemAdapterHelpers.getViewAdapter(object);
|
||||||
if (getRemoteAdapter(object) != null)
|
if (getRemoteAdapter(object) != null)
|
||||||
{
|
{
|
||||||
ISubSystem subSystem = adapter.getSubSystem(object);
|
ISubSystem subSystem = adapter.getSubSystem(object);
|
||||||
|
|
Loading…
Add table
Reference in a new issue