Project: aptanastudio
Issue APSTUD-7392: InvalidThreadAccess exception when starting up aptana studio (getting color in git from non-ui thread with no theme ends up setting current theme and trying to update tree).
The exception below happened when starting up Eclipse in a linux install. {code} !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.equinox.preferences". !STACK 0 org.eclipse.swt.SWTException: Invalid thread access org.eclipse.swt.SWT.error(SWT.java:4282) org.eclipse.swt.SWT.error(SWT.java:4197) org.eclipse.swt.SWT.error(SWT.java:4168) org.eclipse.swt.widgets.Widget.error(Widget.java:466) org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:404) org.eclipse.swt.widgets.Tree.getSelection(Tree.java:1714) org.eclipse.jface.viewers.TreeViewer.getSelection(TreeViewer.java:256) org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:344) org.eclipse.jface.viewers.AbstractTreeViewer.setSelectionToWidget(AbstractTreeViewer.java:2521) org.eclipse.ui.navigator.CommonViewer.setSelectionToWidget(CommonViewer.java:446) org.eclipse.jface.viewers.StructuredViewer.setSelectionToWidget(StructuredViewer.java:1767) org.eclipse.jface.viewers.AbstractTreeViewer.setSelectionToWidget(AbstractTreeViewer.java:2947) org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1450) org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:403) org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404) org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1533) org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:548) org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:353) org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1490) com.aptana.theme.internal.TreeThemer.applyTheme(TreeThemer.java:76) com.aptana.theme.internal.ControlThemer$2.preferenceChange(ControlThemer.java:274) org.eclipse.core.internal.preferences.EclipsePreferences$2.run(EclipsePreferences.java:754) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.preferences.EclipsePreferences.firePreferenceEvent(EclipsePreferences.java:757) org.eclipse.core.internal.preferences.EclipsePreferences.putLong(EclipsePreferences.java:854) com.aptana.theme.internal.ThemeManager.notifyThemeChangeListeners(ThemeManager.java:347) com.aptana.theme.internal.ThemeManager.setCurrentTheme(ThemeManager.java:221) com.aptana.theme.internal.ThemeManager.getCurrentTheme(ThemeManager.java:194) com.aptana.git.ui.internal.GitColors.getActiveTheme(GitColors.java:111) com.aptana.git.ui.internal.GitColors.greenBG(GitColors.java:60) com.aptana.git.ui.GitUIPlugin$QuickDiffColorer.forceColors(GitUIPlugin.java:282) com.aptana.git.ui.GitUIPlugin$1.run(GitUIPlugin.java:96) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}
Story points: 8