mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[189711] isRemote method for ISystemViewElementAdapter
This commit is contained in:
parent
be3fbd90d6
commit
5b470a76e2
5 changed files with 43 additions and 0 deletions
|
@ -1518,6 +1518,10 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
|
|||
}
|
||||
return false;
|
||||
}
|
||||
else if (name.equalsIgnoreCase("isRemote"))
|
||||
{
|
||||
return isRemote(target);
|
||||
}
|
||||
|
||||
// Give the ISV's as the element owners/contibutors the chance to extend the standard RSE action
|
||||
// filters for their specific needs. We do this by trying to determine the system type from the
|
||||
|
|
|
@ -240,6 +240,15 @@ public interface ISystemViewElementAdapter extends IPropertySource, ISystemDragD
|
|||
* sessions
|
||||
*/
|
||||
public boolean isPromptable(Object element);
|
||||
|
||||
|
||||
/**
|
||||
* Return true if this object is a "remote" object. A remote object is defined as an object
|
||||
* that is not part of the base RSE artifacts (hosts, subsystems, filters)
|
||||
* @param element the object
|
||||
* @return true if the object is remote
|
||||
*/
|
||||
public boolean isRemote(Object element);
|
||||
|
||||
/**
|
||||
* Set input object for property source queries. This is called by the
|
||||
|
|
|
@ -197,4 +197,14 @@ public class SystemTeamViewCompileCommandAdapter extends AbstractSystemViewAdapt
|
|||
SystemTeamViewCompileTypeNode type = (SystemTeamViewCompileTypeNode)element;
|
||||
return type.getProfile().getName() + "." + type.getParentCategory().getLabel() +"." + type.getParentSubSystemFactory().getName() + "." + type.getLabel();
|
||||
}*/
|
||||
|
||||
/**
|
||||
* This is a local RSE artifact so returning false
|
||||
*
|
||||
* @param element the object to check
|
||||
* @return false since this is not remote
|
||||
*/
|
||||
public boolean isRemote(Object element) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -188,4 +188,14 @@ public class SystemTeamViewCompileTypeAdapter extends AbstractSystemViewAdapter
|
|||
SystemTeamViewCompileTypeNode type = (SystemTeamViewCompileTypeNode)element;
|
||||
return type.getProfile().getName() + "." + type.getParentCategory().getLabel() +"." + type.getParentSubSystemFactory().getName() + "." + type.getLabel();
|
||||
}*/
|
||||
|
||||
/**
|
||||
* This is a local RSE artifact so returning false
|
||||
*
|
||||
* @param element the object to check
|
||||
* @return false since this is not remote
|
||||
*/
|
||||
public boolean isRemote(Object element) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -210,4 +210,14 @@ public class SystemTeamViewUserActionAdapter extends AbstractSystemViewAdapter i
|
|||
public String getMementoHandleKey(Object element) {
|
||||
return null; // not needed now as we don't re-expand to this level
|
||||
}
|
||||
|
||||
/**
|
||||
* This is a local RSE artifact so returning false
|
||||
*
|
||||
* @param element the object to check
|
||||
* @return false since this is not remote
|
||||
*/
|
||||
public boolean isRemote(Object element) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue