IDEA-20688 XSLT Run/Debug configuration allows to Debug

This commit is contained in:
Vassiliy Kudryashov
2012-09-20 17:27:21 +04:00
parent 4c09eddfee
commit 0d2120c8ea
3 changed files with 9 additions and 2 deletions
@@ -24,6 +24,10 @@ import org.jetbrains.annotations.Nullable;
/**
* @see com.intellij.execution.RunManager
*
* If debugger is provided by plugin, RunConfiguration should also implement RunConfigurationWithSuppressedDefaultDebugAction
* Otherwise (in case of disabled plugin) debug action may be enabled in UI but with no reaction
* @see RunConfigurationWithSuppressedDefaultDebugAction
*/
public interface RunConfiguration extends RunProfile, JDOMExternalizable, Cloneable {
ConfigurationFactory getFactory();
@@ -13,7 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.debugger.impl;
package com.intellij.execution.configurations;
// This interface for RunConfiguration indicates specific debugger (e.g. provided by plugin)
// and RunConfiguration won't be started with default runner (UI will show disabled button)
public interface RunConfigurationWithSuppressedDefaultDebugAction {
}
@@ -59,7 +59,7 @@ import java.io.File;
import java.util.ArrayList;
import java.util.List;
public final class XsltRunConfiguration extends RunConfigurationBase implements LocatableConfiguration, ModuleRunConfiguration {
public final class XsltRunConfiguration extends RunConfigurationBase implements LocatableConfiguration, ModuleRunConfiguration, RunConfigurationWithSuppressedDefaultDebugAction {
private static final String NAME = "XSLT Configuration";
private static final String STRICT_FILE_PATH_EXPR = "(file\\://?(?:/?\\p{Alpha}\\:)?(?:/\\p{Alpha}\\:)?[^:]+)";