Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 239439 Details for
Bug 140941
[Viewers] JFace viewers cannot handle duplicate elements unless they have an element map
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Subclass with proposed change to CheckboxTreeViewer
DuplicateCheckboxTreeViewer.java (text/plain), 991 bytes, created by
Zachary DeLuca
on 2014-01-29 14:55:14 EST
(
hide
)
Description:
Subclass with proposed change to CheckboxTreeViewer
Filename:
MIME Type:
Creator:
Zachary DeLuca
Created:
2014-01-29 14:55:14 EST
Size:
991 bytes
patch
obsolete
>package net.latticetech.mits.swt; > >import org.eclipse.jface.viewers.CheckboxTreeViewer; >import org.eclipse.jface.viewers.ICheckStateProvider; >import org.eclipse.swt.widgets.Item; >import org.eclipse.swt.widgets.Tree; >import org.eclipse.swt.widgets.TreeItem; > >public class DuplicateCheckboxTreeViewer extends CheckboxTreeViewer { > > private ICheckStateProvider checkStateProvider; > > public DuplicateCheckboxTreeViewer(Tree tree) { > super(tree); > } > > @Override > public void setCheckStateProvider(ICheckStateProvider checkStateProvider) { > this.checkStateProvider = checkStateProvider; > super.setCheckStateProvider(checkStateProvider); > } > > @Override > protected void doUpdateItem(Item item, Object element) { > super.doUpdateItem(item, element); > > if (item instanceof TreeItem) { > ((TreeItem) item).setChecked(checkStateProvider.isChecked(element)); > ((TreeItem) item).setGrayed(checkStateProvider.isGrayed(element)); > } > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 140941
:
40880
| 239439