mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Removed EmptyRefactoringDescription class.
This commit is contained in:
parent
1a8fd78cb0
commit
956baf6795
2 changed files with 1 additions and 34 deletions
|
@ -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());
|
||||
}
|
||||
}
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue