2425262728293031323334
CommandData data = new CommandData(); data.addItem(Keys.FILE, file); // Create command. Edit edit = new Edit(); try { edit.perform(data); } catch (Exception exception) { exception.printStackTrace(); } } private File getSelectedFile() {