SVN: IDEA-23867 (SVN annotations: Check-in comments do not display when mousing over...
[fedora-idea.git] / vcs-api / src / com / intellij / openapi / vcs / annotate / LineAnnotationAspect.java
blob7b7edc7172522f21c63b2491ac8af32624f8dd7b
1 /*
2 * Copyright 2000-2007 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.openapi.vcs.annotate;
18 import org.jetbrains.annotations.Nullable;
20 /**
21 * Represents one part of a line annotation which is shown in the editor when the "Annotate"
22 * action is invoked. Classes implementing this interface can also implement
23 * {@link com.intellij.openapi.editor.EditorGutterAction} to handle clicks on the annotation.
25 * @see FileAnnotation#getAspects()
27 public interface LineAnnotationAspect {
28 /**
29 * Get annotation text for the spcific line number
30 * @param lineNumber the line number to query
31 * @return the annotation text
33 String getValue(int lineNumber);
35 /**
36 * used if return value is not null
38 @Nullable
39 String getTooltipText(int lineNumber);