|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.ibm.btt.rcp.workingarea.reparent.ReparentThread
public class ReparentThread
A Reparenter provides reparenting function for a series of Win32 windows. It
will create a view in workingarea and reparent the window in it. The windows
to be reparented are definded by
addWindow(String windowClass, String windowTitleRegex)
.
The example to use it is below and you can add the code in class ApplicationWorkbenchWindowAdvisor:
public void postWindowOpen() {
super.postWindowOpen();
ReparentThread ReparentThread = ReparentThread.getReparentThread();
ReparentThread.addWindow("rctrl_renwnd32", "ˆ.*Message \\(HTML\\).*$");
//This is add the outlook open new message window;
ReparentThread.start();
}
public boolean preWindowShellClose() {
ReparentThread.getReparentThread().stop();
return super.preWindowShellClose();
}
Other windowClass names:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
---|---|
void |
addWindow(java.lang.String windowClass,
java.lang.String windowTitleRegex)
Add the listener to the windows identified by a window class name and a window title which matches the given regular expression. |
static ReparentThread |
getReparentThread()
Get reparent thread instance |
void |
removeWindow(java.lang.String windowClass)
Remove the listener from the windows whose window class name is windowClass. |
void |
run()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static ReparentThread getReparentThread()
public void addWindow(java.lang.String windowClass, java.lang.String windowTitleRegex)
windowClass
- windowTitleRegex
- public void removeWindow(java.lang.String windowClass)
windowClass
- public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |