diff options
author | Alexander Kurtakov | 2018-03-29 10:26:48 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2018-03-29 10:26:48 +0000 |
commit | 5251d1be37d5970412dcbe291f47948ada582556 (patch) | |
tree | b5ff3a44bb0f342b6b78aa5276aad09dbecb0463 /org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples | |
parent | 6ac5654db62a138703356d3d9f6074228ac01ae6 (diff) | |
download | eclipse.platform.debug-5251d1be37d5970412dcbe291f47948ada582556.tar.gz eclipse.platform.debug-5251d1be37d5970412dcbe291f47948ada582556.tar.xz eclipse.platform.debug-5251d1be37d5970412dcbe291f47948ada582556.zip |
Bug 533055 - Remove redundant type argumentsI20180403-2000I20180402-2000I20180401-2000I20180331-1500I20180330-2235I20180330-2000I20180329-2000
Change-Id: I6f62094af1b4ad2c679e78cc635641918f958fb4
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples')
9 files changed, 20 insertions, 67 deletions
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventModelProxy.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventModelProxy.java index 26d89d818..df515873a 100644 --- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventModelProxy.java +++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventModelProxy.java @@ -1,5 +1,5 @@ /***************************************************************** - * Copyright (c) 2009, 2013 Texas Instruments and others + * Copyright (c) 2009, 2018 Texas Instruments 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 @@ -20,12 +20,9 @@ import org.eclipse.debug.internal.ui.viewers.provisional.AbstractModelProxy; import org.eclipse.jface.viewers.TreePath; public class MidiEventModelProxy extends AbstractModelProxy implements ICheckboxModelProxy { - static Map<TreePath, Boolean> gChecked = new HashMap<TreePath, Boolean>(); + static Map<TreePath, Boolean> gChecked = new HashMap<>(); - /* (non-Javadoc) - * @see org.eclipse.debug.internal.ui.viewers.model.provisional.ICheckboxModelProxy#setChecked(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.Object, org.eclipse.jface.viewers.TreePath, boolean) - */ @Override public boolean setChecked(IPresentationContext context, Object viewerInput, TreePath path, boolean checked) { System.out.println("TrackCheckListener.setChecked() element = " + path.getLastSegment() + " checked = " + checked); //$NON-NLS-1$ //$NON-NLS-2$ diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ControlDetailPaneFactory.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ControlDetailPaneFactory.java index 25cf833d6..c6dc26327 100644 --- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ControlDetailPaneFactory.java +++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ControlDetailPaneFactory.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 IBM Corporation and others. + * Copyright (c) 2008, 2018 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 @@ -36,9 +36,6 @@ public class ControlDetailPaneFactory implements IDetailPaneFactory { */ public static final String ID_CLOCK_SLIDER = "CLOCK_SLIDER"; //$NON-NLS-1$ - /* (non-Javadoc) - * @see org.eclipse.debug.ui.IDetailPaneFactory#createDetailPane(java.lang.String) - */ @Override public IDetailPane createDetailPane(String paneID) { if (ID_TEMPO_SLIDER.equals(paneID)) { @@ -50,9 +47,6 @@ public class ControlDetailPaneFactory implements IDetailPaneFactory { return null; } - /* (non-Javadoc) - * @see org.eclipse.debug.ui.IDetailPaneFactory#getDefaultDetailPane(org.eclipse.jface.viewers.IStructuredSelection) - */ @Override public String getDefaultDetailPane(IStructuredSelection selection) { if (selection.size() == 1) { @@ -67,9 +61,6 @@ public class ControlDetailPaneFactory implements IDetailPaneFactory { return null; } - /* (non-Javadoc) - * @see org.eclipse.debug.ui.IDetailPaneFactory#getDetailPaneDescription(java.lang.String) - */ @Override public String getDetailPaneDescription(String paneID) { if (ID_TEMPO_SLIDER.equals(paneID)) { @@ -81,9 +72,6 @@ public class ControlDetailPaneFactory implements IDetailPaneFactory { return null; } - /* (non-Javadoc) - * @see org.eclipse.debug.ui.IDetailPaneFactory#getDetailPaneName(java.lang.String) - */ @Override public String getDetailPaneName(String paneID) { if (ID_TEMPO_SLIDER.equals(paneID)) { @@ -95,12 +83,9 @@ public class ControlDetailPaneFactory implements IDetailPaneFactory { return null; } - /* (non-Javadoc) - * @see org.eclipse.debug.ui.IDetailPaneFactory#getDetailPaneTypes(org.eclipse.jface.viewers.IStructuredSelection) - */ @Override public Set<String> getDetailPaneTypes(IStructuredSelection selection) { - Set<String> set = new HashSet<String>(); + Set<String> set = new HashSet<>(); if (selection.size() == 1) { Object element = selection.getFirstElement(); if (element instanceof TempoControl) { diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java index ea72138af..549b7e2c2 100644 --- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java +++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 IBM Corporation and others. + * Copyright (c) 2008, 2018 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 @@ -39,9 +39,6 @@ import org.eclipse.ui.dialogs.ElementListSelectionDialog; */ public class MidiLaunchShortcut implements ILaunchShortcut { - /* (non-Javadoc) - * @see org.eclipse.debug.ui.ILaunchShortcut#launch(org.eclipse.jface.viewers.ISelection, java.lang.String) - */ @Override public void launch(ISelection selection, String mode) { if (selection instanceof IStructuredSelection) { @@ -68,7 +65,7 @@ public class MidiLaunchShortcut implements ILaunchShortcut { * @return associated launch configuration or <code>null</code> */ private ILaunchConfiguration getConfiguration(IFile file) { - List<ILaunchConfiguration> candiates = new ArrayList<ILaunchConfiguration>(); + List<ILaunchConfiguration> candiates = new ArrayList<>(); try { ILaunchConfiguration[] configurations = getLaunchManager().getLaunchConfigurations(getLaunchType()); for (int i = 0; i < configurations.length; i++) { @@ -155,9 +152,6 @@ public class MidiLaunchShortcut implements ILaunchShortcut { return null; } - /* (non-Javadoc) - * @see org.eclipse.debug.ui.ILaunchShortcut#launch(org.eclipse.ui.IEditorPart, java.lang.String) - */ @Override public void launch(IEditorPart editor, String mode) { // nothing - currently no editor diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/DebugUIPlugin.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/DebugUIPlugin.java index 1ea844c16..74949329f 100644 --- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/DebugUIPlugin.java +++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/DebugUIPlugin.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2013 IBM Corporation and others. + * Copyright (c) 2005, 2018 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 @@ -84,7 +84,7 @@ public class DebugUIPlugin extends AbstractUIPlugin { /** * Managed colors */ - private final Map<RGB, Color> fColors = new HashMap<RGB, Color>(); + private final Map<RGB, Color> fColors = new HashMap<>(); /** * The constructor. @@ -156,10 +156,6 @@ public class DebugUIPlugin extends AbstractUIPlugin { return resourceBundle; } - - /* (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry) - */ @Override protected void initializeImageRegistry(ImageRegistry reg) { declareImage(IMG_OBJ_PDA, PATH_OBJECT + "pda.gif"); //$NON-NLS-1$ diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/adapters/PDAViewActionProvider.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/adapters/PDAViewActionProvider.java index 9af6fc981..fed26ebc0 100644 --- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/adapters/PDAViewActionProvider.java +++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/adapters/PDAViewActionProvider.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2013 Wind River Systems and others. + * Copyright (c) 2012, 2018 Wind River Systems 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 @@ -28,11 +28,8 @@ import org.eclipse.jface.action.IAction; */ public class PDAViewActionProvider implements IViewActionProvider { - Map<IPresentationContext, Action> fActions = new HashMap<IPresentationContext, Action>(); + Map<IPresentationContext, Action> fActions = new HashMap<>(); - /* (non-Javadoc) - * @see org.eclipse.debug.internal.ui.viewers.model.provisional.IViewActionProvider#getAction(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.String) - */ @Override public IAction getAction(IPresentationContext presentationContext, String actionID) { if (presentationContext.getId().equals(IDebugUIConstants.ID_VARIABLE_VIEW) && diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/adapters/PDAVirtualFindAction.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/adapters/PDAVirtualFindAction.java index 204227995..41ddfd73a 100644 --- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/adapters/PDAVirtualFindAction.java +++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/adapters/PDAVirtualFindAction.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2013 IBM Corporation and others. + * Copyright (c) 2004, 2018 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 @@ -130,7 +130,7 @@ public class PDAVirtualFindAction extends Action implements IUpdate { private static class FindLabelProvider extends LabelProvider { private final VirtualTreeModelViewer fVirtualViewer; - private final Map<VirtualItem, String> fTextCache = new HashMap<VirtualItem, String>(); + private final Map<VirtualItem, String> fTextCache = new HashMap<>(); public FindLabelProvider(VirtualTreeModelViewer viewer, List<VirtualItem> items) { fVirtualViewer = viewer; @@ -247,7 +247,7 @@ public class PDAVirtualFindAction extends Action implements IUpdate { VirtualItem root = virtualViewer.getTree(); if (!monitor.isCanceled()) { - List<VirtualItem> list = new ArrayList<VirtualItem>(); + List<VirtualItem> list = new ArrayList<>(); collectAllChildren(root, list); FindLabelProvider labelProvider = new FindLabelProvider(virtualViewer, list); VirtualItem result = performFind(list, labelProvider); diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/breakpoints/PDAToggleWatchpointsTargetFactory.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/breakpoints/PDAToggleWatchpointsTargetFactory.java index 65d1ee022..2823bf7c4 100644 --- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/breakpoints/PDAToggleWatchpointsTargetFactory.java +++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/breakpoints/PDAToggleWatchpointsTargetFactory.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Wind River Systems and others. + * Copyright (c) 2008, 2018 Wind River Systems 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 @@ -32,9 +32,9 @@ public class PDAToggleWatchpointsTargetFactory implements IToggleBreakpointsTarg private static final String TOGGLE_WATCHPOINT_TARGET_MODIFICATION = "org.eclipse.debug.examples.ui.pda.watchpoint_modification"; //$NON-NLS-1$ private static final String TOGGLE_WATCHPOINT_TARGET_BOTH = "org.eclipse.debug.examples.ui.pda.watchpoint_both"; //$NON-NLS-1$ - private static Set<String> TOGGLE_WATCHPOINTS_TARGETS = new LinkedHashSet<String>(); + private static Set<String> TOGGLE_WATCHPOINTS_TARGETS = new LinkedHashSet<>(); - private final Map<String, IToggleBreakpointsTarget> fToggleWatchpointTargets = new HashMap<String, IToggleBreakpointsTarget>(3); + private final Map<String, IToggleBreakpointsTarget> fToggleWatchpointTargets = new HashMap<>(3); static { TOGGLE_WATCHPOINTS_TARGETS.add(TOGGLE_WATCHPOINT_TARGET_BOTH); diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/editor/PDAContentAssistProcessor.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/editor/PDAContentAssistProcessor.java index 0e0d4ad7b..5a95dca64 100644 --- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/editor/PDAContentAssistProcessor.java +++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/editor/PDAContentAssistProcessor.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2013 IBM Corporation and others. + * Copyright (c) 2005, 2018 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 @@ -42,7 +42,7 @@ public class PDAContentAssistProcessor implements IContentAssistProcessor { } } - List<CompletionProposal> proposals = new ArrayList<CompletionProposal>(); + List<CompletionProposal> proposals = new ArrayList<>(); String[] keywords = PDAScanner.fgKeywords; if (prefix.length() > 0) { String word = prefix.toString(); @@ -65,44 +65,28 @@ public class PDAContentAssistProcessor implements IContentAssistProcessor { return null; } - /* (non-Javadoc) - * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#computeContextInformation(org.eclipse.jface.text.ITextViewer, int) - */ @Override public IContextInformation[] computeContextInformation(ITextViewer viewer, int offset) { return null; } - /* (non-Javadoc) - * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getCompletionProposalAutoActivationCharacters() - */ @Override public char[] getCompletionProposalAutoActivationCharacters() { return null; } - /* (non-Javadoc) - * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getContextInformationAutoActivationCharacters() - */ @Override public char[] getContextInformationAutoActivationCharacters() { return null; } - /* (non-Javadoc) - * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getErrorMessage() - */ @Override public String getErrorMessage() { return null; } - /* (non-Javadoc) - * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getContextInformationValidator() - */ @Override public IContextInformationValidator getContextInformationValidator() { return null; } - } diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/views/PopHandler.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/views/PopHandler.java index 1c7f6b4ba..c4b1a42cd 100644 --- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/views/PopHandler.java +++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/views/PopHandler.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Wind River Systems and others. + * Copyright (c) 2008, 2018 Wind River Systems 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 @@ -36,7 +36,7 @@ public class PopHandler extends AbstractDataStackViewHandler { if (popee != null) { try { IValue[] stack = thread.getDataStack(); - List<IValue> restore = new ArrayList<IValue>(); + List<IValue> restore = new ArrayList<>(); for (int i = 0; i < stack.length; i++) { Object value = stack[i]; if (popee.equals(value)) { |