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 46809 Details for
Bug 151819
[Viewers] ContentProvider's getElements is not called (on specific Inputs)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
example code
tableviewer.txt (text/plain), 1.34 KB, created by
Tim München
on 2006-07-26 07:29:55 EDT
(
hide
)
Description:
example code
Filename:
MIME Type:
Creator:
Tim München
Created:
2006-07-26 07:29:55 EDT
Size:
1.34 KB
patch
obsolete
> >... > >class BestimmungenContentProvider implements IStructuredContentProvider { > > public Object[] getElements(Object inputElement) { > > System.out.println("getElements() called!"); > > return new Object[0]; > } > public void dispose() { > } > public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { > } >} > > >... > >tableviewer_Bestimmungen = new TableViewer(detailListenFolder, SWT.BORDER); >table_Bestimmungen = tableviewer_Bestimmungen.getTable(); >table_Bestimmungen.setHeaderVisible(true); > >spalteNoetigBis = new TableColumn(table_Bestimmungen, SWT.NONE); >spalteNoetigBis.setWidth(120); >spalteNoetigBis.setText("Nötig bis"); > >spalteNoetigFuer = new TableColumn(table_Bestimmungen, SWT.NONE); >spalteNoetigFuer.setWidth(120); >spalteNoetigFuer.setText("Nötig für"); > >tableviewer_Bestimmungen.setContentProvider(new BestimmungenContentProvider()); >tableviewer_Bestimmungen.setLabelProvider(new BestimmungenLabelProvider()); > >... >... > >TableItem [] ti = table_Bestellpositionen.getSelection(); > >if( ti.length==1 && !(ti[0].getText(1).contains("neu")) ) { > BestellPosition p = (BestellPosition)ti[0].getData(); > > ... > > // tableviewer_Bestimmungen.setInput(p); // getElements() NOT called at the contentprovider AT ALL > > ArrayList al = new ArrayList(); > al.add(p); > > tableviewer_Bestimmungen.setInput(al); // works as expected. > >...
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 151819
: 46809