RSE
Release 3.4

org.eclipse.rse.ui.validators
Interface IValidatorRemoteSelection

All Known Implementing Classes:
SystemCopyToClipboardAction, 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


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

Method Detail

isValid

SystemMessage isValid(IHost 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.


RSE
Release 3.4

Copyright (c) IBM Corporation and others 2000, 2012. All Rights Reserved.