Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2004-01-15 16:53:15 +0000
committerDarin Swanson2004-01-15 16:53:15 +0000
commitcde38838c1a6405a716d6da83ad96008d3ef6c07 (patch)
treebb761046a4daa8f5341f53fcf123300c96d4c6e9 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedTextResolver.java
parentec0f1a682d7bc87d6fbe50284e3ee938059441b5 (diff)
downloadeclipse.platform.debug-cde38838c1a6405a716d6da83ad96008d3ef6c07.tar.gz
eclipse.platform.debug-cde38838c1a6405a716d6da83ad96008d3ef6c07.tar.xz
eclipse.platform.debug-cde38838c1a6405a716d6da83ad96008d3ef6c07.zip
Added copyright and marked string as non-nls
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedTextResolver.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedTextResolver.java25
1 files changed, 12 insertions, 13 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedTextResolver.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedTextResolver.java
index 36ee56a14..a6c8e0d39 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedTextResolver.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedTextResolver.java
@@ -1,21 +1,20 @@
-/*
- * Created on Jan 14, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
+/*******************************************************************************
+ * Copyright (c) 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
package org.eclipse.debug.internal.ui.stringsubstitution;
import org.eclipse.core.variables.IDynamicVariable;
import org.eclipse.core.variables.IDynamicVariableResolver;
import org.eclipse.jface.text.ITextSelection;
-/**
- * @author kbarnes
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
public class SelectedTextResolver implements IDynamicVariableResolver {
SelectedResourceManager selectedResourceManager;
@@ -29,7 +28,7 @@ public class SelectedTextResolver implements IDynamicVariableResolver {
public String resolveValue(IDynamicVariable variable, String argument) {
ITextSelection selection = selectedResourceManager.getSelectedText();
String selectedText = argument;
- if (selection != null && !selection.getText().equals("")) {
+ if (selection != null && !selection.getText().equals("")) { //$NON-NLS-1$
selectedText = selection.getText();
}
return selectedText;

Back to the top