}
private void setResultFromFile() {
// Use the filename without extension as the id of this cheatsheet
IPath filePath = new Path(selectFileCombo.getText());
String id = filePath.lastSegment();
int extensionIndex = id.indexOf('.');
if (extensionIndex > 0) {
id = id.substring(0, extensionIndex);
}
// Use the id as the name