package com.perforce.p4simulink.ui; /** * Copyright (C) 2014 Perforce Software. All rights reserved. * * Please see LICENSE.txt in top-level folder of this distribution. */ import javax.swing.JTextArea; import javax.swing.JPasswordField; import java.util.ArrayList; import java.util.List; public class P4PasswordPane extends P4Pane { private JTextArea results = new JTextArea(""); private JPasswordField password = new JPasswordField(""); public Object[] getFields() { List<Object> fields = new ArrayList<>(); fields.add("Password: "); fields.add(password); if (results.getText() != null && !results.getText().isEmpty()) { fields.add("Result: " ); fields.add(results); } return fields.toArray(); } public void setResults(String message) { results.setText(message); } public String getPassword() { return new String(password.getPassword()); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 12023 | Paul Allen | Copying using p4Simulink_dev->main | ||
#5 | 11672 | Paul Allen |
Tidy up formatting and imports. No functional change. |
||
#4 | 11659 | Paul Allen |
Performance improvements, continued: improved performance of getFileState() by replacing the client haveList call with a direct server command. Also improved isLatest by removing fstat calls and replacing with simpler calls to diff and sync. Transferred from p4://perforce.perforce.com:1666@983506 |
||
#3 | 11652 | Paul Allen |
Added boilerplate to code, fixed build issues (NPEs on plugin load), removed Mathworks classes from plugin jar, fixed delete vs missing issue on remove() call. Transferred from p4://perforce.perforce.com:1666@970498 |
||
#2 | 11647 | Paul Allen |
New project creation fixes. Transferred from p4://perforce.perforce.com:1666@958305 |
||
#1 | 11645 | Paul Allen |
Refactoring and additional work on UI: Removed Connection class and went with global server/client objects. Implemented panes for connection, depot path and passwords. Passwords are only requested when required. Transferred from p4://perforce.perforce.com:1666@957149 |