Browse files

Renamed checkbox for starting workspace

  • Loading branch information...
1 parent 684b052 commit d581f3ac9257b1cf4c46f49767208f32e176a986 @jonalv jonalv committed Apr 16, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 plugins/net.bioclipse.ui/src/net/bioclipse/ui/dialogs/PickWorkspaceDialog.java
View
10 plugins/net.bioclipse.ui/src/net/bioclipse/ui/dialogs/PickWorkspaceDialog.java
@@ -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
@@ -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) {
@@ -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());

0 comments on commit d581f3a

Please sign in to comment.