diff options
author | Lars Vogel | 2014-09-03 14:48:47 +0000 |
---|---|---|
committer | Lars Vogel | 2014-09-03 14:48:47 +0000 |
commit | cde149af3382f1eab99068391f99dc19d5465c8c (patch) | |
tree | 3cdb17155d573d651dbe2adcc2e872e025b4e59a | |
parent | 90076ae590f7212a3534a825f181384f59639a39 (diff) | |
download | eclipse.platform.ui-cde149af3382f1eab99068391f99dc19d5465c8c.tar.gz eclipse.platform.ui-cde149af3382f1eab99068391f99dc19d5465c8c.tar.xz eclipse.platform.ui-cde149af3382f1eab99068391f99dc19d5465c8c.zip |
Bug 441244 - Remove unnecessary (non-Javadoc) statementsI20140903-1100
Change-Id: I71b3f342c7f582fa141e3989d5d08050950a93c6
Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com>
-rw-r--r-- | tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/SelectionProviderView.java | 44 | ||||
-rw-r--r-- | tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java | 20 |
2 files changed, 22 insertions, 42 deletions
diff --git a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/SelectionProviderView.java b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/SelectionProviderView.java index b042c630dc9..ba7e524888e 100644 --- a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/SelectionProviderView.java +++ b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/SelectionProviderView.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2006 IBM Corporation and others. + * Copyright (c) 2000, 2014 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 @@ -44,47 +44,35 @@ public class SelectionProviderView extends ViewPart implements super(); } - /** - * @see WorkbenchPart#setFocus() - */ - public void setFocus() { + @Override + public void setFocus() { text.setFocus(); } - /** - * @see WorkbenchPart#createPartControl(Composite) - */ - public void createPartControl(Composite parent) { + @Override + public void createPartControl(Composite parent) { text = new Text(parent, SWT.MULTI | SWT.WRAP); text.setLayoutData(new GridData(GridData.FILL_BOTH)); } - /* (non-Javadoc) - * Method declared on IViewPart. - */ - public void init(IViewSite site) throws PartInitException { + @Override + public void init(IViewSite site) throws PartInitException { site.setSelectionProvider(this); super.init(site); } - /** - * @see ISelectionProvider#addSelectionChangedListener(ISelectionChangedListener) - */ - public void addSelectionChangedListener(ISelectionChangedListener listener) { + @Override + public void addSelectionChangedListener(ISelectionChangedListener listener) { selectionChangedListeners.add(listener); } - /** - * @see ISelectionProvider#getSelection() - */ - public ISelection getSelection() { + @Override + public ISelection getSelection() { return lastSelection; } - /** - * @see ISelectionProvider#removeSelectionChangedListener(ISelectionChangedListener) - */ - public void removeSelectionChangedListener( + @Override + public void removeSelectionChangedListener( ISelectionChangedListener listener) { selectionChangedListeners.remove(listener); } @@ -96,10 +84,8 @@ public class SelectionProviderView extends ViewPart implements setSelection(new StructuredSelection(obj)); } - /** - * @see ISelectionProvider#setSelection(ISelection) - */ - public void setSelection(ISelection selection) { + @Override + public void setSelection(ISelection selection) { lastSelection = selection; // create an event diff --git a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java index 88a47787df5..53f918c9c41 100644 --- a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java +++ b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2011 IBM Corporation and others. + * Copyright (c) 2000, 2014 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 @@ -103,10 +103,8 @@ public class TestPlugin extends AbstractUIPlugin implements IStartup { } } - /* (non-Javadoc) - * @see org.eclipse.ui.IStartup#earlyStartup() - */ - public void earlyStartup() { + @Override + public void earlyStartup() { earlyStartupCalled = true; } @@ -118,20 +116,16 @@ public class TestPlugin extends AbstractUIPlugin implements IStartup { earlyStartupCalled = false; } - /* (non-Javadoc) - * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext) - */ - public void start(BundleContext context) throws Exception { + @Override + public void start(BundleContext context) throws Exception { TestInstallUtil.setContext(context); super.start(context); earlyStartup(); MenuBuilder.addMenuContribution(); } - /* (non-Javadoc) - * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext) - */ - public void stop(BundleContext context) throws Exception { + @Override + public void stop(BundleContext context) throws Exception { MenuBuilder.removeMenuContribution(); TestInstallUtil.setContext(null); super.stop(context); |