mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
coverage: update coverage filters on package/class rename (IDEA-64799 )
This commit is contained in:
@@ -31,6 +31,8 @@ import com.intellij.openapi.options.SettingsEditorGroup;
|
||||
import com.intellij.openapi.util.InvalidDataException;
|
||||
import com.intellij.openapi.util.Key;
|
||||
import com.intellij.openapi.util.WriteExternalException;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.refactoring.listeners.RefactoringElementListener;
|
||||
import com.intellij.ui.LayeredIcon;
|
||||
import org.jdom.Element;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -58,6 +60,21 @@ public abstract class RunConfigurationExtension {
|
||||
public abstract void patchConfiguration(RunConfigurationBase runJavaConfiguration);
|
||||
public abstract void checkConfiguration(RunConfigurationBase runJavaConfiguration) throws RuntimeConfigurationException;
|
||||
|
||||
public RefactoringElementListener wrapElementListener(PsiElement element,
|
||||
RunConfigurationBase runJavaConfiguration,
|
||||
RefactoringElementListener listener) {
|
||||
return listener;
|
||||
}
|
||||
|
||||
public static RefactoringElementListener wrapRefactoringElementListener(PsiElement element,
|
||||
RunConfigurationBase runConfigurationBase,
|
||||
RefactoringElementListener listener) {
|
||||
for (RunConfigurationExtension extension : Extensions.getExtensions(EP_NAME)) {
|
||||
listener = extension.wrapElementListener(element, runConfigurationBase, listener);
|
||||
}
|
||||
return listener;
|
||||
}
|
||||
|
||||
public static void appendEditors(RunConfigurationBase configuration, SettingsEditorGroup group) {
|
||||
for (RunConfigurationExtension extension : Extensions.getExtensions(EP_NAME)) {
|
||||
final SettingsEditor editor = extension.createEditor(configuration);
|
||||
|
||||
+2
-1
@@ -103,8 +103,9 @@ public class ApplicationConfiguration extends ModuleBasedConfiguration<JavaRunCo
|
||||
}
|
||||
|
||||
public RefactoringElementListener getRefactoringElementListener(final PsiElement element) {
|
||||
return RefactoringListeners.
|
||||
final RefactoringElementListener listener = RefactoringListeners.
|
||||
getClassOrPackageListener(element, new RefactoringListeners.SingleClassConfigurationAccessor(this));
|
||||
return RunConfigurationExtension.wrapRefactoringElementListener(element, this, listener);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user