Skip to content

Commit

Permalink
Minor corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
albertus82 committed Feb 8, 2015
1 parent 8a7729c commit 5c78ffd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/it/albertus/cycles/CyclesModWin.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void widgetSelected(SelectionEvent event) {
openDialog.setFilterExtensions(new String[] { "*.inf; *.cfg" });
String fileName = openDialog.open();
if (StringUtils.isNotBlank(fileName)) {
loadFromFile(shell, fileName, true);
load(shell, fileName, true);
}
}
});
Expand Down Expand Up @@ -210,7 +210,7 @@ public void widgetSelected(SelectionEvent event) {
});

if (StringUtils.isNotBlank(fileName)) {
loadFromFile(shell, fileName, false);
load(shell, fileName, false);
}

return shell;
Expand Down Expand Up @@ -364,7 +364,7 @@ private void updateModelValues() {
}
}

protected void loadFromFile(final Shell shell, final String fileName, final boolean successMessage) {
protected void load(final Shell shell, final String fileName, final boolean successMessage) {
try {
if (StringUtils.endsWithIgnoreCase(fileName, ".inf")) {
bikesInf = new BikesInf(fileName);
Expand Down
4 changes: 0 additions & 4 deletions src/it/albertus/cycles/gui/PropertyFocusListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ public PropertyFocusListener(String defaultValue) {
this.defaultValue = defaultValue;
}

public String getDefaultValue() {
return defaultValue;
}

@Override
public void focusLost(FocusEvent event) {
Text field = (Text) event.widget;
Expand Down

0 comments on commit 5c78ffd

Please sign in to comment.