diff options
author | Andrey Loskutov | 2016-11-04 17:37:48 +0000 |
---|---|---|
committer | Andrey Loskutov | 2016-11-04 20:18:45 +0000 |
commit | bf7292ed40eab1e600437a7521a99864c98299ad (patch) | |
tree | f44347b408186df22740428859a2bbb4e29588a1 /bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResizableDialog.java | |
parent | f60954ba88fb4b106af2fd6056f69c93a54110b6 (diff) | |
download | eclipse.platform.team-bf7292ed40eab1e600437a7521a99864c98299ad.tar.gz eclipse.platform.team-bf7292ed40eab1e600437a7521a99864c98299ad.tar.xz eclipse.platform.team-bf7292ed40eab1e600437a7521a99864c98299ad.zip |
Bug 506732 - cleanup trailing spaces in compare pluginsY20161117-1000Y20161110-1000I20161122-2000I20161121-2000I20161120-2000I20161119-2000I20161118-2000I20161117-2000I20161116-2000I20161115-2000I20161114-2000I20161114-0355I20161113-2000I20161112-2000I20161112-0405I20161111-2000I20161111-1220I20161111-0900I20161111-0740I20161111-0510I20161110-2030I20161110-1630I20161110-1225I20161110-1130I20161110-0710I20161110-0510I20161109-2000I20161108-1015I20161108-0800
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.java | 26 |
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) |