public static EditorAccess via(JField field) { String path = field.getName(); Path pathAnnotation = field.getAnnotation(Editor.Path.class); if (pathAnnotation != null) { path = pathAnnotation.value(); } else if (path.endsWith(EDITOR_SUFFIX)) { path = path.substring(0, path.length() - EDITOR_SUFFIX.length()); } return new EditorAccess(path, field.getType().isClassOrInterface(), field.getName()); }
@Editor.Path(".") DataSetDefBackendCacheAttributesEditor backendCacheEditor();
@Path("name") LabelProvider<M> label();
@Path("name") LabelProvider<M> label();
@Editor.Path(".") DataSetDefClientCacheAttributesEditor clientCacheEditor();
@Editor.Path(".") DataSetDefColumnsEditor columnListEditor();
@Editor.Path(".") ColumnTypeEditor columnType();
@Editor.Path(".") DataSetDefColumnsEditor columnListEditor();
@Path("code") ModelKeyProvider<M> key();
@Path("id") ModelKeyProvider<M> key();
@Editor.Path(".") DataSetDefRefreshAttributesEditor refreshEditor(); }
@Editor.Path(".") DataSetDefClientCacheAttributesEditor clientCacheEditor();
@Editor.Path(".") DataSetDefBasicAttributesEditor basicAttributesEditor();
@Editor.Path(".") DataSetDefColumnsFilterEditor columnsAndFilterEditor();
@Editor.Path(".") DataSetDefBasicAttributesEditor basicAttributesEditor();
@Editor.Path(".") DataSetDefRefreshAttributesEditor refreshEditor(); }
@Editor.Path(".") ColumnTypeEditor columnType();
@Editor.Path(".") DataSetDefColumnsFilterEditor columnsAndFilterEditor();
public static EditorAccess via(JMethod method) { String path = method.getName(); Path pathAnnotation = method.getAnnotation(Editor.Path.class); if (pathAnnotation != null) { path = pathAnnotation.value(); } else if (path.endsWith(EDITOR_SUFFIX)) { path = path.substring(0, path.length() - EDITOR_SUFFIX.length()); } return new EditorAccess(path, method.getReturnType().isClassOrInterface(), method.getName() + "()"); }
public static EditorAccess via(JField field) { String path = field.getName(); Path pathAnnotation = field.getAnnotation(Editor.Path.class); if (pathAnnotation != null) { path = pathAnnotation.value(); } else if (path.endsWith(EDITOR_SUFFIX)) { path = path.substring(0, path.length() - EDITOR_SUFFIX.length()); } return new EditorAccess(path, field.getType().isClassOrInterface(), field.getName()); }