Eric Bergman-Terrell's Blog

Vault 3 Version 0.21 Released
November 6, 2009

Vault v. 0.21

Vault 3 version 0.21 is now available. In this version, if you specify an external photo editing program, you can edit a photo by selecting File / Edit Photo File when a photo is displayed.

Configure Photo Editing Program

On Windows machines I use paint.net to edit photos. On Ubuntu I use GIMP.

Details for Java Developers

I tried to use the SWT Program class to launch the external photo editing program. I never got it to work. Apparently the SWT Program class is intended to launch programs based on file associations, rather than launching a program with a specific file path, with a file path argument. Fortunately the Java ProcessBuilder class was able to launch a given program with a file path argument:

public void editPictureFile(Shell shell) {
if (canEditPictureFile()) {
String selectedItemPhotoPath = PhotoUtils.getPhotoPath(selectedItemPhotoPath());

 ProcessBuilder processBuilder = new ProcessBuilder(Globals.getPreferenceStore().getString(PreferenceKeys.PhotoEditingProgramPath), selectedItemPhotoPath);

 try {
processBuilder.start();
} catch (IOException e1) {
e1.printStackTrace();
}
}
}
Keywords: Vault 3, Edit Photo File, External Photo Editing Program, paint.net, GIMP, SWT, Program, ProcessBuilder

Reader Comments

Comment on this Blog Post

Recent Posts

TitleDate
.NET Public-Key (Asymmetric) Cryptography DemoJuly 20, 2025
Raspberry Pi 3B+ Photo FrameJune 17, 2025
EBTCalc (Android) Version 1.53 is now availableMay 19, 2024
Vault 3 Security EnhancementsOctober 24, 2023
Vault 3 is now available for Apple OSX M2 Mac Computers!September 18, 2023
Vault (for Desktop) Version 0.77 ReleasedMarch 26, 2023
EBTCalc (Android) Version 1.44 is now availableOctober 12, 2021