summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorRemy Suen2010-05-14 06:30:55 (EDT)
committer Remy Suen2010-05-14 06:30:55 (EDT)
commit2c4ebe3d2196ab28b5f72505f571cc18fd02e098 (patch)
treebbfd01adb55158f1dcefc3cf154b4530891dc864
parent44e7827e5796b70645ce6ba31c5e255a5960b2a5 (diff)
downloadegit-2c4ebe3d2196ab28b5f72505f571cc18fd02e098.zip
egit-2c4ebe3d2196ab28b5f72505f571cc18fd02e098.tar.gz
egit-2c4ebe3d2196ab28b5f72505f571cc18fd02e098.tar.bz2
'Git' property page does not need 'Default' and 'Apply' buttonsrefs/changes/01/701/1
The 'Git' property page currently only shows read-only information to the user. As there is no state information on this property page, the 'Default' and 'Apply' buttons should be removed. Change-Id: Id706859173a6bd9f11f4adebf78d1e03579621a1
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/GitProjectPropertyPage.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/GitProjectPropertyPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/GitProjectPropertyPage.java
index 446e96b..2d49670 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/GitProjectPropertyPage.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/GitProjectPropertyPage.java
@@ -45,6 +45,10 @@ public class GitProjectPropertyPage extends PropertyPage {
@Override
protected Control createContents(Composite parent) {
+ // this page just shows read-only information to the user, no
+ // default/apply buttons needed
+ noDefaultAndApplyButton();
+
final Composite composite = new Composite(parent, SWT.NULL);
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));