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 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 {
} catch (IOException e1) {
Keywords: Vault 3, Edit Photo File, External Photo Editing Program,, GIMP, SWT, Program, ProcessBuilder

Reader Comments

Comment on this Blog Post

Recent Posts

EBTCalc Users: A Desktop Version is Now Available!October 25, 2019
Python Script to Audit MediaMonkey TranscodingAugust 15, 2019
How to decompile Java code with JetBrains IntelliJ IDEA (2018.2.3, Windows 10)October 5, 2018
Java Programming Tip: SWT Photo Frame ProgramOctober 31, 2016
Vault 3 (Desktop) Version 1.63 ReleasedSeptember 9, 2016
"Compliance with Court Orders Act of 2016"April 9, 2016
Disable "Visual Voicemail" on Android / T-MobileJanuary 17, 2016