IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.rcp.workingarea.reparent
Class ReparentThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.btt.rcp.workingarea.reparent.ReparentThread
All Implemented Interfaces:
java.lang.Runnable

public class ReparentThread
extends java.lang.Thread

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

getReparentThread

public static ReparentThread getReparentThread()
Get reparent thread instance

Returns:

addWindow

public 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.

Parameters:
windowClass -
windowTitleRegex -

removeWindow

public void removeWindow(java.lang.String windowClass)
Remove the listener from the windows whose window class name is
  • windowClass
  • .

    Parameters:
    windowClass -

    run

    public void run()
    Specified by:
    run in interface java.lang.Runnable
    Overrides:
    run in class java.lang.Thread

    IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

    (c) Copyright IBM Corporation 1998, 2009