Closed GoogleCodeExporter closed 9 years ago
This issue was closed by revision f8298fbe2fb1.
Original comment by christop...@gmail.com
on 11 Dec 2013 at 3:46
From f8298fbe2fb13e85367776cd713cd801f17cd87e Wed, 11 Dec 2013 21:18:10 +0530
From: Christopher Kohlhaas <christopher.kohlhaas@gmail.com>
Date: Wed, 11 Dec 2013 21:11:37 +0530
Subject: [PATCH] fixes Issue 375: Copy password from clipboard to Login Dialog
diff --git a/src/org/rapla/client/internal/LoginDialog.java
b/src/org/rapla/client/internal/LoginDialog.java
index bce0617..ac304b0 100644
--- a/src/org/rapla/client/internal/LoginDialog.java
+++ b/src/org/rapla/client/internal/LoginDialog.java
@@ -45,6 +45,7 @@
import org.rapla.framework.RaplaContext;
import org.rapla.framework.RaplaException;
import org.rapla.framework.StartupEnvironment;
+import org.rapla.gui.RaplaGUIComponent;
import org.rapla.gui.toolkit.RaplaFrame;
public final class LoginDialog extends RaplaFrame implements LocaleChangeListener
@@ -69,10 +70,13 @@
JPanel canvas;
protected LocaleSelector localeSelector;
StartupEnvironment env;
+ // we have to add an extra gui component here because LoginDialog extends
RaplaFrame and therefore can't extent RaplaGUIComponent
+ RaplaGUIComponent guiComponent;
public LoginDialog(RaplaContext context) throws RaplaException
{
super(context);
+ this.guiComponent = new RaplaGUIComponent(context);
env = context.lookup( StartupEnvironment.class );
i18n = context.lookup(RaplaComponent.RAPLA_RESOURCES);
localeSelector = context.lookup(LocaleSelector.class);
@@ -170,7 +174,8 @@
Listener listener = new Listener();
password.addActionListener(listener);
languageSelector.addFocusListener(listener);
-
+ guiComponent.addCopyPaste( username);
+ guiComponent.addCopyPaste( password );
// ################## END LABELS AND TEXTFIELDS ###################
// ################## BEGIN BUTTONS ###################
Original comment by christop...@gmail.com
on 11 Dec 2013 at 3:49
Original comment by christop...@gmail.com
on 11 Dec 2013 at 3:50
This issue was closed by revision e2ebe51b3f5d.
Original comment by christop...@gmail.com
on 11 Dec 2013 at 10:39
This issue was closed by revision f8298fbe2fb1.
Original comment by christop...@gmail.com
on 18 Dec 2013 at 10:14
Original comment by christop...@gmail.com
on 9 Jan 2014 at 4:38
Original comment by christop...@gmail.com
on 9 Feb 2014 at 9:07
Original issue reported on code.google.com by
b.von.st...@gmail.com
on 11 Dec 2013 at 12:24