Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-03-29 10:26:48 +0000
committerAlexander Kurtakov2018-03-29 10:26:48 +0000
commit5251d1be37d5970412dcbe291f47948ada582556 (patch)
treeb5ff3a44bb0f342b6b78aa5276aad09dbecb0463 /org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug
parent6ac5654db62a138703356d3d9f6074228ac01ae6 (diff)
downloadeclipse.platform.debug-5251d1be37d5970412dcbe291f47948ada582556.tar.gz
eclipse.platform.debug-5251d1be37d5970412dcbe291f47948ada582556.tar.xz
eclipse.platform.debug-5251d1be37d5970412dcbe291f47948ada582556.zip
Change-Id: I6f62094af1b4ad2c679e78cc635641918f958fb4 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug')
-rwxr-xr-xorg.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/AntExtraTab.java10
-rwxr-xr-xorg.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/DoNothingMainTab.java28
2 files changed, 4 insertions, 34 deletions
diff --git a/org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/AntExtraTab.java b/org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/AntExtraTab.java
index a3edf3978..399b0db99 100755
--- a/org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/AntExtraTab.java
+++ b/org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/AntExtraTab.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013 IBM Corporation and others.
+ * Copyright (c) 2013, 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
@@ -15,17 +15,11 @@ import java.util.Set;
public class AntExtraTab extends DoNothingMainTab {
- /**
- * @see org.eclipse.debug.internal.examples.mixedmode.DoNothingMainTab#getName()
- */
@Override
public String getName() {
return Messages.AntExtraTab_0;
}
- /**
- * @see org.eclipse.debug.internal.examples.mixedmode.DoNothingMainTab#getId()
- */
@Override
public String getId() {
return "org.eclipse.debug.examples.mixedmode.ant.tab"; //$NON-NLS-1$
@@ -37,7 +31,7 @@ public class AntExtraTab extends DoNothingMainTab {
@Override
public Set<String> getModes() {
if (fOptions == null) {
- fOptions = new HashSet<String>();
+ fOptions = new HashSet<>();
fOptions.add("ant"); //$NON-NLS-1$
fOptions.add("test"); //$NON-NLS-1$
}
diff --git a/org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/DoNothingMainTab.java b/org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/DoNothingMainTab.java
index dbcabf4eb..59550e2f9 100755
--- a/org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/DoNothingMainTab.java
+++ b/org.eclipse.debug.examples.mixedmode/src/org/eclipse/debug/internal/examples/mixedmode/DoNothingMainTab.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013 IBM Corporation and others.
+ * Copyright (c) 2013, 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
@@ -34,9 +34,6 @@ public class DoNothingMainTab extends AbstractLaunchConfigurationTab implements
protected Button fButton = null;
protected Set<String> fOptions = null;
- /**
- * @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(org.eclipse.swt.widgets.Composite)
- */
@Override
public void createControl(Composite parent) {
Composite comp = SWTFactory.createComposite(parent, parent.getFont(), 1, 1, GridData.FILL_BOTH);
@@ -56,9 +53,6 @@ public class DoNothingMainTab extends AbstractLaunchConfigurationTab implements
getLaunchManager().addLaunchConfigurationListener(this);
}
- /**
- * @see org.eclipse.debug.ui.ILaunchConfigurationTab#getName()
- */
@Override
public String getName() {
return Messages.DoNothingMainTab_1;
@@ -68,23 +62,17 @@ public class DoNothingMainTab extends AbstractLaunchConfigurationTab implements
* @return the set of modes this tab works with
*/
protected Set<String> getModes() {
- Set<String> set = new HashSet<String>();
+ Set<String> set = new HashSet<>();
set.add("profile"); //$NON-NLS-1$
return set;
}
- /**
- * @see org.eclipse.debug.ui.AbstractLaunchConfigurationTab#dispose()
- */
@Override
public void dispose() {
getLaunchManager().removeLaunchConfigurationListener(this);
super.dispose();
}
- /**
- * @see org.eclipse.debug.ui.ILaunchConfigurationTab#initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)
- */
@Override
public void initializeFrom(ILaunchConfiguration configuration) {
try {
@@ -99,9 +87,6 @@ public class DoNothingMainTab extends AbstractLaunchConfigurationTab implements
}
}
- /**
- * @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
- */
@Override
public void performApply(ILaunchConfigurationWorkingCopy configuration) {
if (fButton.getSelection()) {
@@ -111,24 +96,15 @@ public class DoNothingMainTab extends AbstractLaunchConfigurationTab implements
}
}
- /**
- * @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
- */
@Override
public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
}
- /**
- * @see org.eclipse.debug.ui.AbstractLaunchConfigurationTab#getId()
- */
@Override
public String getId() {
return "org.eclipse.debug.examples.mixedmode.main.tab"; //$NON-NLS-1$
}
- /**
- * @see org.eclipse.debug.core.ILaunchConfigurationListener#launchConfigurationChanged(org.eclipse.debug.core.ILaunchConfiguration)
- */
@Override
public void launchConfigurationChanged(ILaunchConfiguration configuration) {
try {

Back to the top