summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMarc-Andre Laperle2013-05-09 17:42:59 (EDT)
committer Matthias Sohn2013-06-18 18:05:34 (EDT)
commit6d02a6a615207b1db3fbca4aaabdcdf41167ddb0 (patch)
tree3c7bdfb49417b4b0105fcd8ced439d6820913504
parentcd121267be18c06d26be07aa9c8f53225f7c49c0 (diff)
downloadegit-6d02a6a615207b1db3fbca4aaabdcdf41167ddb0.zip
egit-6d02a6a615207b1db3fbca4aaabdcdf41167ddb0.tar.gz
egit-6d02a6a615207b1db3fbca4aaabdcdf41167ddb0.tar.bz2
Commit dialog should remember its last dialog sizerefs/changes/97/12697/3
Bug: 407690 Change-Id: I72d5bbcbd5d4a7b6c102d2f74151cf8ffa71c214 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CommitDialog.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CommitDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CommitDialog.java
index cbf1622..b961932 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CommitDialog.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CommitDialog.java
@@ -35,9 +35,9 @@ import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.Path;
-import org.eclipse.egit.core.Activator;
import org.eclipse.egit.core.AdaptableFileTreeIterator;
import org.eclipse.egit.core.internal.util.ResourceUtil;
+import org.eclipse.egit.ui.Activator;
import org.eclipse.egit.ui.UIPreferences;
import org.eclipse.egit.ui.UIUtils;
import org.eclipse.egit.ui.internal.CachedCheckboxTreeViewer;
@@ -329,6 +329,9 @@ public class CommitDialog extends TitleAreaDialog {
private static final String SHOW_UNTRACKED_PREF = "CommitDialog.showUntracked"; //$NON-NLS-1$
+ private static final String DIALOG_SETTINGS_SECTION_NAME = Activator
+ .getPluginId() + ".COMMIT_DIALOG_SECTION"; //$NON-NLS-1$
+
/**
* A constant used for the 'commit and push button' button
*/
@@ -587,6 +590,16 @@ public class CommitDialog extends TitleAreaDialog {
return help;
}
+ @Override
+ protected IDialogSettings getDialogBoundsSettings() {
+ IDialogSettings settings = Activator.getDefault().getDialogSettings();
+ IDialogSettings section = settings
+ .getSection(DIALOG_SETTINGS_SECTION_NAME);
+ if (section == null)
+ section = settings.addNewSection(DIALOG_SETTINGS_SECTION_NAME);
+ return section;
+ }
+
/**
* Add message drop down toolbar item
*