32 lines
597 B
Java
32 lines
597 B
Java
package flintstones.application.debug.handler;
|
|
|
|
import java.awt.Desktop;
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
|
|
import javax.inject.Inject;
|
|
import org.eclipse.e4.core.di.annotations.Execute;
|
|
|
|
import flintstones.application.model.IApplicationService;
|
|
|
|
@SuppressWarnings("javadoc")
|
|
public class OpenSaveFileDebugHandler {
|
|
|
|
@Inject
|
|
IApplicationService appService;
|
|
|
|
@Execute
|
|
public void execute() {
|
|
|
|
String fileName = appService.getSavePath();
|
|
File f = new File(fileName);
|
|
|
|
try {
|
|
Desktop.getDesktop().open(f);
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
}
|
|
|
|
}
|
|
}
|