mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +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;
|
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
|
// 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
|
// filters for their specific needs. We do this by trying to determine the system type from the
|
||||||
|
|
|
@ -241,6 +241,15 @@ public interface ISystemViewElementAdapter extends IPropertySource, ISystemDragD
|
||||||
*/
|
*/
|
||||||
public boolean isPromptable(Object element);
|
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
|
* Set input object for property source queries. This is called by the
|
||||||
* SystemViewAdaptorFactory before returning this adapter object.
|
* SystemViewAdaptorFactory before returning this adapter object.
|
||||||
|
|
|
@ -197,4 +197,14 @@ public class SystemTeamViewCompileCommandAdapter extends AbstractSystemViewAdapt
|
||||||
SystemTeamViewCompileTypeNode type = (SystemTeamViewCompileTypeNode)element;
|
SystemTeamViewCompileTypeNode type = (SystemTeamViewCompileTypeNode)element;
|
||||||
return type.getProfile().getName() + "." + type.getParentCategory().getLabel() +"." + type.getParentSubSystemFactory().getName() + "." + type.getLabel();
|
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;
|
SystemTeamViewCompileTypeNode type = (SystemTeamViewCompileTypeNode)element;
|
||||||
return type.getProfile().getName() + "." + type.getParentCategory().getLabel() +"." + type.getParentSubSystemFactory().getName() + "." + type.getLabel();
|
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) {
|
public String getMementoHandleKey(Object element) {
|
||||||
return null; // not needed now as we don't re-expand to this level
|
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