-
Notifications
You must be signed in to change notification settings - Fork 19
Add entry-tree parameter to collapse children #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add entry-tree parameter to collapse children #196
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. I added some review comments
/** | ||
* @return The expand level. | ||
*/ | ||
int getExpandLevel(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to getAutoExpandLevel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -34,4 +34,9 @@ public interface TreeEntryModel { | |||
*/ | |||
@NonNull | |||
List<@NonNull TreeColumnHeader> getHeaders(); | |||
|
|||
/** | |||
* @return The expand level. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/**
* @return The auto-expand level
*/
|
||
/** | ||
* @return The expand level. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add before method the following schema annotation:
@Schema(description = "Sets the auto-expand level to be used for the input of the tree. The "
+ "value 0 means that there is no auto-expand; 1 means that top-level "
+ "elements are expanded, but not their children; 2 means that top-level "
+ "elements are expanded, and their children, but not grand-children; and so "
+ "on. The value -1 means that all subtrees should be expanded.")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -114,4 +114,12 @@ public TreeModelWrapper(TmfTreeModel<@NonNull ITmfTreeDataModel> model) { | |||
return fModel.getEntries(); | |||
} | |||
|
|||
/** | |||
* Wrapper to the {@link TmfTreeModel#getExpandLevel()} method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update link regarding getAutoExpandLevel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* | ||
* @return Indicates till which level of the tree we should expand the nodes | ||
*/ | ||
public int getExpandLevel() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getAutoExpandLevel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
I'm going to update this PR with my suggestions to help with this contribution. |
Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Signed-off-by: Hriday Panchasara hriday.panchasara@ericsson.com Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
54366b0
to
cc951e6
Compare
e99224c
into
eclipse-tracecompass-incubator:master
What it does
swagger: Add auto-expand level to TreeEntryModel
server: Add serialization of auto-expand level for tree models
tmf: Add auto-expand level in TmfTreeModel
How to test
Run updated unit tests.
Follow-ups
Related incubator PR.
#196
Review checklist
Signed-off-by: Hriday Panchasara hriday.panchasara@ericsson.com
Signed-off-by: Bernd Hufmann bernd.hufmann@ericsson.com