Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkgilmer2006-03-12 02:54:36 +0000
committerkgilmer2006-03-12 02:54:36 +0000
commit4972fc148298ebae9308b64dcddc0aebe7ad74bb (patch)
tree32b80164c17ee93822c46b3c4e7350839421836c
parent408f710ef36af4ac57fac4b8458d793d3accfdc8 (diff)
downloadorg.eclipse.ecf-4972fc148298ebae9308b64dcddc0aebe7ad74bb.tar.gz
org.eclipse.ecf-4972fc148298ebae9308b64dcddc0aebe7ad74bb.tar.xz
org.eclipse.ecf-4972fc148298ebae9308b64dcddc0aebe7ad74bb.zip
Added pref item for storing password.
-rw-r--r--examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ClientPreferencePage.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ClientPreferencePage.java b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ClientPreferencePage.java
index 22c4aeded..510a9558b 100644
--- a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ClientPreferencePage.java
+++ b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ClientPreferencePage.java
@@ -43,6 +43,7 @@ public class ClientPreferencePage extends FieldEditorPreferencePage implements
this.getPreferenceStore().setDefault(ClientPlugin.PREF_REGISTER_SERVER,false);
this.getPreferenceStore().setDefault(ClientPlugin.PREF_SHAREDEDITOR_PLAY_EVENTS_IMMEDIATELY,true);
this.getPreferenceStore().setDefault(ClientPlugin.PREF_SHAREDEDITOR_ASK_RECEIVER,true);
+ this.getPreferenceStore().setDefault(ClientPlugin.PREF_STORE_PASSWORD, false);
}
public ClientPreferencePage() {
super(GRID);
@@ -77,6 +78,8 @@ public class ClientPreferencePage extends FieldEditorPreferencePage implements
boolean val = getPreferenceStore().getBoolean(ClientPlugin.PREF_SHAREDEDITOR_PLAY_EVENTS_IMMEDIATELY);
ask.setEnabled(val, askParent);
+
+ addField(new BooleanFieldEditor(ClientPlugin.PREF_STORE_PASSWORD, "Store Passwords (Warning: passwords will be stored in plaintext.)", getFieldEditorParent()));
}
public void propertyChange(PropertyChangeEvent event) {

Back to the top