| Summary: | [WorkingSets] Index out of Bounds exception when setting empty workingsets array in WorkingSetConfigurationBlock | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Kris De Volder <kdevolder> |
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | kdevolder, ruediger.herrmann |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | stalebug | ||
|
Description
Kris De Volder
I also run in to this bug and would like to amend that the exception also occurs when passing a non-empty array of working sets to setSelectedWorkingSets().
With this snippet, the bug can be reproduced:
@Test
public void testWorkingSetConfigurationBlockBug() {
String type = "org.eclipse.ui.resourceWorkingSetPage";
IWorkingSetManager workingSetManager = PlatformUI.getWorkbench().getWorkingSetManager();
IWorkingSet workingSet = workingSetManager.createWorkingSet( "ws", new IAdaptable[ 0 ] );
workingSet.setId( type );
workingSetManager.addWorkingSet( workingSet );
Shell shell = new Shell();
WorkingSetConfigurationBlock workingSetBlock = new WorkingSetConfigurationBlock( new String[] { type }, new DialogSettings( "settings" ) );
workingSetBlock.createContent( shell );
workingSetBlock.setWorkingSets( new IWorkingSet[] { workingSet } );
assertArrayEquals( new IWorkingSet[] { workingSet }, workingSetBlock.getSelectedWorkingSets() );
}
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. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. 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. -- The automated Eclipse Genie. |