Bug 85536 - [Presentations] DefaultTabFolder should ignore invalid tab position constants
Summary: [Presentations] DefaultTabFolder should ignore invalid tab position constants
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: Macintosh All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2005-02-16 14:48 EST by Kim Horne CLA
Modified: 2019-09-06 16:03 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Horne CLA 2005-02-16 14:48:55 EST
I20050215-2300

I can't open new workbench windows on OS X.  When I do, it seems as if nothing happens.  A new 
"Eclipse Platform" entry is created in the Window menu and the following stacktrace is in the log.

java.lang.IllegalArgumentException: Argument not valid
	at org.eclipse.swt.SWT.error(SWT.java:2823)
	at org.eclipse.swt.SWT.error(SWT.java:2762)
	at org.eclipse.swt.SWT.error(SWT.java:2733)
	at org.eclipse.swt.custom.CTabFolder.setTabPosition(CTabFolder.java:3426)
	at org.eclipse.ui.internal.presentations.PaneFolder.setTabPosition(PaneFolder.java:573)
	at 
org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.setTabPosition(DefaultTabFol
der.java:379)
	at 
org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabPositionListener.handleValue(Defaul
tTabPositionListener.java:33)
	at org.eclipse.ui.internal.preferences.AbstractIntegerListener.update(AbstractIntegerListener.java:
43)
	at 
org.eclipse.ui.internal.preferences.AbstractPropertyListener.listenerAttached(AbstractPropertyListener.ja
va:29)
	at org.eclipse.ui.internal.preferences.PropertyListenerList.add(PropertyListenerList.java:146)
	at org.eclipse.ui.internal.preferences.PropertyMapAdapter.addListener(PropertyMapAdapter.java:
83)
	at org.eclipse.ui.internal.preferences.AbstractIntegerListener.attach(AbstractIntegerListener.java:
35)
	at 
org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabPositionListener.<init>(DefaultTabP
ositionListener.java:26)
	at 
org.eclipse.ui.presentations.WorkbenchPresentationFactory.createEditorPresentation(WorkbenchPresent
ationFactory.java:76)
	at 
org.eclipse.ui.internal.presentations.PresentationFactoryUtil.createPresentation(PresentationFactoryUtil.j
ava:42)
	at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:470)
	at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:485)
	at org.eclipse.ui.internal.EditorSashContainer.createControl(EditorSashContainer.java:421)
	at org.eclipse.ui.internal.EditorAreaHelper.<init>(EditorAreaHelper.java:52)
	at org.eclipse.ui.internal.WorkbenchPage.init(WorkbenchPage.java:2030)
	at org.eclipse.ui.internal.WorkbenchPage.<init>(WorkbenchPage.java:518)
	at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:569)
	at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Workbench.java:587)
	at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:577)
	at org.eclipse.ui.internal.Workbench$15.run(Workbench.java:1365)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at org.eclipse.ui.internal.Workbench.openWorkbenchWindow(Workbench.java:1362)
	at org.eclipse.ui.actions.OpenInNewWindowAction.run(OpenInNewWindowAction.java:103)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:1003)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:
557)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:507)
	at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:
421)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1237)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1261)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1246)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1094)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2903)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2571)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1612)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
	at org.eclipse.core.launcher.Main.run(Main.java:887)
	at org.eclipse.core.launcher.Main.main(Main.java:871)
Comment 1 Kim Horne CLA 2005-02-16 14:52:26 EST
On startup te windows DO appear.
Comment 2 Kim Horne CLA 2005-02-16 14:55:58 EST
(By that I mean that the windows Ihad tried to open before all appear and that I can open new windows 
as well)
Comment 3 Stefan Xenos CLA 2005-02-16 15:34:51 EST
This would only happen if the preference store somehow got grunged.

The only valid values for the tab position preference are SWT.TOP and
SWT.BOTTOM. The preference must have somehow got set to something else, and
DefaultTabFolder passed it directly to SWT, which had a fit.

If you can reproduce whatever bug caused your preference store to get hosed,
please add a note here.
Comment 4 Paul Webster CLA 2006-09-28 11:00:45 EDT
There are currently no plans to work on this feature.

PW
Comment 5 Denis Roy CLA 2007-06-22 09:32:47 EDT
Changes requested on bug 193523
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:03:48 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.