SWT LPEX
v3.0.5

com.ibm.lpex.samples
Class CopyLineAction

java.lang.Object
  extended bycom.ibm.lpex.samples.CopyLineAction
All Implemented Interfaces:
LpexAction

public class CopyLineAction
extends Object
implements LpexAction

Sample action copyLine - copy selection / current line to clipboard. This action is similar to the copy default editor action, but it will copy the current element to the clipboard if there is no selection in the current view.

Here is the CopyLineAction source code.

To run this sample:

See Also:
All the samples

Constructor Summary
CopyLineAction()
           
 
Method Summary
 boolean available(LpexView lpexView)
          Returns the availability of this action.
 void doAction(LpexView lpexView)
          Runs the action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyLineAction

public CopyLineAction()
Method Detail

doAction

public void doAction(LpexView lpexView)
Runs the action. Copies selection / current line to the clipboard.

Specified by:
doAction in interface LpexAction
Parameters:
lpexView - the document view in which the action is issued

available

public boolean available(LpexView lpexView)
Returns the availability of this action. This action can run whenever there are visible elements in the view.

Specified by:
available in interface LpexAction
Parameters:
lpexView - the document view for which the action availability is queried

SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.