Skip to content

added Get function to retrieve the list#1

Merged
ColinTree merged 3 commits intoOpenSourceAIX:masterfrom
10MINT:master
Jun 24, 2018
Merged

added Get function to retrieve the list#1
ColinTree merged 3 commits intoOpenSourceAIX:masterfrom
10MINT:master

Conversation

@10MINT
Copy link
Contributor

@10MINT 10MINT commented Jun 24, 2018

I really appreciate your work and that you make it open source. I added the functionality to retrieve the list that is currently set

@10MINT
Copy link
Contributor Author

10MINT commented Jun 24, 2018

I also added get lastLongClickedElement functionality

Copy link
Member

@ColinTree ColinTree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. Please look at what I commented on.

//returns the list of the listview
@SimpleFunction
public YailList Get() {
ArrayList stringRepresentation = new ArrayList();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to use ArrayList<?> instead of using raw type directly.

public YailList Get() {
ArrayList stringRepresentation = new ArrayList();
for (Element elem : elementList) {
stringRepresentation.add(YailList.YailListElementToString(elem.toYailList()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the elements are added as string here? I would prefer to make it YailList.

@ColinTree
Copy link
Member

@10MINT
This is what happens when it returns as a string list.
image

@10MINT
Copy link
Contributor Author

10MINT commented Jun 24, 2018

Is this ok, or should I change it to ArrayList<?>?

@ColinTree ColinTree merged commit 2c48246 into OpenSourceAIX:master Jun 24, 2018
@ColinTree
Copy link
Member

Merged. Thanks for your work 😉

@10MINT
Copy link
Contributor Author

10MINT commented Sep 23, 2018

Bugfix in 412832b because Get() returns the full list, including the hidden elements. Merge the changes if you do not want this behaviour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants