update copyright
[fedora-idea.git] / xml / openapi / src / com / intellij / xml / breadcrumbs / BreadcrumbsInfoProvider.java
blob9ddf8875132b5ba0219b4dce5fefe3246ed429b1
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.
18 * Created by IntelliJ IDEA.
19 * User: spleaner
20 * Date: Jun 19, 2007
21 * Time: 3:33:15 PM
23 package com.intellij.xml.breadcrumbs;
25 import com.intellij.lang.Language;
26 import com.intellij.psi.PsiElement;
27 import com.intellij.openapi.extensions.ExtensionPointName;
28 import org.jetbrains.annotations.NotNull;
29 import org.jetbrains.annotations.Nullable;
31 public abstract class BreadcrumbsInfoProvider {
32 public static final ExtensionPointName<BreadcrumbsInfoProvider> EP_NAME = ExtensionPointName.create("com.intellij.breadcrumbsInfoProvider");
34 public abstract Language[] getLanguages();
36 public abstract boolean acceptElement(@NotNull final PsiElement e);
38 @Nullable
39 public PsiElement getParent(@NotNull final PsiElement e) {
40 return e.getParent();
43 @NotNull
44 public abstract String getElementInfo(@NotNull final PsiElement e);
46 @Nullable
47 public abstract String getElementTooltip(@NotNull final PsiElement e);