mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UnscrambleSupport: API compatibility restored
This commit is contained in:
@@ -25,12 +25,24 @@ import javax.swing.*;
|
||||
public interface UnscrambleSupport<T extends JComponent> {
|
||||
ExtensionPointName<UnscrambleSupport> EP_NAME = ExtensionPointName.create("com.intellij.unscrambleSupport");
|
||||
|
||||
@Nullable
|
||||
default String unscramble(@NotNull Project project, @NotNull String text, @NotNull String logName, @Nullable T settings) {
|
||||
return unscramble(project, text, logName);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
String getPresentableName();
|
||||
|
||||
@Nullable
|
||||
T createSettingsComponent();
|
||||
default T createSettingsComponent() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated override {@link #unscramble(Project, String, String, JComponent)} instead
|
||||
*/
|
||||
@Nullable
|
||||
String unscramble(@NotNull Project project, @NotNull String text, @NotNull String logName, @Nullable T settings);
|
||||
default String unscramble(Project project, String text, String logName) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user