|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.lpex.samples.CopyLineAction
public class CopyLineAction
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:
set actionClass.copyLine com.ibm.lpex.samples.CopyLineAction
action copyLineor associate it with a key (here, Ctrl+C in the text and prefix areas):
set keyAction.c-c.t.p copyLine
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 |
---|
public CopyLineAction()
Method Detail |
---|
public void doAction(LpexView lpexView)
doAction
in interface LpexAction
lpexView
- the document view in which the action is issuedpublic boolean available(LpexView lpexView)
available
in interface LpexAction
lpexView
- the document view for which the action availability is
queried
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |