Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.ui.validators
Class ValidatorRemoteSelection

java.lang.Object
  extended by 
org.eclipse.rse.ui.validators.ValidatorRemoteSelection
All Implemented Interfaces:
IValidatorRemoteSelection

public abstract class ValidatorRemoteSelection
extends Object
implements IValidatorRemoteSelection

On remote selection dialogs, you can pass an instance of this class 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.

This class must be subclassed.Alternatively you can just implement IValidatorRemoteSelection


Constructor Summary
ValidatorRemoteSelection ()
           
 
Method Summary
abstract   SystemMessage isValid ( IHost selectedConnection, Object[] selectedObjects, ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
          The user has selected a remote object.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorRemoteSelection

public ValidatorRemoteSelection()
Method Detail

isValid

public abstract 
SystemMessage isValid(
IHost selectedConnection,
                                      
Object[] selectedObjects,
                                      
ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
The user has selected a remote object. 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.

Specified by:
isValid in interface IValidatorRemoteSelection

RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire