Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.validators
Interface IValidatorRemoteSelection

All Known Implementing Classes:
SystemCopyRemoteFileAction, SystemCopyToClipboardAction, SystemExtractToAction, SystemMoveRemoteFileAction, SystemPasteFromClipboardAction, ValidatorRemoteSelection

public interface IValidatorRemoteSelection

On remote selection dialogs, you can pass an implementation of this interface to validate that it is ok to enable the OK button when the user selects a remote object. If you return a SystemMessage, ok will be disabled and the message will be shown on the message line. Return a SystemMessage with blank in the first level text to disable OK without showing an error message.

Alternatively you can just subclass ValidatorRemoteSelection


Field Summary
static String copyright
           
 
Method Summary
 SystemMessage isValid(SystemConnection selectedConnection, Object[] selectedObjects, ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObject)
          The user has selected one or more remote objects.
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Method Detail

isValid

public SystemMessage isValid(SystemConnection selectedConnection,
                             Object[] selectedObjects,
                             ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObject)
The user has selected one or more remote objects. Return null if OK is to be enabled, or a SystemMessage if it is not to be enabled. The message will be displayed on the message line.


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.