public class HotSwapUIImpl extends HotSwapUI
Modifier and Type | Class and Description |
---|---|
static class |
HotSwapUIImpl.HotSwapDebuggerManagerListener |
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.Boolean> |
SKIP_HOT_SWAP_KEY
There are cases when the hotswap of the changed classes is not needed.
|
Constructor and Description |
---|
HotSwapUIImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(HotSwapVetoableListener listener) |
static boolean |
canHotSwap(DebuggerSession debuggerSession) |
void |
compileAndReload(DebuggerSession session,
VirtualFile... files) |
void |
dontAskHotswapAfterThisCompilation() |
void |
reloadChangedClasses(DebuggerSession session,
boolean compileBeforeHotswap) |
void |
reloadChangedClasses(DebuggerSession session,
boolean compileBeforeHotswap,
HotSwapStatusListener callback) |
void |
removeListener(HotSwapVetoableListener listener) |
getInstance
public static final Key<java.lang.Boolean> SKIP_HOT_SWAP_KEY
The flag can be used to skip hotswap after the ProjectTaskManager run session finish.
To apply the flag one should add it to ProjectTaskContext
user data.
public HotSwapUIImpl(Project project)
public void addListener(HotSwapVetoableListener listener)
addListener
in class HotSwapUI
public void removeListener(HotSwapVetoableListener listener)
removeListener
in class HotSwapUI
public void reloadChangedClasses(DebuggerSession session, boolean compileBeforeHotswap)
reloadChangedClasses
in class HotSwapUI
public void reloadChangedClasses(DebuggerSession session, boolean compileBeforeHotswap, HotSwapStatusListener callback)
reloadChangedClasses
in class HotSwapUI
public void compileAndReload(DebuggerSession session, VirtualFile... files)
compileAndReload
in class HotSwapUI
public void dontAskHotswapAfterThisCompilation()
public static boolean canHotSwap(DebuggerSession debuggerSession)