diff options
author | Sergey Prigogin | 2012-02-16 05:25:35 +0000 |
---|---|---|
committer | Sergey Prigogin | 2012-02-16 05:25:35 +0000 |
commit | 956baf679551581853fb80bfb7f307fe36948510 (patch) | |
tree | dabcb36dae559d6c9f6d1a7afc8e397d3e3dfce2 /core | |
parent | 1a8fd78cb0e1f8b19e5882b956e4353eda92699b (diff) | |
download | org.eclipse.cdt-956baf679551581853fb80bfb7f307fe36948510.tar.gz org.eclipse.cdt-956baf679551581853fb80bfb7f307fe36948510.tar.xz org.eclipse.cdt-956baf679551581853fb80bfb7f307fe36948510.zip |
Removed EmptyRefactoringDescription class.
Diffstat (limited to 'core')
2 files changed, 1 insertions, 34 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/EmptyRefactoringDescription.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/EmptyRefactoringDescription.java deleted file mode 100644 index 8d22493b575..00000000000 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/EmptyRefactoringDescription.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 Institute for Software, HSR Hochschule fuer Technik - * Rapperswil, University of applied sciences 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 - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Martin Schwab & Thomas Kallenberg - initial API and implementation - ******************************************************************************/ -package org.eclipse.cdt.internal.ui.refactoring.togglefunction; - -import java.util.HashMap; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.jface.text.TextSelection; -import org.eclipse.ltk.core.refactoring.Refactoring; -import org.eclipse.ltk.core.refactoring.RefactoringStatus; - -import org.eclipse.cdt.internal.ui.refactoring.CRefactoringDescription; - -class EmptyRefactoringDescription extends CRefactoringDescription { - @SuppressWarnings("nls") - public EmptyRefactoringDescription() { - super("id", "proj", "desc", "comment", 0, new HashMap<String, String>()); - } - - @Override - public Refactoring createRefactoring(RefactoringStatus status) throws CoreException { - return new ToggleRefactoring(getFile(), (TextSelection)getSelection(), getCProject()); - } -}
\ No newline at end of file diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/ToggleRefactoring.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/ToggleRefactoring.java index 3fed98cbcc9..a5ff382e85d 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/ToggleRefactoring.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/togglefunction/ToggleRefactoring.java @@ -95,7 +95,7 @@ public class ToggleRefactoring extends CRefactoring { @Override protected RefactoringDescriptor getRefactoringDescriptor() { - return new EmptyRefactoringDescription(); + return null; // Refactoring history is not supported. } public ToggleRefactoringContext getContext() { |