Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2016-11-04 17:37:48 +0000
committerAndrey Loskutov2016-11-04 20:18:45 +0000
commitbf7292ed40eab1e600437a7521a99864c98299ad (patch)
treef44347b408186df22740428859a2bbb4e29588a1 /bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResizableDialog.java
parentf60954ba88fb4b106af2fd6056f69c93a54110b6 (diff)
downloadeclipse.platform.team-bf7292ed40eab1e600437a7521a99864c98299ad.tar.gz
eclipse.platform.team-bf7292ed40eab1e600437a7521a99864c98299ad.tar.xz
eclipse.platform.team-bf7292ed40eab1e600437a7521a99864c98299ad.zip
Change-Id: I2ed3512c294b06e85a63fab90a0934e611339e31 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
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