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
Interface IRemoteSelectionAddListener


public interface IRemoteSelectionAddListener

This interface is used by the remote object selection dialogs when Add mode is enabled.

This interface allows you to listen generically for selection events on any remote object, and be called when the user selects something or presses. You can use instanceof to decide what was selected.

If you call the enableAddButton method you must pass an object that implements this interface. The dialog will call you back when the user presses the Add button, so you can take appropriate action.


Method Summary
  Object addButtonPressed ( IHost selectedConnection, Object[] selectedObjects)
          The user has pressed the Add button.
  Object okToEnableAddButton ( IHost selectedConnection, Object[] selectedObjects)
          The user has selected a remote object.
 

Method Detail

okToEnableAddButton

Object okToEnableAddButton(
IHost selectedConnection,
                           
Object[] selectedObjects)
The user has selected a remote object. Is this object valid to be added? If so, return null. If not, return a string to display on the message line indicating why it is not valid, such as it already has been added.

Parameters:
selectedConnection - The connection the object was selected in
selectedObjects - Will be a list of objects such as AS400Library or IRemoteFile. They are resolved so that the remote adapter is not required.
Returns:
A String or SystemMessage object that will be displayed if the action fails, null if the action was successfull

addButtonPressed

Object addButtonPressed(
IHost selectedConnection,
                        
Object[] selectedObjects)
The user has pressed the Add button. Do something appropriate with the request. If this action fails for some reason, or you wish to display a completion message, return message text that will be displayed in the dialog's message line. Else, return null.

Parameters:
selectedConnection - The connection the object was selected in
selectedObjects - Will be a list of objects such as AS400Library or IRemoteFile. They are resolved so that the remote adapter is not required.
Returns:
A String or SystemMessage object that will be displayed if the action fails, null if the action was successfull

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