I don't now if it's a bug report or a feature request but the password field in the plugin settings is plain-text. That's a bit dangerous especially when there are multiple persons working on the same machine.
I would like to fix this, but I don't know how to contribute here :)
Anyway, the problem is there are special types of FieldEditors necessary for preference pages and the RCP did not provide one for Passwords (the only difference is the SWT.PASSWORD flag when creating the widget). I wrote an RCP some time ago and was in the need for an PasswordField as well, so I created my own PasswordStringFieldEditor which extends the StringFieldEditor (this is also what you have to according to the documentation).
To put a long story short, here's my code for the PasswordStringFieldEditor (maybe there are some methods that are not necessary, I did not spent to much time on it). The most import method is getTextControl
Logged In: YES
user_id=1789323
Originator: NO
I would like to fix this, but I don't know how to contribute here :)
Anyway, the problem is there are special types of FieldEditors necessary for preference pages and the RCP did not provide one for Passwords (the only difference is the SWT.PASSWORD flag when creating the widget). I wrote an RCP some time ago and was in the need for an PasswordField as well, so I created my own PasswordStringFieldEditor which extends the StringFieldEditor (this is also what you have to according to the documentation).
To put a long story short, here's my code for the PasswordStringFieldEditor (maybe there are some methods that are not necessary, I did not spent to much time on it). The most import method is getTextControl
import org.eclipse.jface.preference.FieldEditor;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.core.runtime.Assert;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.events.FocusAdapter;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
/*
* A field editor for a string type preference.
*
* This class may be used as is, or subclassed as required.
*
/
public class PasswordStringFieldEditor extends FieldEditor {
}