options.alwaysUse = alwaysUse;
Display.getDefault().syncExec(new Runnable() {
public void run() {
CompositeEditor compositeEditor = new CompositeEditor(options,
true);
Binding binding = (Binding) compositeEditor.getBinding();
binding.setName("Credentials");
binding
.setDescription("Authentification to Google Account for application: "
+ appId);
compositeEditor.add(new OneLineTextElement<String>(binding
.getBinding("usId")));
OneLineTextElement<String> element = new OneLineTextElement<String>(
binding.getBinding("password"));
element.setIsPassword(true);
Binding binding2 = binding.getBinding("alwaysUse");
binding2
.setName("Remember password(Could trigger secure storage login)");
ButtonSelector sl = new ButtonSelector(binding2);
compositeEditor.add(element);
compositeEditor.add(sl);
TitledDialog t = new TitledDialog(compositeEditor);
DisposeBindingListener.linkBindingLifeCycle(binding,
compositeEditor);
int open = t.open();