Search in sources :

Example 1 with RemoteRunProfile

use of com.intellij.execution.configurations.RemoteRunProfile in project intellij-community by JetBrains.

the class XDebuggerTree method isUnderRemoteDebug.

public boolean isUnderRemoteDebug() {
    DataContext context = DataManager.getInstance().getDataContext(this);
    ExecutionEnvironment env = LangDataKeys.EXECUTION_ENVIRONMENT.getData(context);
    if (env != null && env.getRunProfile() instanceof RemoteRunProfile) {
        return true;
    }
    return false;
}
Also used : ExecutionEnvironment(com.intellij.execution.runners.ExecutionEnvironment) RemoteRunProfile(com.intellij.execution.configurations.RemoteRunProfile)

Aggregations

RemoteRunProfile (com.intellij.execution.configurations.RemoteRunProfile)1 ExecutionEnvironment (com.intellij.execution.runners.ExecutionEnvironment)1