update copyright
[fedora-idea.git] / java / java-impl / src / com / intellij / psi / impl / migration / MigrationPackageImpl.java
blob23e39f2667efbbb49c0782881a80a4b0207b57e9
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.psi.impl.migration;
18 import com.intellij.lang.ASTNode;
19 import com.intellij.openapi.vfs.VirtualFile;
20 import com.intellij.psi.PsiPackage;
21 import com.intellij.psi.impl.file.PsiPackageImpl;
22 import org.jetbrains.annotations.NotNull;
24 /**
25 * @author dsl
27 public class MigrationPackageImpl extends PsiPackageImpl implements PsiPackage {
28 private final PsiMigrationImpl myMigration;
30 public MigrationPackageImpl(PsiMigrationImpl migration, String qualifiedName) {
31 super(migration.getManager(), qualifiedName);
32 myMigration = migration;
35 public String toString() {
36 return "MigrationPackage: " + getQualifiedName();
39 public boolean isWritable() {
40 return false;
43 public boolean isValid() {
44 return myMigration.isValid();
47 public void handleQualifiedNameChange(@NotNull String newQualifiedName) {
48 throw new UnsupportedOperationException();
51 public VirtualFile[] occursInPackagePrefixes() {
52 return VirtualFile.EMPTY_ARRAY;
55 public ASTNode getNode() {
56 return null;