Skip to content

Commit

Permalink
Renamed checkbox for starting workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalv committed Apr 16, 2012
1 parent 684b052 commit d581f3a
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -34,6 +34,7 @@
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Label;

/**
* Dialog that lets/forces a user to enter/select a workspace that will be used when saving all configuration files and
Expand Down Expand Up @@ -183,8 +184,10 @@ public void handleEvent(Event event) {

// checkbox below
_RememberWorkspaceButton = new Button(inner, SWT.CHECK);
_RememberWorkspaceButton.setText("Remember workspace");
_RememberWorkspaceButton.setSelection(_preferences.getBoolean(_KeyRememberWorkspace, false));
_RememberWorkspaceButton.setText("Always start with default workspace");
_RememberWorkspaceButton.setSelection(!_preferences.getBoolean(_KeyRememberWorkspace, false));
new Label(inner, SWT.NONE);
new Label(inner, SWT.NONE);

return inner;
} catch (Exception err) {
Expand Down Expand Up @@ -401,9 +404,10 @@ protected void okPressed() {
buf.append(_SplitChar);
}
}


// save them onto our preferences
_preferences.putBoolean(_KeyRememberWorkspace, _RememberWorkspaceButton.getSelection());
_preferences.putBoolean(_KeyRememberWorkspace, !_RememberWorkspaceButton.getSelection());
_preferences.putBoolean(_KeyLastUsedWorkspaces, true);
_preferences.put(_KeyLastUsedWorkspaces, buf.toString());

Expand Down

0 comments on commit d581f3a

Please sign in to comment.