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;
}
Aggregations