Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
さまざまな値を保持する StringFieldEditor を含む設定ページがあります。そのうちの 1 つはパスワード用です。パスワードをアスタリスクまたはその他の特殊文字として表示したい。org.eclipse.jface.preference.FieldEditor またはそのサブクラスのみを使用する必要があります。これを達成する方法を提案してください。
password = new StringFieldEditor("passwd", "Password", getFieldEditorParent()) { @Override protected void doFillIntoGrid(Composite parent, int numColumns) { super.doFillIntoGrid(parent, numColumns); getTextControl().setEchoChar('*'); } };