Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-02-20 18:56:16 +0000
committerspingel2009-02-20 18:56:16 +0000
commitd1778c5b804d517527c15243558a7ad6c2c482cd (patch)
tree61841d85a87bce74fea9a75b5d4baea6d1945bbf
parenta60a60838e924c204728f496a1cc02c43305ab22 (diff)
downloadorg.eclipse.mylyn.tasks-d1778c5b804d517527c15243558a7ad6c2c482cd.tar.gz
org.eclipse.mylyn.tasks-d1778c5b804d517527c15243558a7ad6c2c482cd.tar.xz
org.eclipse.mylyn.tasks-d1778c5b804d517527c15243558a7ad6c2c482cd.zip
REOPENED - bug 242445: [api] update layout of repository settings page
https://bugs.eclipse.org/bugs/show_bug.cgi?id=242445
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage.java
index b711cc51e..ac8f17eb5 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage.java
@@ -336,8 +336,8 @@ public abstract class AbstractRepositorySettingsPage extends AbstractTaskReposit
@Override
public int getNumberOfControls() {
- // if will have anonymous checkbox on same line, make this control only span 2 columns
- return needsAnonymousLogin() ? 2 : 3;
+ // always 2 columns -- if no anonymous checkbox, just leave 3rd column empty
+ return 2;
}
};
if (needsAnonymousLogin()) {
@@ -353,6 +353,9 @@ public abstract class AbstractRepositorySettingsPage extends AbstractTaskReposit
isPageComplete();
}
});
+ } else {
+ Label dummyLabel = new Label(compositeContainer, SWT.NONE); // dummy control to fill 3rd column when no anonymous login
+ GridDataFactory.fillDefaults().applyTo(dummyLabel); // not really necessary, but to be on the safe side
}
repositoryPasswordEditor = new RepositoryStringFieldEditor("", LABEL_PASSWORD, StringFieldEditor.UNLIMITED, //$NON-NLS-1$

Back to the top