mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-24 08:44:01 +02:00
[cleanup] @noimplement instead of @noextend interfaces
This commit is contained in:
parent
d97001d12f
commit
c26154c003
5 changed files with 93 additions and 89 deletions
|
@ -7,10 +7,10 @@
|
||||||
*
|
*
|
||||||
* Initial Contributors:
|
* Initial Contributors:
|
||||||
* The following IBM employees contributed to the Remote System Explorer
|
* The following IBM employees contributed to the Remote System Explorer
|
||||||
* component that contains this file: David McKnight, Kushal Munir,
|
* component that contains this file: David McKnight, Kushal Munir,
|
||||||
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
||||||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* David Dykstal (IBM) - [226561] Add API markup to RSE Javadocs where extend / implement is allowed
|
* David Dykstal (IBM) - [226561] Add API markup to RSE Javadocs where extend / implement is allowed
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
@ -20,9 +20,10 @@ package org.eclipse.rse.core.filters;
|
||||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An interface required if you wish to be called back by the
|
* An interface required if you wish to be called back by the system filter
|
||||||
* system filter wizard, when the user selects a target filter pool.
|
* wizard, when the user selects a target filter pool.
|
||||||
* @noextend This interface is not intended to be extended by clients.
|
*
|
||||||
|
* @noimplement This interface is not intended to be implemented by clients.
|
||||||
*/
|
*/
|
||||||
public interface ISystemFilterPoolSelectionValidator {
|
public interface ISystemFilterPoolSelectionValidator {
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
*
|
*
|
||||||
* Initial Contributors:
|
* Initial Contributors:
|
||||||
* The following IBM employees contributed to the Remote System Explorer
|
* The following IBM employees contributed to the Remote System Explorer
|
||||||
* component that contains this file: David McKnight, Kushal Munir,
|
* component that contains this file: David McKnight, Kushal Munir,
|
||||||
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
||||||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* David Dykstal (IBM) - [226561] Add API markup to RSE Javadocs where extend / implement is allowed
|
* David Dykstal (IBM) - [226561] Add API markup to RSE Javadocs where extend / implement is allowed
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
@ -18,9 +18,10 @@
|
||||||
package org.eclipse.rse.core.filters;
|
package org.eclipse.rse.core.filters;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The system filter wizard allows callers to pass a list of wrapper objects
|
* The system filter wizard allows callers to pass a list of wrapper objects for
|
||||||
* for the user to select a filter pool.
|
* the user to select a filter pool.
|
||||||
* @noextend This interface is not intended to be extended by clients.
|
*
|
||||||
|
* @noimplement This interface is not intended to be implemented by clients.
|
||||||
*/
|
*/
|
||||||
public interface ISystemFilterPoolWrapper {
|
public interface ISystemFilterPoolWrapper {
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
*
|
*
|
||||||
* Initial Contributors:
|
* Initial Contributors:
|
||||||
* The following IBM employees contributed to the Remote System Explorer
|
* The following IBM employees contributed to the Remote System Explorer
|
||||||
* component that contains this file: David McKnight, Kushal Munir,
|
* component that contains this file: David McKnight, Kushal Munir,
|
||||||
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
||||||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* David McKnight (IBM) - [225506] [api][breaking] RSE UI leaks non-API types
|
* David McKnight (IBM) - [225506] [api][breaking] RSE UI leaks non-API types
|
||||||
* David Dykstal (IBM) - [226561] Add API markup to RSE Javadocs where extend / implement is allowed
|
* David Dykstal (IBM) - [226561] Add API markup to RSE Javadocs where extend / implement is allowed
|
||||||
|
@ -19,15 +19,16 @@
|
||||||
package org.eclipse.rse.core.filters;
|
package org.eclipse.rse.core.filters;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The system filter wizard allows callers to pass a list of wrapper objects
|
* The system filter wizard allows callers to pass a list of wrapper objects for
|
||||||
* for the user to select a filter pool. Effectively, this prompting for
|
* the user to select a filter pool. Effectively, this prompting for euphemisms
|
||||||
* euphemisms to filter pools. This requires an array of wrapper objects,
|
* to filter pools. This requires an array of wrapper objects, and requires
|
||||||
* and requires replacement text for the pool prompt and tooltip text, and
|
* replacement text for the pool prompt and tooltip text, and the verbiage above
|
||||||
* the verbiage above it.
|
* it.
|
||||||
* <p>
|
* <p>
|
||||||
* This is all encapsulated in this interface. There is also a class offered
|
* This is all encapsulated in this interface. There is also a class offered
|
||||||
* that implements all this and is populated via setters.
|
* that implements all this and is populated via setters.
|
||||||
* @noextend This interface is not intended to be extended by clients.
|
*
|
||||||
|
* @noimplement This interface is not intended to be implemented by clients.
|
||||||
*/
|
*/
|
||||||
public interface ISystemFilterPoolWrapperInformation {
|
public interface ISystemFilterPoolWrapperInformation {
|
||||||
|
|
||||||
|
@ -53,7 +54,7 @@ public interface ISystemFilterPoolWrapperInformation {
|
||||||
* Get the wrapper to preselect in the list.
|
* Get the wrapper to preselect in the list.
|
||||||
*/
|
*/
|
||||||
public ISystemFilterPoolWrapper getPreSelectWrapper();
|
public ISystemFilterPoolWrapper getPreSelectWrapper();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a wrapper object
|
* Add a wrapper object
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
*
|
*
|
||||||
* Initial Contributors:
|
* Initial Contributors:
|
||||||
* The following IBM employees contributed to the Remote System Explorer
|
* The following IBM employees contributed to the Remote System Explorer
|
||||||
* component that contains this file: David McKnight, Kushal Munir,
|
* component that contains this file: David McKnight, Kushal Munir,
|
||||||
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
||||||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* David Dykstal (IBM) - [226561] Add API markup to RSE javadocs for extend / implement
|
* David Dykstal (IBM) - [226561] Add API markup to RSE javadocs for extend / implement
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
@ -18,9 +18,10 @@
|
||||||
package org.eclipse.rse.core.model;
|
package org.eclipse.rse.core.model;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Common interface for representing different contents types of
|
* Common interface for representing different contents types of artifacts that
|
||||||
* artifacts that can be stored in an IRemoteContainer.
|
* can be stored in an IRemoteContainer.
|
||||||
* @noextend This interface is not intended to be extended by clients.
|
*
|
||||||
|
* @noimplement This interface is not intended to be implemented by clients.
|
||||||
*/
|
*/
|
||||||
public interface ISystemContentsType {
|
public interface ISystemContentsType {
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
*
|
*
|
||||||
* Initial Contributors:
|
* Initial Contributors:
|
||||||
* The following IBM employees contributed to the Remote System Explorer
|
* The following IBM employees contributed to the Remote System Explorer
|
||||||
* component that contains this file: David McKnight, Kushal Munir,
|
* component that contains this file: David McKnight, Kushal Munir,
|
||||||
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
||||||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [180562] dont implement ISystemOutputRemoteTypes
|
* Martin Oberhuber (Wind River) - [180562] dont implement ISystemOutputRemoteTypes
|
||||||
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
|
||||||
|
@ -84,7 +84,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
super("Goto Line");
|
super("Goto Line");
|
||||||
_gotoLine = gotoLine;
|
_gotoLine = gotoLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IStatus run(IProgressMonitor monitor)
|
public IStatus run(IProgressMonitor monitor)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -94,26 +94,26 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
Thread.sleep(1000);
|
Thread.sleep(1000);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
PlatformUI.getWorkbench().getDisplay().asyncExec(_gotoLine);
|
PlatformUI.getWorkbench().getDisplay().asyncExec(_gotoLine);
|
||||||
return Status.OK_STATUS;
|
return Status.OK_STATUS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class DelayedGotoSearchResult implements Runnable {
|
public class DelayedGotoSearchResult implements Runnable {
|
||||||
private IRemoteFile _file;
|
private IRemoteFile _file;
|
||||||
private IHostSearchResult _searchResult;
|
private IHostSearchResult _searchResult;
|
||||||
|
|
||||||
public DelayedGotoSearchResult(IRemoteFile file, IHostSearchResult searchResult) {
|
public DelayedGotoSearchResult(IRemoteFile file, IHostSearchResult searchResult) {
|
||||||
_file = file;
|
_file = file;
|
||||||
_searchResult = searchResult;
|
_searchResult = searchResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
||||||
if (checkEditorOpen()) {
|
if (checkEditorOpen()) {
|
||||||
SystemRemoteFileSearchOpenWithMenu.handleGotoLine(_file, _searchResult);
|
SystemRemoteFileSearchOpenWithMenu.handleGotoLine(_file, _searchResult);
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
job.schedule();
|
job.schedule();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean checkEditorOpen()
|
private boolean checkEditorOpen()
|
||||||
{
|
{
|
||||||
IWorkbench desktop = PlatformUI.getWorkbench();
|
IWorkbench desktop = PlatformUI.getWorkbench();
|
||||||
|
@ -155,39 +155,39 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected IPropertyDescriptor[] _propertyDescriptors;
|
protected IPropertyDescriptor[] _propertyDescriptors;
|
||||||
|
|
||||||
|
|
||||||
private SystemCopyToClipboardAction _copyOutputAction = null;
|
private SystemCopyToClipboardAction _copyOutputAction = null;
|
||||||
|
|
||||||
public SystemViewRemoteSearchResultAdapter() {
|
public SystemViewRemoteSearchResultAdapter() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We should not add common actions such as compile and user actions for this adapter.
|
* We should not add common actions such as compile and user actions for this adapter.
|
||||||
* @see org.eclipse.rse.ui.view.AbstractSystemViewAdapter#addCommonRemoteActions(org.eclipse.rse.ui.SystemMenuManager, org.eclipse.jface.viewers.IStructuredSelection, org.eclipse.swt.widgets.Shell, java.lang.String)
|
* @see org.eclipse.rse.ui.view.AbstractSystemViewAdapter#addCommonRemoteActions(org.eclipse.rse.ui.SystemMenuManager, org.eclipse.jface.viewers.IStructuredSelection, org.eclipse.swt.widgets.Shell, java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void addCommonRemoteActions(SystemMenuManager menu, IStructuredSelection selection, Shell shell, String menuGroup) {
|
public void addCommonRemoteActions(SystemMenuManager menu, IStructuredSelection selection, Shell shell, String menuGroup) {
|
||||||
|
|
||||||
if (selection != null && !selection.isEmpty()) {
|
if (selection != null && !selection.isEmpty()) {
|
||||||
|
|
||||||
Iterator iter = selection.iterator();
|
Iterator iter = selection.iterator();
|
||||||
|
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
|
||||||
// go through selections and see if there is one IHostSearchResult
|
// go through selections and see if there is one IHostSearchResult
|
||||||
// if there is, we do not add any common remote actions
|
// if there is, we do not add any common remote actions
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
Object obj = iter.next();
|
Object obj = iter.next();
|
||||||
|
|
||||||
if (obj instanceof IHostSearchResult) {
|
if (obj instanceof IHostSearchResult) {
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
super.addCommonRemoteActions(menu, selection, shell, menuGroup);
|
super.addCommonRemoteActions(menu, selection, shell, menuGroup);
|
||||||
}
|
}
|
||||||
|
@ -216,11 +216,11 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
{
|
{
|
||||||
if (firstSelection instanceof IHostSearchResult)
|
if (firstSelection instanceof IHostSearchResult)
|
||||||
{
|
{
|
||||||
// IHostSearchResult result = (IHostSearchResult) firstSelection;
|
// IHostSearchResult result = (IHostSearchResult) firstSelection;
|
||||||
//SystemSearchCreateEditLineActions createActions = new SystemSearchCreateEditLineActions();
|
//SystemSearchCreateEditLineActions createActions = new SystemSearchCreateEditLineActions();
|
||||||
//createActions.create(menu, selection, shell, menuGroup);
|
//createActions.create(menu, selection, shell, menuGroup);
|
||||||
MenuManager submenu = new MenuManager(FileResources.ResourceNavigator_openWith, ISystemContextMenuConstants.GROUP_OPENWITH);
|
MenuManager submenu = new MenuManager(FileResources.ResourceNavigator_openWith, ISystemContextMenuConstants.GROUP_OPENWITH);
|
||||||
|
|
||||||
SystemRemoteFileSearchOpenWithMenu openWithMenu = new SystemRemoteFileSearchOpenWithMenu();
|
SystemRemoteFileSearchOpenWithMenu openWithMenu = new SystemRemoteFileSearchOpenWithMenu();
|
||||||
openWithMenu.updateSelection(selection);
|
openWithMenu.updateSelection(selection);
|
||||||
submenu.add(openWithMenu);
|
submenu.add(openWithMenu);
|
||||||
|
@ -237,7 +237,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
/**
|
/**
|
||||||
* Returns the parent of the search result (i.e. IHostSearchResults)
|
* Returns the parent of the search result (i.e. IHostSearchResults)
|
||||||
*/
|
*/
|
||||||
public Object getParent(Object element)
|
public Object getParent(Object element)
|
||||||
{
|
{
|
||||||
if (element instanceof IHostSearchResult)
|
if (element instanceof IHostSearchResult)
|
||||||
{
|
{
|
||||||
|
@ -290,7 +290,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
* @param output the search result
|
* @param output the search result
|
||||||
* @return the associated remote file
|
* @return the associated remote file
|
||||||
*/
|
*/
|
||||||
public static IRemoteFile outputToFile(IHostSearchResult output)
|
public static IRemoteFile outputToFile(IHostSearchResult output)
|
||||||
{
|
{
|
||||||
return (IRemoteFile)output.getParent();
|
return (IRemoteFile)output.getParent();
|
||||||
}
|
}
|
||||||
|
@ -304,7 +304,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
boolean result = false;
|
boolean result = false;
|
||||||
if (element instanceof IHostSearchResult)
|
if (element instanceof IHostSearchResult)
|
||||||
{
|
{
|
||||||
|
|
||||||
IHostSearchResult searchResult = (IHostSearchResult) element;
|
IHostSearchResult searchResult = (IHostSearchResult) element;
|
||||||
IRemoteFile file = outputToFile(searchResult);
|
IRemoteFile file = outputToFile(searchResult);
|
||||||
if (file != null && file.isFile())
|
if (file != null && file.isFile())
|
||||||
|
@ -315,7 +315,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
|
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
if (line > 0)
|
if (line > 0)
|
||||||
{
|
{
|
||||||
DelayedGotoSearchResult dgoto = new DelayedGotoSearchResult(file, searchResult);
|
DelayedGotoSearchResult dgoto = new DelayedGotoSearchResult(file, searchResult);
|
||||||
Display.getDefault().asyncExec(dgoto);
|
Display.getDefault().asyncExec(dgoto);
|
||||||
|
@ -329,7 +329,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the associated subsystem for this search result
|
* Returns the associated subsystem for this search result
|
||||||
*/
|
*/
|
||||||
|
@ -339,7 +339,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
{
|
{
|
||||||
IHostSearchResult output = (IHostSearchResult) element;
|
IHostSearchResult output = (IHostSearchResult) element;
|
||||||
Object parent = output.getParent();
|
Object parent = output.getParent();
|
||||||
|
|
||||||
if (parent instanceof IRemoteFile) {
|
if (parent instanceof IRemoteFile) {
|
||||||
return ((IRemoteFile)parent).getParentRemoteFileSubSystem();
|
return ((IRemoteFile)parent).getParentRemoteFileSubSystem();
|
||||||
}
|
}
|
||||||
|
@ -357,15 +357,15 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
if (element instanceof IHostSearchResult)
|
if (element instanceof IHostSearchResult)
|
||||||
{
|
{
|
||||||
IHostSearchResult searchResult = (IHostSearchResult)element;
|
IHostSearchResult searchResult = (IHostSearchResult)element;
|
||||||
|
|
||||||
StringBuffer buf = new StringBuffer();
|
StringBuffer buf = new StringBuffer();
|
||||||
|
|
||||||
String str = getAbsoluteParentName(element);
|
String str = getAbsoluteParentName(element);
|
||||||
|
|
||||||
if (str == null) {
|
if (str == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// create the absolute name with this format
|
// create the absolute name with this format
|
||||||
// remoteFilePath:SEARCH<searchString:index>
|
// remoteFilePath:SEARCH<searchString:index>
|
||||||
buf.append(str);
|
buf.append(str);
|
||||||
|
@ -375,10 +375,10 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
buf.append(IHostSearchResult.SEARCH_RESULT_INDEX_DELIMITER);
|
buf.append(IHostSearchResult.SEARCH_RESULT_INDEX_DELIMITER);
|
||||||
buf.append(searchResult.getIndex());
|
buf.append(searchResult.getIndex());
|
||||||
buf.append(IHostSearchResult.SEARCH_RESULT_CLOSE_DELIMITER);
|
buf.append(IHostSearchResult.SEARCH_RESULT_CLOSE_DELIMITER);
|
||||||
|
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -388,15 +388,15 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
public String getAbsoluteParentName(Object element)
|
public String getAbsoluteParentName(Object element)
|
||||||
{
|
{
|
||||||
Object parent = getParent(element);
|
Object parent = getParent(element);
|
||||||
|
|
||||||
if ((parent != null) && (parent instanceof IRemoteFile)) {
|
if ((parent != null) && (parent instanceof IRemoteFile)) {
|
||||||
ISystemRemoteElementAdapter parentAdapter = SystemAdapterHelpers.getRemoteAdapter(parent);
|
ISystemRemoteElementAdapter parentAdapter = SystemAdapterHelpers.getRemoteAdapter(parent);
|
||||||
|
|
||||||
if (parentAdapter != null) {
|
if (parentAdapter != null) {
|
||||||
return parentAdapter.getAbsoluteName(parent);
|
return parentAdapter.getAbsoluteName(parent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -456,10 +456,10 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Some view has updated the name or properties of this remote object. As a result, the
|
* Some view has updated the name or properties of this remote object. As a result, the
|
||||||
* remote object's contents need to be refreshed. You are given the old remote object that has
|
* remote object's contents need to be refreshed. You are given the old remote object that has
|
||||||
* old data, and you are given the new remote object that has the new data. For example, on a
|
* old data, and you are given the new remote object that has the new data. For example, on a
|
||||||
* rename the old object still has the old name attribute while the new object has the new
|
* rename the old object still has the old name attribute while the new object has the new
|
||||||
* new attribute.
|
* new attribute.
|
||||||
* <p>
|
* <p>
|
||||||
* This is called by viewers like SystemView in response to rename and property change events.
|
* This is called by viewers like SystemView in response to rename and property change events.
|
||||||
|
@ -489,16 +489,16 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given a remote object, return the unqualified names of the objects contained in that parent. This is
|
* Given a remote object, return the unqualified names of the objects contained in that parent. This is
|
||||||
* used for testing for uniqueness on a rename operation, for example. Sometimes, it is not
|
* used for testing for uniqueness on a rename operation, for example. Sometimes, it is not
|
||||||
* enough to just enumerate all the objects in the parent for this purpose, because duplicate
|
* enough to just enumerate all the objects in the parent for this purpose, because duplicate
|
||||||
* names are allowed if the types are different, such as on iSeries. In this case return only
|
* names are allowed if the types are different, such as on iSeries. In this case return only
|
||||||
* the names which should be used to do name-uniqueness validation on a rename operation.
|
* the names which should be used to do name-uniqueness validation on a rename operation.
|
||||||
*/
|
*/
|
||||||
public String[] getRemoteParentNamesInUse(Object element, IProgressMonitor monitor) throws Exception
|
public String[] getRemoteParentNamesInUse(Object element, IProgressMonitor monitor) throws Exception
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IPropertyDescriptor[] getUniquePropertyDescriptors()
|
public IPropertyDescriptor[] getUniquePropertyDescriptors()
|
||||||
{
|
{
|
||||||
return new IPropertyDescriptor[0];
|
return new IPropertyDescriptor[0];
|
||||||
|
@ -507,7 +507,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
/**
|
/**
|
||||||
* Returns the unique property descriptors for a search result
|
* Returns the unique property descriptors for a search result
|
||||||
*/
|
*/
|
||||||
protected org.eclipse.ui.views.properties.IPropertyDescriptor[] internalGetPropertyDescriptors()
|
protected IPropertyDescriptor[] internalGetPropertyDescriptors()
|
||||||
{
|
{
|
||||||
if (_propertyDescriptors == null)
|
if (_propertyDescriptors == null)
|
||||||
{
|
{
|
||||||
|
@ -516,7 +516,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
|
|
||||||
// path
|
// path
|
||||||
_propertyDescriptors[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_PATH, SystemViewResources.RESID_PROPERTY_FILE_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_PATH_TOOLTIP);
|
_propertyDescriptors[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_FILE_PATH, SystemViewResources.RESID_PROPERTY_FILE_PATH_LABEL, SystemViewResources.RESID_PROPERTY_FILE_PATH_TOOLTIP);
|
||||||
|
|
||||||
// char start
|
// char start
|
||||||
_propertyDescriptors[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_SEARCH_LINE, FileResources.RESID_PROPERTY_SEARCH_LINE_LABEL, FileResources.RESID_PROPERTY_SEARCH_LINE_TOOLTIP);
|
_propertyDescriptors[++idx] = createSimplePropertyDescriptor(ISystemPropertyConstants.P_SEARCH_LINE, FileResources.RESID_PROPERTY_SEARCH_LINE_LABEL, FileResources.RESID_PROPERTY_SEARCH_LINE_TOOLTIP);
|
||||||
//_propertyDescriptors[++idx] = createSimplePropertyDescriptor(P_SEARCH_CHAR_END, SystemViewResources.RESID_PROPERTY_SEARCH_CHAR_END_ROOT);
|
//_propertyDescriptors[++idx] = createSimplePropertyDescriptor(P_SEARCH_CHAR_END, SystemViewResources.RESID_PROPERTY_SEARCH_CHAR_END_ROOT);
|
||||||
|
@ -528,7 +528,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
* Returns the current collection of property descriptors.
|
* Returns the current collection of property descriptors.
|
||||||
* By default returns descriptors for name and type only.
|
* By default returns descriptors for name and type only.
|
||||||
* Override if desired.
|
* Override if desired.
|
||||||
* @return an array containing all descriptors.
|
* @return an array containing all descriptors.
|
||||||
*/
|
*/
|
||||||
protected Object internalGetPropertyValue(Object key)
|
protected Object internalGetPropertyValue(Object key)
|
||||||
{
|
{
|
||||||
|
@ -550,7 +550,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
{
|
{
|
||||||
return new Integer(output.getCharEnd());
|
return new Integer(output.getCharEnd());
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
@ -570,7 +570,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
return imageDescriptor;
|
return imageDescriptor;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // return some default
|
{ // return some default
|
||||||
ImageDescriptor imageDescriptor = RSEUIPlugin.getDefault().getImageDescriptor(ISystemIconConstants.ICON_SYSTEM_BLANK_ID);
|
ImageDescriptor imageDescriptor = RSEUIPlugin.getDefault().getImageDescriptor(ISystemIconConstants.ICON_SYSTEM_BLANK_ID);
|
||||||
return imageDescriptor;
|
return imageDescriptor;
|
||||||
}
|
}
|
||||||
|
@ -640,7 +640,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform the rename action. By default does nothing. Override if your object is renamable.
|
* Perform the rename action. By default does nothing. Override if your object is renamable.
|
||||||
* Return true if this was successful. Return false if it failed and you issued a msg.
|
* Return true if this was successful. Return false if it failed and you issued a msg.
|
||||||
* Throw an exception if it failed and you want to use the generic msg.
|
* Throw an exception if it failed and you want to use the generic msg.
|
||||||
*/
|
*/
|
||||||
public boolean doRename(Shell shell, Object element, String name, IProgressMonitor monitor) throws Exception
|
public boolean doRename(Shell shell, Object element, String name, IProgressMonitor monitor) throws Exception
|
||||||
|
@ -662,7 +662,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates whether the specified object can be copied
|
* Indicates whether the specified object can be copied
|
||||||
* @param element the object to copy
|
* @param element the object to copy
|
||||||
*/
|
*/
|
||||||
public boolean canDrag(Object element)
|
public boolean canDrag(Object element)
|
||||||
|
@ -678,7 +678,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
/**
|
/**
|
||||||
* Copy the specified remote output object. This method returns a string representing
|
* Copy the specified remote output object. This method returns a string representing
|
||||||
* the text of the remote output;
|
* the text of the remote output;
|
||||||
*
|
*
|
||||||
* @param element the output to copy
|
* @param element the output to copy
|
||||||
* @param sameSystemType not applicable for remote output
|
* @param sameSystemType not applicable for remote output
|
||||||
* @param monitor the progress monitor
|
* @param monitor the progress monitor
|
||||||
|
@ -700,7 +700,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
return getText(element);
|
return getText(element);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if it is valid for the src object to be dropped in the target
|
* Return true if it is valid for the src object to be dropped in the target
|
||||||
* @param src the object to drop
|
* @param src the object to drop
|
||||||
|
@ -733,7 +733,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates whether the search result can be opened in an editor
|
* Indicates whether the search result can be opened in an editor
|
||||||
*/
|
*/
|
||||||
|
@ -767,7 +767,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a filter string that corresponds to this object.
|
* Return a filter string that corresponds to this object.
|
||||||
* @param object the object to obtain a filter string for
|
* @param object the object to obtain a filter string for
|
||||||
|
@ -777,12 +777,12 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the current value for the named property.
|
* Returns the current value for the named property.
|
||||||
*
|
*
|
||||||
* @param property the name or key of the property as named by its property descriptor
|
* @param property the name or key of the property as named by its property descriptor
|
||||||
* @param formatted indication of whether to return the value in formatted or raw form
|
* @param formatted indication of whether to return the value in formatted or raw form
|
||||||
* @return the current value of the given property
|
* @return the current value of the given property
|
||||||
|
@ -808,9 +808,9 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
||||||
{
|
{
|
||||||
Object context = cmdShell.getContext();
|
Object context = cmdShell.getContext();
|
||||||
if (context instanceof IRemoteFile)
|
if (context instanceof IRemoteFile)
|
||||||
{
|
{
|
||||||
IRemoteFile cwd = (IRemoteFile)context;
|
IRemoteFile cwd = (IRemoteFile)context;
|
||||||
return cwd.getAbsolutePath();
|
return cwd.getAbsolutePath();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue