Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResizableDialog.java')
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResizableDialog.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResizableDialog.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResizableDialog.java
index e65639195..f5dfa9f9a 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResizableDialog.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResizableDialog.java
@@ -33,7 +33,7 @@ public abstract class ResizableDialog extends Dialog {
private static final String Y= "y"; //$NON-NLS-1$
private static final String WIDTH= "width"; //$NON-NLS-1$
private static final String HEIGHT= "height"; //$NON-NLS-1$
-
+
protected ResourceBundle fBundle;
private Rectangle fNewBounds;
private IDialogSettings fSettings;
@@ -43,12 +43,12 @@ public abstract class ResizableDialog extends Dialog {
public ResizableDialog(Shell parent, ResourceBundle bundle) {
super(parent);
setShellStyle(getShellStyle() | SWT.RESIZE | SWT.MAX);
-
+
fBundle= bundle;
-
+
fSettings= CompareUIPlugin.getDefault().getDialogSettings();
}
-
+
public void setHelpContextId(String contextId) {
fContextId= contextId;
}
@@ -61,12 +61,12 @@ public abstract class ResizableDialog extends Dialog {
if (fContextId != null)
PlatformUI.getWorkbench().getHelpSystem().setHelp(newShell, fContextId);
}
-
+
protected Point getInitialSize() {
-
+
int width= 0;
int height= 0;
-
+
final Shell s= getShell();
if (s != null) {
s.addControlListener(
@@ -80,7 +80,7 @@ public abstract class ResizableDialog extends Dialog {
}
);
}
-
+
IDialogSettings bounds= fSettings.getSection(DIALOG_BOUNDS_KEY);
if (bounds == null) {
if (fBundle != null) {
@@ -117,14 +117,14 @@ public abstract class ResizableDialog extends Dialog {
} catch (NumberFormatException e) {
height= 500;
}
- }
-
+ }
+
return new Point(width, height);
}
-
+
protected Point getInitialLocation(Point initialSize) {
Point loc= super.getInitialLocation(initialSize);
-
+
IDialogSettings bounds= fSettings.getSection(DIALOG_BOUNDS_KEY);
if (bounds != null) {
try {
@@ -140,7 +140,7 @@ public abstract class ResizableDialog extends Dialog {
}
return loc;
}
-
+
public boolean close() {
boolean closed= super.close();
if (closed && fNewBounds != null)

Back to the top