|
SWT LPEX v3.0.4 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.lpex.core.LpexViewAdapter
com.ibm.lpex.samples.MouseReselect
Sample class to make new drags of mouse button 1 start new selections.
LPEX non-stream selections are by default extended on mouse drags in the same view. They must be explicitly cleared (with, for example, Alt+U) before marking a new block. Installing this class changes the default behavior of a view such that a new mouse drag action will always start a new selection.
Here is the MouseReselect source code.
A user profile (such as TestUserProfile) can install this feature
in a document view by calling:
MouseReselect.install(lpexView);
See also BlockNewMarkToMouseAction as an example of an editor
action that installs this feature when it is run for the first time.
All the samples| Method Summary | |
|---|---|
void |
disposed(LpexView lpexView)
View listener - the view is being disposed. |
static void |
install(LpexView lpexView)
Installs mouse reselection in the given document view. |
void |
mouseDoubleClick(MouseEvent e)
Mouse listener - button double click. |
void |
mouseDown(MouseEvent e)
Mouse listener - button pressed. |
void |
mouseMove(MouseEvent e)
Mouse move listener. |
void |
mouseUp(MouseEvent e)
Mouse listener - button released. |
void |
shown(LpexView lpexView)
View listener - the view has been refreshed. |
void |
widgetDisposed(DisposeEvent e)
Text window dispose listener - the window is being disposed. |
| Methods inherited from class com.ibm.lpex.core.LpexViewAdapter |
|---|
readonly, renamed, renaming, saved, saving, showing, updateProfile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void install(LpexView lpexView)
public void shown(LpexView lpexView)
shown in interface LpexViewListenershown in class LpexViewAdapterpublic void disposed(LpexView lpexView)
disposed in interface LpexViewListenerdisposed in class LpexViewAdapterpublic void widgetDisposed(DisposeEvent e)
widgetDisposed in interface DisposeListenerpublic void mouseDoubleClick(MouseEvent e)
mouseDoubleClick in interface MouseListenerpublic void mouseUp(MouseEvent e)
mouseUp in interface MouseListenerpublic void mouseDown(MouseEvent e)
mouseDown in interface MouseListenerpublic void mouseMove(MouseEvent e)
mouseMove in interface MouseMoveListener
|
SWT LPEX v3.0.4 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||