### Eclipse Workspace Patch 1.0
#P org.eclipse.jface.text
Index: src/org/eclipse/jface/text/source/AnnotationBarHoverManager.java
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationBarHoverManager.java,v
retrieving revision 1.53
diff -u -r1.53 AnnotationBarHoverManager.java
--- src/org/eclipse/jface/text/source/AnnotationBarHoverManager.java 25 Sep 2009 10:55:58 -0000 1.53
+++ src/org/eclipse/jface/text/source/AnnotationBarHoverManager.java 12 Feb 2010 11:48:28 -0000
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -747,6 +747,32 @@
}
/**
+ * Returns the annotation hover for the current keyboard action or null
if no
+ * hover is shown.
+ *
+ * @return the annotation hover for the current keyboard action or null
+ * @since 3.6
+ */
+ public IAnnotationHover getAnnotationHoverForKeyboardAction() {
+ IAnnotationHover hover= null;
+ if (fVerticalRulerInfo instanceof CompositeRuler) {
+ CompositeRuler comp= (CompositeRuler)fVerticalRulerInfo;
+ for (Iterator it= comp.getDecoratorIterator(); it.hasNext();) {
+ Object o= it.next();
+ if (o instanceof IVerticalRulerInfoExtension && o instanceof IVerticalRulerInfo) {
+ hover= ((IVerticalRulerInfoExtension)o).getHover();
+ break;
+ }
+ }
+ }
+
+ if (hover == null) {
+ hover= fAnnotationHover;
+ }
+ return hover;
+ }
+
+ /**
* Returns an adapter that gives access to internal methods.
*
* Note: This method is not intended to be referenced or overridden by clients.
Index: src/org/eclipse/jface/text/source/ISourceViewerExtension3.java
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.jface.text/src/org/eclipse/jface/text/source/ISourceViewerExtension3.java,v
retrieving revision 1.6
diff -u -r1.6 ISourceViewerExtension3.java
--- src/org/eclipse/jface/text/source/ISourceViewerExtension3.java 31 Dec 2008 21:14:34 -0000 1.6
+++ src/org/eclipse/jface/text/source/ISourceViewerExtension3.java 12 Feb 2010 11:48:28 -0000
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2008 IBM Corporation and others.
+ * Copyright (c) 2006, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -48,4 +48,13 @@
*/
IAnnotationHover getCurrentAnnotationHover();
+ /**
+ * Returns the annotation hover for the current keyboard action if any, null
+ * otherwise.
+ *
+ * @return the annotation hover for the current keyboard action or null
+ * @since 3.6
+ */
+ IAnnotationHover getAnnotationHoverForKeyboardAction();
+
}
Index: src/org/eclipse/jface/text/source/SourceViewer.java
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewer.java,v
retrieving revision 1.90
diff -u -r1.90 SourceViewer.java
--- src/org/eclipse/jface/text/source/SourceViewer.java 11 Dec 2009 12:47:02 -0000 1.90
+++ src/org/eclipse/jface/text/source/SourceViewer.java 12 Feb 2010 11:48:29 -0000
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -1190,4 +1190,14 @@
return null;
return fVerticalRulerHoveringController.getCurrentAnnotationHover();
}
+
+ /*
+ * @see org.eclipse.jface.text.source.ISourceViewer#getCurrentAnnotationHover(int y)
+ * @since 3.6
+ */
+ public IAnnotationHover getAnnotationHoverForKeyboardAction() {
+ if (fVerticalRulerHoveringController == null)
+ return null;
+ return fVerticalRulerHoveringController.getAnnotationHoverForKeyboardAction();
+ }
}
#P org.eclipse.ui.editors
Index: plugin.properties
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.ui.editors/plugin.properties,v
retrieving revision 1.75
diff -u -r1.75 plugin.properties
--- plugin.properties 27 May 2009 15:25:30 -0000 1.75
+++ plugin.properties 12 Feb 2010 11:48:31 -0000
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2000, 2009 IBM Corporation and others.
+# Copyright (c) 2000, 2010 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
@@ -111,6 +111,9 @@
command.showChangeRulerInformation.name = Show Quick Diff Ruler Tooltip
command.showChangeRulerInformation.description = Displays quick diff or revision information for the caret line in a focused hover
+command.showRulerAnnotationInformation.name = Show Ruler Annotation Tooltip
+command.showRulerAnnotationInformation.description = Displays annotation information for the caret line in a focused hover
+
conversionActionSet.label= Convert Line Delimiters
conversionSubMenu.label= Con&vert Line Delimiters To
Index: plugin.xml
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.ui.editors/plugin.xml,v
retrieving revision 1.119
diff -u -r1.119 plugin.xml
--- plugin.xml 13 May 2009 15:57:09 -0000 1.119
+++ plugin.xml 12 Feb 2010 11:48:32 -0000
@@ -135,6 +135,12 @@
categoryId="org.eclipse.ui.category.textEditor"
id="org.eclipse.ui.edit.text.showChangeRulerInformation">
+ "org.eclipse.ui.edit.text.showRulerAnnotationInformation"
.
+ *
+ * @since 3.6
+ */
+ public static final String SHOW_RULER_ANNOTATION_INFORMATION_ID= "org.eclipse.ui.edit.text.showRulerAnnotationInformation"; //$NON-NLS-1$
}