diff options
author | Lars Vogel | 2016-04-12 05:43:41 +0000 |
---|---|---|
committer | Lars Vogel | 2016-04-12 05:43:41 +0000 |
commit | 2c29d2886b5f82ebeae2f33f39249288387dbc97 (patch) | |
tree | e3c49dfee2cc46086da5c947b0dcf5a49d3daf23 /bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/ModelParticipantAction.java | |
parent | 92faeacdde13313fa8407d7247cf189833f77f65 (diff) | |
download | eclipse.platform.team-2c29d2886b5f82ebeae2f33f39249288387dbc97.tar.gz eclipse.platform.team-2c29d2886b5f82ebeae2f33f39249288387dbc97.tar.xz eclipse.platform.team-2c29d2886b5f82ebeae2f33f39249288387dbc97.zip |
Bug 491484 - Add @Override to org.eclipse.team.ui
Part II of the automatic cleanup
Change-Id: I1b6c7cf8bba164644afb7b623d3ae59549736895
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/ModelParticipantAction.java')
-rw-r--r-- | bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/ModelParticipantAction.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/ModelParticipantAction.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/ModelParticipantAction.java index 8fbc16964..95da4712f 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/ModelParticipantAction.java +++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/ModelParticipantAction.java @@ -52,6 +52,7 @@ public abstract class ModelParticipantAction extends BaseSelectionListenerAction private void initialize(ISynchronizePageConfiguration configuration) { configuration.getSite().getSelectionProvider().addSelectionChangedListener(this); configuration.getPage().getViewer().getControl().addDisposeListener(new DisposeListener() { + @Override public void widgetDisposed(DisposeEvent e) { getConfiguration().getSite().getSelectionProvider().removeSelectionChangedListener(ModelParticipantAction.this); } @@ -83,6 +84,7 @@ public abstract class ModelParticipantAction extends BaseSelectionListenerAction /* (non-Javadoc) * @see org.eclipse.ui.actions.BaseSelectionListenerAction#updateSelection(org.eclipse.jface.viewers.IStructuredSelection) */ + @Override protected boolean updateSelection(IStructuredSelection selection) { super.updateSelection(selection); return isEnabledForSelection(selection); @@ -153,6 +155,7 @@ public abstract class ModelParticipantAction extends BaseSelectionListenerAction final SaveableComparison activeSaveable = getActiveSaveable(); if (activeSaveable != null && activeSaveable.isDirty()) { PlatformUI.getWorkbench().getProgressService().run(true, true, new IRunnableWithProgress() { + @Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { try { @@ -200,6 +203,7 @@ public abstract class ModelParticipantAction extends BaseSelectionListenerAction public static boolean promptToSaveChanges(final Shell shell, final SaveableComparison saveable, final boolean allowCancel) throws InterruptedException { final int[] result = new int[] { 0 }; Runnable runnable = new Runnable() { + @Override public void run() { String[] options; if (allowCancel) { |