diff options
author | Alexander Kurtakov | 2017-07-19 16:10:23 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2017-07-19 16:10:23 +0000 |
commit | 8e8b622b4bf49f7e77107db4335e10731eb53254 (patch) | |
tree | aff0eafed9ebc8ccbaa1db91c9b415c6468ea49b /bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/SaveablePartDialog.java | |
parent | d796c830dbef8ef8ba662ac974b21ce5a174d739 (diff) | |
download | eclipse.platform.team-8e8b622b4bf49f7e77107db4335e10731eb53254.tar.gz eclipse.platform.team-8e8b622b4bf49f7e77107db4335e10731eb53254.tar.xz eclipse.platform.team-8e8b622b4bf49f7e77107db4335e10731eb53254.zip |
Bug 519875 - Cleanup o.e.team.ui
Move Runnables to lambdas.
Change-Id: I8ab7b9d9262c9d37ecf345ed4427e811fbb97387
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/SaveablePartDialog.java')
-rw-r--r-- | bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/SaveablePartDialog.java | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/SaveablePartDialog.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/SaveablePartDialog.java index 80c5990a1..58fa174fd 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/SaveablePartDialog.java +++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/SaveablePartDialog.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 IBM Corporation and others. + * Copyright (c) 2000, 2017 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -53,17 +53,11 @@ public class SaveablePartDialog extends TrayDialog { this.input = input; } - /* (non-Javadoc) - * Method declared on Dialog. - */ @Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); } - /* (non-Javadoc) - * Method declared on Dialog. - */ @Override protected Control createDialogArea(Composite parent2) { Composite parent = (Composite) super.createDialogArea(parent2); @@ -75,9 +69,6 @@ public class SaveablePartDialog extends TrayDialog { return parent; } - /* (non-Javadoc) - * @see org.eclipse.compare.internal.ResizableDialog#close() - */ @Override public boolean close() { saveChanges(); @@ -94,12 +85,7 @@ public class SaveablePartDialog extends TrayDialog { IDialogConstants.NO_LABEL}, 0); // YES is the default if (input.isDirty() && dialog.open() == IDialogConstants.OK_ID) { - BusyIndicator.showWhile(null, new Runnable() { - @Override - public void run() { - input.doSave(new NullProgressMonitor()); - } - }); + BusyIndicator.showWhile(null, () -> input.doSave(new NullProgressMonitor())); } } @@ -112,9 +98,6 @@ public class SaveablePartDialog extends TrayDialog { return input; } - /* (non-Javadoc) - * @see org.eclipse.jface.dialogs.Dialog#getDialogBoundsSettings() - */ @Override protected IDialogSettings getDialogBoundsSettings() { IDialogSettings compareSettings = TeamUIPlugin.getPlugin().getDialogSettings(); @@ -135,9 +118,6 @@ public class SaveablePartDialog extends TrayDialog { fContextId= contextId; } - /* - * @see org.eclipse.jface.window.Window#configureShell(Shell) - */ @Override protected void configureShell(Shell newShell) { super.configureShell(newShell); @@ -145,9 +125,6 @@ public class SaveablePartDialog extends TrayDialog { PlatformUI.getWorkbench().getHelpSystem().setHelp(newShell, fContextId); } - /* (non-Javadoc) - * @see org.eclipse.jface.dialogs.Dialog#getInitialSize() - */ @Override protected Point getInitialSize() { Point initialSize = super.getInitialSize(); |