AnnotationFieldGutter(FileAnnotation annotation, LineAnnotationAspect aspect, final TextAnnotationPresentation presentation, Couple<Map<VcsRevisionNumber, Color>> colorScheme) { myAnnotation = annotation; myAspect = aspect; myPresentation = presentation; myIsGutterAction = myAspect instanceof EditorGutterAction; myColorScheme = colorScheme; }
public Cursor getCursor(final int line) { if (myIsGutterAction) { return ((EditorGutterAction)myAspect).getCursor(line); } else { return Cursor.getDefaultCursor(); } }
AnnotationFieldGutter(FileAnnotation annotation, Editor editor, LineAnnotationAspect aspect, final TextAnnotationPresentation presentation, Map<String, Color> colorScheme) { myAnnotation = annotation; myEditor = editor; myAspect = aspect; myPresentation = presentation; myIsGutterAction = myAspect instanceof EditorGutterAction; myColorScheme = colorScheme; }
public AspectAnnotationFieldGutter(@Nonnull FileAnnotation annotation, @Nonnull LineAnnotationAspect aspect, @Nonnull TextAnnotationPresentation presentation, @Nullable Couple<Map<VcsRevisionNumber, Color>> colorScheme) { super(annotation, presentation, colorScheme); myAspect = aspect; myIsGutterAction = myAspect instanceof EditorGutterAction; }
@Override public Cursor getCursor(final int line) { if (myIsGutterAction) { return ((EditorGutterAction)myAspect).getCursor(line); } return super.getCursor(line); }
public void doAction(int line) { if (myIsGutterAction) { ((EditorGutterAction)myAspect).doAction(line); } }
@Override public void doAction(int line) { if (myIsGutterAction) { ((EditorGutterAction)myAspect).doAction(line); } }