Search in sources :

Example 1 with IJavaHotCodeReplaceListener

use of org.eclipse.jdt.debug.core.IJavaHotCodeReplaceListener in project jbosstools-openshift by jbosstools.

the class OpenShiftLaunchController method overrideHotcodeReplace.

protected boolean overrideHotcodeReplace(IServer server, ILaunch launch) throws CoreException {
    IJavaHotCodeReplaceListener l = getHotCodeReplaceListener(server, launch);
    IDebugTarget[] targets = launch.getDebugTargets();
    if (targets != null && l != null) {
        for (int i = 0; i < targets.length; i++) {
            if (targets[i] instanceof IJavaDebugTarget) {
                ((IJavaDebugTarget) targets[i]).addHotCodeReplaceListener(l);
            }
        }
    }
    return true;
}
Also used : IJavaDebugTarget(org.eclipse.jdt.debug.core.IJavaDebugTarget) IDebugTarget(org.eclipse.debug.core.model.IDebugTarget) IJavaHotCodeReplaceListener(org.eclipse.jdt.debug.core.IJavaHotCodeReplaceListener)

Aggregations

IDebugTarget (org.eclipse.debug.core.model.IDebugTarget)1 IJavaDebugTarget (org.eclipse.jdt.debug.core.IJavaDebugTarget)1 IJavaHotCodeReplaceListener (org.eclipse.jdt.debug.core.IJavaHotCodeReplaceListener)1