I have an int variable that contains several flags, for example:
int styles = ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED;
I can check for a flag
boolean expanded = (styles & ExpandableComposite.EXPANDED) != 0;
How can I remove the flag value from styles , i.e. dynamically remove ExpandableComposite.EXPANDED without knowing the exact flags that are set in styles ?
java eclipse
Robert Munteanu
source share