mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Postfix templates: allow to provide helpId for template editors
This commit is contained in:
+5
@@ -133,6 +133,11 @@ public class JavaPostfixTemplateEditor implements PostfixTemplateEditor {
|
||||
return myPanel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getHelpId() {
|
||||
return "reference.custom.postfix.templates";
|
||||
}
|
||||
|
||||
private static Document createDocument(@Nullable Project project) {
|
||||
if (project == null) {
|
||||
return EditorFactory.getInstance().createDocument("");
|
||||
|
||||
+6
@@ -62,4 +62,10 @@ public class PostfixEditTemplateDialog extends DialogWrapper {
|
||||
.addComponentFillVertically(myEditor.getComponent(), 0)
|
||||
.getPanel();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
protected String getHelpId() {
|
||||
return myEditor.getHelpId();
|
||||
}
|
||||
}
|
||||
|
||||
+4
@@ -19,4 +19,8 @@ public interface PostfixTemplateEditor extends Disposable {
|
||||
|
||||
@NotNull
|
||||
JComponent getComponent();
|
||||
|
||||
default String getHelpId() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user