+ Methods getMIMETypesOnCurrentLine() and
+ getMIMETypesOnLine() added to
+ EditorContextDispatcher class. They provide a set of
+ MIME types of languages found on the line.
+
+
+
+
+
+
diff -r 1f155bc084cd spi.debugger.ui/manifest.mf
--- a/spi.debugger.ui/manifest.mf Mon Mar 30 14:41:22 2015 +0200
+++ b/spi.debugger.ui/manifest.mf Tue Mar 31 16:21:39 2015 +0200
@@ -2,6 +2,6 @@
OpenIDE-Module: org.netbeans.spi.debugger.ui/1
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/debugger/ui/Bundle.properties
OpenIDE-Module-Layer: org/netbeans/modules/debugger/resources/mf-layer.xml
-OpenIDE-Module-Specification-Version: 2.49
+OpenIDE-Module-Specification-Version: 2.50
OpenIDE-Module-Provides: org.netbeans.spi.debugger.ui
OpenIDE-Module-Install: org/netbeans/modules/debugger/ui/DebuggerModule.class
diff -r 1f155bc084cd spi.debugger.ui/src/org/netbeans/spi/debugger/ui/EditorContextDispatcher.java
--- a/spi.debugger.ui/src/org/netbeans/spi/debugger/ui/EditorContextDispatcher.java Mon Mar 30 14:41:22 2015 +0200
+++ b/spi.debugger.ui/src/org/netbeans/spi/debugger/ui/EditorContextDispatcher.java Tue Mar 31 16:21:39 2015 +0200
@@ -294,7 +294,12 @@
}
}
- Set getMIMETypesOnCurrentLine() {
+ /**
+ * Get a list of MIME types of languages found on the current line.
+ * @return A set of MIME types.
+ * @since 2.50
+ */
+ public Set getMIMETypesOnCurrentLine() {
Line line = getCurrentLine();
if (line == null) {
return Collections.EMPTY_SET;
@@ -302,7 +307,13 @@
return getMIMETypesOnLine(line);
}
- Set getMIMETypesOnLine(Line line) {
+ /**
+ * Get a list of MIME types of languages found on the line.
+ * @param line The line to search for the MIME types.
+ * @return A set of MIME types.
+ * @since 2.50
+ */
+ public Set getMIMETypesOnLine(Line line) {
EditorCookie editorCookie = line.getLookup().lookup(EditorCookie.class);
StyledDocument document = editorCookie.getDocument();
Set mimeTypes = null;