IDEA-64453 GitHub task server configuration changes can't be saved

This commit is contained in:
Dennis Ushakov
2011-02-16 23:57:45 +03:00
parent a5cfe765f2
commit cfff57399d
3 changed files with 5 additions and 1 deletions
@@ -21,7 +21,7 @@
<grid row="7" column="2" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
</constraints>
</vspacer>
<component id="e3439" class="javax.swing.JLabel">
<component id="e3439" class="javax.swing.JLabel" binding="myUrlLabel">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
@@ -34,6 +34,7 @@ import java.awt.event.ActionListener;
*/
public class BaseRepositoryEditor<T extends BaseRepository> extends TaskRepositoryEditor {
protected JLabel myUrlLabel;
protected JTextField myURLText;
protected JTextField myUserNameText;
protected JLabel myUsernameLabel;
@@ -20,6 +20,9 @@ public class GitHubRepositoryEditor extends BaseRepositoryEditor<GitHubRepositor
Consumer<GitHubRepository> changeListener) {
super(project, repository, changeListener);
myUrlLabel.setVisible(false);
myURLText.setVisible(false);
// project author, by default same as username
myRepoAuthor = new JTextField();
myRepoAuthor.setText(repository.getRepoAuthor());