mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-27 10:55:33 +02:00
[fix] system promptable object does not reveal associated system types
This commit is contained in:
parent
3a0efdabdc
commit
aee897c1dc
2 changed files with 35 additions and 12 deletions
|
@ -81,6 +81,15 @@ public class SystemNewConnectionPromptObject
|
|||
this.systemTypesSet = true;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.model.ISystemPromptableObject#getSystemTypes()
|
||||
*/
|
||||
public String[] getSystemTypes() {
|
||||
String[] types = systemTypes;
|
||||
if (types == null || !systemTypesSet) types = new String[0];
|
||||
return types;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the parent object so that we can respond to getParent requests
|
||||
*/
|
||||
|
|
|
@ -32,23 +32,36 @@ import org.eclipse.swt.widgets.Shell;
|
|||
public interface ISystemPromptableObject extends IAdaptable
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns the list of system types this promptable object
|
||||
* is associated with. This is important to implement label
|
||||
* and icon decorators for promptable objects.
|
||||
*
|
||||
* @return The list of associated system types or an empty list.
|
||||
*/
|
||||
public String[] getSystemTypes();
|
||||
|
||||
/**
|
||||
* Get the parent object (within tree view)
|
||||
*/
|
||||
public Object getParent();
|
||||
|
||||
/**
|
||||
* Set the parent object so that we can respond to getParent requests
|
||||
*/
|
||||
public void setParent(Object parent);
|
||||
|
||||
/**
|
||||
* Returns an image descriptor for the image. More efficient than getting the image.
|
||||
* Calls getImage on the subsystem's owning factory.
|
||||
*/
|
||||
public ImageDescriptor getImageDescriptor();
|
||||
|
||||
/**
|
||||
* Return the label for this object
|
||||
*/
|
||||
public String getText();
|
||||
|
||||
/**
|
||||
* Return the type label for this object
|
||||
*/
|
||||
|
@ -66,6 +79,7 @@ public interface ISystemPromptableObject extends IAdaptable
|
|||
* call {@link #run(Shell)}.
|
||||
*/
|
||||
public ISystemPromptableObject[] getChildren();
|
||||
|
||||
/**
|
||||
* Return true if this is an expandable prompt
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue