update copyright
[fedora-idea.git] / java / java-impl / src / com / intellij / refactoring / openapi / impl / MoveClassesOrPackagesRefactoringImpl.java
blob01d2aa4659b19eeb5be0c7396946c598f6ff2a08
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.refactoring.openapi.impl;
18 import com.intellij.openapi.project.Project;
19 import com.intellij.psi.PsiElement;
20 import com.intellij.refactoring.*;
21 import com.intellij.refactoring.move.moveClassesOrPackages.MoveClassesOrPackagesProcessor;
23 import java.util.List;
25 /**
26 * @author dsl
28 public class MoveClassesOrPackagesRefactoringImpl extends RefactoringImpl<MoveClassesOrPackagesProcessor> implements MoveClassesOrPackagesRefactoring {
31 public MoveClassesOrPackagesRefactoringImpl(Project project, PsiElement[] elements, MoveDestination moveDestination) {
32 super(new MoveClassesOrPackagesProcessor(project, elements, moveDestination, true, true, null));
35 public List<PsiElement> getElements() {
36 return myProcessor.getElements();
39 public PackageWrapper getTargetPackage() {
40 return myProcessor.getTargetPackage();
43 public void setSearchInComments(boolean value) {
44 myProcessor.setSearchInComments(value);
47 public void setSearchInNonJavaFiles(boolean value) {
48 myProcessor.setSearchInNonJavaFiles(value);
51 public boolean isSearchInComments() {
52 return myProcessor.isSearchInComments();
55 public boolean isSearchInNonJavaFiles() {
56 return myProcessor.isSearchInNonJavaFiles();