eclipse / nebula

Nebula Project
https://eclipse.org/nebula
Eclipse Public License 2.0
84 stars 98 forks source link

MultiChoice<T> should support databindings #522

Closed stereotron closed 10 months ago

stereotron commented 1 year ago

In order to bind org.eclipse.nebula.widgets.opal.multichoice.MultiChoice<T> with Eclipse Databindings the methods

A temporary solution without breaking the API:

    public void setSelected(Set<T> selection) {
        setSelection(selection);
    }

    public Set<T> getSelected() {
        return this.selection;
    }

Getting access to the Text and the Button of MultiChoice would also be handy but thats not so important.

wimjongman commented 1 year ago

Please make a patch that does not break the API.

wimjongman commented 11 months ago

@stereotron are you going to supply this patch?

stereotron commented 11 months ago

@stereotron are you going to supply this patch?

I'm sorry, I totally forgot about this. Here is the patch: nebula-multichoice-databinding.patch

It has getter and setter for the selection and additionally for the text control and the arrow button. This makes these controls available for customization.

wimjongman commented 10 months ago

Looks greate @stereotron can you make a Pull Request?

stereotron commented 10 months ago

It seems I have no permission to commit. Eclipse opens up a Login dialog which does not accept my github login credentials. Could you please commit this patch? This week I have no time to learn and use the workflow of this project. grafik

laeubi commented 10 months ago

@stereotron in the eclipse UI you press the "fork" button, this will give you a private copy of this repository.

Then you cechkout your repository (maybe choose a different folder) and can push your changes there, then you will be given a link to pen a PR

stereotron commented 10 months ago

The process was a bit adventurous, but you should now have that pull request.

wimjongman commented 10 months ago

I do, thanks @stereotron. Much appreciated. I will release it as soon as the build comes back normally.