[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] javaw crash when call tableViewer.setInput

Code:
tableViewer.setContentProvider(new SongContentProvider());
tableViewer.setLabelProvider(new SongLabelProvider()); ...
if(songList.isSet())
    tableViewer.setInput(songList);

log:
org.eclipse.core.internal.runtime.AssertionFailedException: assertion
failed: The application has not been initialized.
	at
org.eclipse.core.internal.runtime.Assert.isTrue(Assert.java:101)
	at
org.eclipse.core.internal.runtime.InternalPlatform.assertInitialized(Int
ernalPlatform.java:191)
	at
org.eclipse.core.internal.runtime.InternalPlatform.getPluginRegistry(Int
ernalPlatform.java:410)
	at
org.eclipse.core.internal.runtime.InternalPlatform.getRuntimePlugin(Inte
rnalPlatform.java:431)
	at
org.eclipse.core.internal.runtime.InternalPlatform.handleException(Inter
nalPlatform.java:442)
	at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.
java:1008)
	at org.eclipse.core.runtime.Platform.run(Platform.java:413)
	at
org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.j
ava:1271)
	at
org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:4
94)
	at
org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:4
31)
	at
org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:8
61)
	at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(Structure
dViewer.java:801)
	at
org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java
:859)
	at
org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java
:821)
	at
org.eclipse.jface.viewers.TableViewer.inputChanged(TableViewer.java:398)
	at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:238)
	at
org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.jav
a:991)
	at main.mainWindow.workerExecute(mainWindow.java:924)
	at main.mainWindow.workerUpdate(mainWindow.java:902)
	at main.mainWindow.notifySelectedDirectory(mainWindow.java:656)
	at main.mainWindow$4.widgetSelected(mainWindow.java:454)
	at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
	at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
	at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
	at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
	at main.mainWindow.main(mainWindow.java:132)