mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
[182454] improve getAbsoluteName() documentation
This commit is contained in:
parent
d31ac6c82c
commit
7fc7c243b4
5 changed files with 12 additions and 9 deletions
|
@ -57,6 +57,7 @@ public class DaytimeResourceAdapter extends AbstractSystemViewAdapter implements
|
|||
|
||||
public String getAbsoluteName(Object object) {
|
||||
//Not used since we dont support clipboard copy, rename or filtering
|
||||
//FIXME absolute name must remain unique for the object over its lifetime
|
||||
return "daytime:"+getText(object); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
|
|
|
@ -179,6 +179,7 @@ public class SystemViewRemoteSearchResultSetAdapter extends AbstractSystemViewAd
|
|||
*/
|
||||
public String getAbsoluteName(Object element)
|
||||
{
|
||||
//FIXME this is forbidden by the API
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -699,6 +699,7 @@ implements ISystemViewElementAdapter, ISystemRemoteElementAdapter
|
|||
String str = getAbsoluteParentName(element);
|
||||
return str + ":" + out.getIndex(); //$NON-NLS-1$
|
||||
}
|
||||
//FIXME this should never happen
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -150,6 +150,8 @@ public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
|||
ISubSystem ss = (ISubSystem)element;
|
||||
|
||||
// DKM - using type instead of name
|
||||
//FIXME can we guarantee that the serviceType is always different than the subsystemName?
|
||||
//Or could the two be confused when looking up the subsystem the reverse way?
|
||||
if (ss instanceof IServiceSubSystem)
|
||||
{
|
||||
return ss.getSystemProfileName() + "." + ss.getHostAliasName() + "." + ((IServiceSubSystem)ss).getServiceType(); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
|
|
@ -81,17 +81,15 @@ public class TestSubSystemNodeAdapter extends AbstractSystemViewAdapter
|
|||
* @see org.eclipse.rse.core.subsystems.IRemoteObjectIdentifier#getAbsoluteName(java.lang.Object)
|
||||
*/
|
||||
public String getAbsoluteName(Object element) {
|
||||
if (isTestSubSystemNode(element)) {
|
||||
ITestSubSystemNode node = (ITestSubSystemNode) element;
|
||||
String absName = node.getName();
|
||||
assert isTestSubSystemNode(element);
|
||||
ITestSubSystemNode node = (ITestSubSystemNode) element;
|
||||
String absName = node.getName();
|
||||
node = node.getParent();
|
||||
while (node != null) {
|
||||
absName = node.getName() + "/" + absName; //$NON-NLS-1$
|
||||
node = node.getParent();
|
||||
while (node != null) {
|
||||
absName = node.getName() + "/" + absName; //$NON-NLS-1$
|
||||
node = node.getParent();
|
||||
}
|
||||
return absName;
|
||||
}
|
||||
return null;
|
||||
return absName;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
Loading…
Add table
Reference in a new issue