1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

bug 142471 - updated ISubSystemConfiguration interface to allow for not having a password.

This commit is contained in:
David Dykstal 2006-08-10 14:22:04 +00:00
parent d507b8b380
commit fb30c9539c
2 changed files with 53 additions and 6 deletions

View file

@ -54,13 +54,38 @@ public interface ISubSystemConfiguration extends ISystemFilterPoolManagerProvide
// CRITICAL METHODS...
// ---------------------------------
/**
* Return true (default) or false to indicate if subsystems of this factory require a userId to
* do connection or not. If not, no GUI will be supplied related to user Ids in the remote systems
* explorer view.
* <p>Returns true in default implementation.
* Determines if a user id is relevant for this subsystem.
* Returns true in default implementation.
* Typically used to indicate if a login dialog needs to be presented when the subsystem
* connects.
* @return true or false to indicate if subsystems can use a user id.
*/
public boolean supportsUserId();
/**
* Determines if a user id is required if a user id can be used to connect subsystems of this configuration.
* Returns true in default implementation.
* Typically used to indicate if a login dialog can allow an empty user id.
* @return true or false to indicate if subsystems requires a user id.
*/
public boolean requiresUserId();
/**
* Can be used to determine if a password field is present on a login dialog for subsystems
* of this configuration.
* The default implementation of this interface should return true.
* @return true if the subsystem can use a password, false if a password is irrelevant.
*/
public boolean supportsPassword();
/**
* If a password is supported this is used to determine if the password can be the empty string.
* Must be ignored if supportsPassword() returns false.
* The default implementation of this interface should return true.
* @return true if the subsystem requires, false if a password may be empty.
*/
public boolean requiresPassword();
/**
* Return true if the subsystem supports more than one filter string
* <p>RETURNS true BY DEFAULT

View file

@ -91,13 +91,13 @@ import org.eclipse.ui.dialogs.PropertyPage;
* <ul>
* <li>SubSystemConfiguration#supportsFilters() to indicate if filters are to be enabled for this factory
* <li>SubSystemConfiguration#supportsNestedFilters() to indicate if filters can exist inside filters.
* <li>SubSystemConfiguration#supportsDuplicateFilterStrings() to indicate if filter strings can be duplicates within a filter
* <li>SubSystemConfiguration#supportsDuplicateFilterStrings() to indicate if filter strings can be duplicated within a filter
* <li>SubSystemConfiguration#isCaseSensitive() to indicate if filter strings are case sensitive or not
* <li>SubSystemConfiguration#supportsQuickFilters() to indicate if filters can be specified at contain expansion time.
* <li>SubSystemConfiguration#supportsUserActions() to indicate if users can define their own actions for your subsystems' child objects.
* <li>SubSystemConfiguration#supportsCompileActions() to indicate if users can compile remote objects using menu actions
* <li>SubSystemConfiguration#supportsFileTypes() to indicate if users can define their own named file types.
* <li>SubSystemConfiguration#isSubSystemsDeletable() if they support user-deleting of subsystems. Default is false
* <li>SubSystemConfiguration#isSubSystemsDeletable() if they support user-deleting of subsystems. Default is false.
* <li>SubSystemConfiguration#supportsSubSystemConnect() to return false if the connect() action is not supported
* <li>SubSystemConfiguration#supportsTargets() to return true if this factory supports the notions of targets. Normally, this is only for file system factories.
* <li>SubSystemConfiguration#getSubSystemActions() if they wish to supply actions for the right-click menu when
@ -200,6 +200,28 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
{
return true;
}
/* (non-Javadoc)
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#requiresUserId()
*/
public boolean requiresUserId() {
return true;
}
/* (non-Javadoc)
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#supportsPassword()
*/
public boolean supportsPassword() {
return true;
}
/* (non-Javadoc)
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#requiresPassword()
*/
public boolean requiresPassword() {
return true;
}
/**
* Return true if instance of this factory's subsystems support connect and disconnect actions.
* <b>By default, returns true</b>.