Bug 200376 [IDE] Bidi issues with ContainerAndSelectionGroup's containerNameField (in ResourceAndContainerGroup)
Build ID: 3.3.0 Steps To Reproduce: 1. Add a project to your workspace and add two folders which use Hebrew characters as its name, one folder inside another (e.g. ABC\DEF). 2. Choose File, New, Other, File... 3. Choose the nested folder (in this example, DEF) 4. Observe the path which is set in the containerNameField of ContainerSelectionGroup is DEF\ABC and not ABC\DEF. More information: See the containerSelectionChanged() method of ContainerSelectionGroup for more details.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerSelectionGroup.java
}
	/**
	 * Gives focus to one of the widgets in the group, as determined by the
	 * group.
	 */
	public void setInitialFocus() {
		if (allowNewContainerName) {
			containerNameField.setFocus();
		} else {
			treeViewer.getTree().setFocus();
		}
	}
	/**
	 * Sets the selected existing container.
	 * @param container
	 */
	public void setSelectedContainer(IContainer container) {
		selectedContainer = container;
		
		List itemsToExpand = new ArrayList();
		IContainer parent = container.getParent();
		while (parent != null) {
			itemsToExpand.add(0, parent);
			parent = parent.getParent();
		}
		treeViewer.setExpandedElements(itemsToExpand.toArray());
		treeViewer.setSelection(new StructuredSelection(container), true);
	}
}