mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-12 10:45:37 +02:00
[cleanup] Simplify ISystemViewElementAdapter class hierarchy
This commit is contained in:
parent
843464fe69
commit
35924fe422
4 changed files with 155 additions and 157 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2002, 2008 IBM Corporation and others.
|
||||
* Copyright (c) 2002, 2009 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
|
||||
|
@ -200,7 +200,7 @@ import com.ibm.icu.text.NumberFormat;
|
|||
*/
|
||||
public class SystemViewRemoteFileAdapter
|
||||
extends AbstractSystemViewAdapter
|
||||
implements ISystemViewElementAdapter, ISystemRemoteElementAdapter
|
||||
implements ISystemRemoteElementAdapter
|
||||
{
|
||||
|
||||
private String xlatedSize = null;
|
||||
|
@ -3232,7 +3232,7 @@ public class SystemViewRemoteFileAdapter
|
|||
names = new String[children.length];
|
||||
for (int idx = 0; idx < names.length; idx++)
|
||||
{
|
||||
names[idx] = ((IRemoteFile) children[idx]).getName();
|
||||
names[idx] = (children[idx]).getName();
|
||||
}
|
||||
|
||||
return names;
|
||||
|
|
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-SymbolicName: org.eclipse.rse.processes.ui;singleton:=true
|
||||
Bundle-Version: 3.0.1.qualifier
|
||||
Bundle-Version: 3.0.100.qualifier
|
||||
Bundle-Activator: org.eclipse.rse.internal.processes.ui.ProcessesPlugin
|
||||
Bundle-Localization: plugin
|
||||
Require-Bundle: org.eclipse.ui,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2008 IBM Corporation and others.
|
||||
* Copyright (c) 2006, 2009 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
|
||||
|
@ -52,7 +52,6 @@ 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.ISystemRemoteElementAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
||||
import org.eclipse.swt.dnd.Clipboard;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
import org.eclipse.ui.views.properties.IPropertyDescriptor;
|
||||
|
@ -60,7 +59,7 @@ import org.eclipse.ui.views.properties.PropertyDescriptor;
|
|||
|
||||
|
||||
public class SystemViewRemoteProcessAdapter extends AbstractSystemViewAdapter
|
||||
implements ISystemViewElementAdapter, ISystemRemoteElementAdapter
|
||||
implements ISystemRemoteElementAdapter
|
||||
{
|
||||
private SystemCopyToClipboardAction copyClipboardAction;
|
||||
public boolean canDrag(Object element)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2002, 2008 IBM Corporation and others.
|
||||
* Copyright (c) 2002, 2009 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
|
||||
|
@ -79,7 +79,6 @@ import org.eclipse.rse.ui.view.AbstractSystemViewAdapter;
|
|||
import org.eclipse.rse.ui.view.ISystemEditableRemoteObject;
|
||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
||||
import org.eclipse.rse.ui.view.ISystemRemoteElementAdapter;
|
||||
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
import org.eclipse.ui.IEditorDescriptor;
|
||||
import org.eclipse.ui.IEditorRegistry;
|
||||
|
@ -92,7 +91,7 @@ import org.eclipse.ui.views.properties.IPropertyDescriptor;
|
|||
* This is the adapter for smart output from remote commands, such that they can support right click actions and such.
|
||||
*/
|
||||
public class SystemViewRemoteOutputAdapter extends AbstractSystemViewAdapter
|
||||
implements ISystemViewElementAdapter, ISystemRemoteElementAdapter
|
||||
implements ISystemRemoteElementAdapter
|
||||
{
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue