Skip to content

Commit 6b33de0

Browse files
change visibility of driver processor methods for extending it (#19)
* change visibility of driver processor methods for extending it * reverted gitignore changes
1 parent 72a614f commit 6b33de0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gwt-editor-processor/src/main/java/org/gwtproject/editor/processor/DriverProcessor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
120120
return true;
121121
}
122122

123-
private void createMessage(Diagnostic.Kind kind, String message) {
123+
protected void createMessage(Diagnostic.Kind kind, String message) {
124124
StringWriter sw = new StringWriter();
125125
PrintWriter pw = new PrintWriter(sw);
126126
pw.println(message);
@@ -142,7 +142,7 @@ protected ClassName getEditorDelegateType() {
142142
return ClassName.get(SimpleBeanEditorDelegate.class);
143143
}
144144

145-
private void generate(TypeElement interfaceToImplement, EditorModel rootEditorModel) {
145+
protected void generate(TypeElement interfaceToImplement, EditorModel rootEditorModel) {
146146
// start driver
147147
String pkgName = this.elements.getPackageOf(interfaceToImplement).getQualifiedName().toString();
148148
String typeName = createNameFromEnclosedTypes(interfaceToImplement, "_Impl");
@@ -233,13 +233,13 @@ private void generate(TypeElement interfaceToImplement, EditorModel rootEditorMo
233233
* Joins the name of the type with any enclosing types, with "_" as the delimeter, and appends an
234234
* optional suffix.
235235
*/
236-
private String createNameFromEnclosedTypes(TypeElement interfaceToImplement, String suffix) {
236+
protected String createNameFromEnclosedTypes(TypeElement interfaceToImplement, String suffix) {
237237
StringJoiner joiner = new StringJoiner("_", "", suffix == null ? "" : suffix);
238238
ClassName.get(interfaceToImplement).simpleNames().forEach(joiner::add);
239239
return joiner.toString();
240240
}
241241

242-
private ClassName getEditorDelegate(EditorModel editorModel, EditorProperty data) {
242+
protected ClassName getEditorDelegate(EditorModel editorModel, EditorProperty data) {
243243
String delegateSimpleName =
244244
escapedMaybeParameterizedBinaryName(data.getEditorType())
245245
+ "_"

0 commit comments

Comments
 (0)