Mercurial > hg > RemoteEditor > Eclipse
changeset 207:fe375c84d5d0
warning fix.
author | one |
---|---|
date | Sat, 18 Dec 2010 18:16:03 +0900 |
parents | 563057fe244e |
children | 12259860a143 |
files | src/remoteeditor/ui/CommitDialog.java src/remoteeditor/ui/TestDialog.java |
diffstat | 2 files changed, 1 insertions(+), 39 deletions(-) [+] |
line wrap: on
line diff
--- a/src/remoteeditor/ui/CommitDialog.java Sat Dec 18 18:01:07 2010 +0900 +++ b/src/remoteeditor/ui/CommitDialog.java Sat Dec 18 18:16:03 2010 +0900 @@ -1,13 +1,8 @@ package remoteeditor.ui; import org.eclipse.jface.dialogs.Dialog; -import org.eclipse.swt.SWT; -import org.eclipse.swt.events.ModifyEvent; -import org.eclipse.swt.events.ModifyListener; -import org.eclipse.swt.widgets.Button; -import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Shell; -import org.eclipse.swt.widgets.Text; + public class CommitDialog extends Dialog{ @@ -16,36 +11,4 @@ // TODO Auto-generated constructor stub } - private class TextBox implements ModifyListener{ - - private final Text fTextField; - private final String fMessage; - private String fText; - - public TextBox(Composite composite, String message, String initialText){ - - fMessage = message; - fText = initialText; - fTextField = new Text(composite, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP ); - setText(initialText); - fTextField.addModifyListener(this); - } - - private void setText(String initialText) { - // TODO Auto-generated method stub - - } - - public void modifyText(ModifyEvent e) { - // TODO Auto-generated method stub - final String old = fText; - fText = fTextField.getText(); - - } - public void setEnabled(boolean enabled){ - fTextField.setEditable(enabled); - } - - } - }
--- a/src/remoteeditor/ui/TestDialog.java Sat Dec 18 18:01:07 2010 +0900 +++ b/src/remoteeditor/ui/TestDialog.java Sat Dec 18 18:16:03 2010 +0900 @@ -1,7 +1,6 @@ package remoteeditor.ui; import org.eclipse.jface.dialogs.Dialog; -import org.eclipse.jface.window.IShellProvider; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.layout.GridData;