|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.rse.ui.actions.SystemBaseAction
org.eclipse.rse.ui.actions.SystemCopyToClipboardAction
public class SystemCopyToClipboardAction
Copy selected objects to clipboard action.
Field Summary |
---|
Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseAction |
---|
allowOnMultipleSelection, arrowCursor, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor |
Fields inherited from interface org.eclipse.jface.action.IAction |
---|
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
Constructor Summary | |
---|---|
SystemCopyToClipboardAction(Shell shell,
Clipboard clipboard)
Constructor |
Method Summary | |
---|---|
protected String |
getTextTransferAppend(Object obj,
ISystemViewElementAdapter adapter)
Returns the string to append for the selected object for text transfer. |
protected String |
getTextTransferPrepend(Object obj,
ISystemViewElementAdapter adapter)
Returns the string to prepend for the selected object for text transfer. |
SystemMessage |
isValid(IHost selectedConnection,
Object[] selectedObjects,
ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
The user has selected a remote object. |
void |
run()
This is the method called when the user selects this action. |
boolean |
updateSelection(IStructuredSelection selection)
We override from parent to do unique checking... |
Methods inherited from class org.eclipse.jface.action.AbstractAction |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.action.IAction |
---|
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
Constructor Detail |
---|
public SystemCopyToClipboardAction(Shell shell, Clipboard clipboard)
Method Detail |
---|
public void run()
SystemBaseAction
run
in interface IAction
run
in class SystemBaseAction
Action.run()
protected String getTextTransferPrepend(Object obj, ISystemViewElementAdapter adapter)
obj
- the selected object.adapter
- the adapter of the selected object.
protected String getTextTransferAppend(Object obj, ISystemViewElementAdapter adapter)
obj
- the selected object.adapter
- the adapter of the selected object.
public SystemMessage isValid(IHost selectedConnection, Object[] selectedObjects, ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
This is overridden in SystemMoveRemoteFileAction
isValid
in interface IValidatorRemoteSelection
public boolean updateSelection(IStructuredSelection selection)
We simply ensure every selected object has a system view element adapter.
updateSelection
in class SystemBaseAction
SystemBaseAction.updateSelection(IStructuredSelection)
|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |