Revision 396346a2
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/group/grantedauthority/CdmAuthorityCompositeViewer.java | ||
---|---|---|
18 | 18 |
import org.eclipse.jface.viewers.ContentViewer; |
19 | 19 |
import org.eclipse.jface.viewers.ISelection; |
20 | 20 |
import org.eclipse.swt.SWT; |
21 |
import org.eclipse.swt.custom.ScrolledComposite; |
|
22 |
import org.eclipse.swt.layout.GridData; |
|
21 | 23 |
import org.eclipse.swt.widgets.Composite; |
22 | 24 |
import org.eclipse.swt.widgets.Control; |
23 | 25 |
import org.springframework.security.core.GrantedAuthority; |
... | ... | |
74 | 76 |
this.group = group; |
75 | 77 |
newCdmAuthorities = new ArrayList<GrantedAuthorityImpl>(); |
76 | 78 |
updateAuthorities(); |
77 |
this.cdmAuthorityComposite = new CdmAuthorityComposite(composite, SWT.NONE, this); |
|
79 |
|
|
80 |
ScrolledComposite sc = new ScrolledComposite(composite, SWT.H_SCROLL | SWT.V_SCROLL); |
|
81 |
this.cdmAuthorityComposite = new CdmAuthorityComposite(sc, SWT.H_SCROLL | SWT.V_SCROLL, this); |
|
82 |
sc.setContent(cdmAuthorityComposite); |
|
83 |
sc.setExpandHorizontal(true); |
|
84 |
sc.setExpandVertical(true); |
|
85 |
sc.setMinWidth(650); |
|
86 |
sc.setMinHeight(400); |
|
78 | 87 |
} |
79 | 88 |
|
80 | 89 |
/** |
Also available in: Unified diff
added possibility to show / hide uuid column
added scrolling to the viewer