Index: editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/sources/ITextSourceDescriptor.java |
=================================================================== |
--- editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/sources/ITextSourceDescriptor.java (revision 0) |
+++ editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/sources/ITextSourceDescriptor.java (revision 0) |
@@ -0,0 +1,28 @@ |
+/** |
+ * |
+ */ |
+package com.xored.glance.ui.sources; |
+ |
+import org.eclipse.swt.widgets.Control; |
+ |
+/** |
+ * @author Yuri Strot |
+ */ |
+public interface ITextSourceDescriptor { |
+ |
+ /** |
+ * Return a boolean indicating whether text source can be created for this control |
+ * |
+ * @return <code>true</code> if the text source can be created, and <code>false</code> otherwise |
+ */ |
+ public boolean isValid(Control control); |
+ |
+ /** |
+ * Creates text source for specified control |
+ * |
+ * @param control |
+ * @return |
+ */ |
+ public ITextSource createSource(Control control); |
+ |
+} |