mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +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,7 +81,16 @@ 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
|
||||
*/
|
||||
public void setParent(Object parent)
|
||||
|
|
|
@ -32,40 +32,54 @@ import org.eclipse.swt.widgets.Shell;
|
|||
public interface ISystemPromptableObject extends IAdaptable
|
||||
{
|
||||
|
||||
/**
|
||||
* 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 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
|
||||
*/
|
||||
public String getType();
|
||||
|
||||
|
||||
/**
|
||||
* Run this prompt. This should return an appropriate ISystemMessageObject to show
|
||||
* as the child, reflecting if it ran successfully, was cancelled or failed.
|
||||
*/
|
||||
public Object[] run(Shell shell);
|
||||
|
||||
public Object[] run(Shell shell);
|
||||
|
||||
/**
|
||||
* Return the child promptable objects.
|
||||
* If this returns null, then SystemViewPromptableAdapter will subsequently
|
||||
* call {@link #run(Shell)}.
|
||||
*/
|
||||
public ISystemPromptableObject[] getChildren();
|
||||
|
||||
/**
|
||||
* Return true if this is an expandable prompt
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue