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
}
					if (treeViewer.getExpandedState(item)) {
						treeViewer.collapseToLevel(item, 1);
					} else {
						treeViewer.expandToLevel(item, 1);
					}
				}
			}
		});
		
		treeViewer.setInput(ResourcesPlugin.getWorkspace());
	}
	/**
	 * Returns the currently entered container name. Null if the field is empty.
	 * Note that the container may not exist yet if the user entered a new
	 * container name in the field.
	 * @return IPath
	 */
	public IPath getContainerFullPath() {
		if (allowNewContainerName) {
			String pathName = containerNameField.getText();
			if (pathName == null || pathName.length() < 1) {
				return null;
			}
			
			return (new Path(pathName)).makeAbsolute();
		}
		if (selectedContainer == null)
			return null;
		return selectedContainer.getFullPath();