private void doEdit(int index) {
FileChooserDescriptor fileChooserDescriptor = new FileChooserDescriptor(false, true, false, false, false, false);
fileChooserDescriptor.setHideIgnored(false);
VirtualFile virtualFile = FileChooser.chooseFile(fileChooserDescriptor, editorContext.getProject(), index >= 0 ? ((VirtualFilePointer) additionalPathModel.get(index)).getFile() : null);
if (virtualFile != null) {
VirtualFilePointer filePointer = VirtualFilePointerManager.getInstance().create(virtualFile, wicketForgeFacet.getModule(), null);
if (index >= 0) {
additionalPathModel.set(index, filePointer);
} else {
additionalPathModel.addElement(filePointer);
}