Bug 19365 ArrayIndexOutOfBounds: editing Build Path .jar
F2 - File -> New -> Project... - Plug-in Development - Plug-in Project -> Next - set name="asd", Next - Next - select Hello World wizard, Next - Finish -> creates new Project "asd" - select it in the Packages view, right-click -> Properties... - go to Java Build Path page - go to contained Libraries tab - select any of the ECLIPSE_HOME... libraries shown in the list - press Edit... - press OK in the subsequent Variable Extension dialog, get the attached exception
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java
fSWTControl= null;
		
		fDialogSettings= JavaPlugin.getDefault().getDialogSettings();
		
		String[] buttonLabels= new String[] { 
			 NewWizardMessages.getString("LibrariesWorkbookPage.libraries.addjar.button"),	
			 NewWizardMessages.getString("LibrariesWorkbookPage.libraries.addextjar.button"), 
			 NewWizardMessages.getString("LibrariesWorkbookPage.libraries.addvariable.button"), 
			 NewWizardMessages.getString("LibrariesWorkbookPage.libraries.advanced.button"), 
			 null,  
			 NewWizardMessages.getString("LibrariesWorkbookPage.libraries.edit.button"), 
			 NewWizardMessages.getString("LibrariesWorkbookPage.libraries.setsource.button"), 
			 null,  
			 NewWizardMessages.getString("LibrariesWorkbookPage.libraries.remove.button") 
		};		
				
		LibrariesAdapter adapter= new LibrariesAdapter();
				
		fLibrariesList= new ListDialogField(adapter, buttonLabels, new CPListLabelProvider());
		fLibrariesList.setDialogFieldListener(adapter);
		fLibrariesList.setLabelText(NewWizardMessages.getString("LibrariesWorkbookPage.libraries.label")); 
		fLibrariesList.setRemoveButtonIndex(IDX_REMOVE); 
	
		fLibrariesList.enableButton(IDX_EDIT, false);
		fLibrariesList.enableButton(IDX_ATTACH, false);
		
		fLibrariesList.setViewerSorter(new CPListElementSorter());
	}
		
	public void init(IJavaProject jproject) {