define api for optional assistance functionalities
This commit is contained in:
parent
f5384f30d9
commit
0d81fc9b16
@ -0,0 +1,17 @@
|
||||
package de.marhali.easyi18n.assistance;
|
||||
|
||||
import com.intellij.openapi.project.Project;
|
||||
|
||||
import de.marhali.easyi18n.settings.ProjectSettingsService;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Used to define editor hooks as assistable.
|
||||
* @author marhali
|
||||
*/
|
||||
public interface OptionalAssistance {
|
||||
default boolean isAssistance(@NotNull Project project) {
|
||||
return ProjectSettingsService.get(project).getState().isAssistance();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user