update copyright
[fedora-idea.git] / java / java-impl / src / com / intellij / refactoring / typeCook / TypeCookViewDescriptor.java
blob235e7883aff1df0af5be5a39d3e8936251391335
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.typeCook;
18 import com.intellij.psi.PsiElement;
19 import com.intellij.refactoring.RefactoringBundle;
20 import com.intellij.usageView.UsageViewBundle;
21 import com.intellij.usageView.UsageViewDescriptor;
22 import org.jetbrains.annotations.NotNull;
24 class TypeCookViewDescriptor implements UsageViewDescriptor {
25 private final PsiElement[] myElements;
27 public TypeCookViewDescriptor(PsiElement[] elements) {
28 myElements = elements;
31 @NotNull
32 public PsiElement[] getElements() {
33 return myElements;
36 public String getProcessedElementsHeader() {
37 return RefactoringBundle.message("type.cook.elements.header");
40 public String getCodeReferencesText(int usagesCount, int filesCount) {
41 return RefactoringBundle.message("declaration.s.to.be.generified", UsageViewBundle.getReferencesString(usagesCount, filesCount));
44 public String getCommentReferencesText(int usagesCount, int filesCount) {
45 return null;