فهرست منبع

Updated Execution Model to refer SGraph Statement

Andreas Mülder 14 سال پیش
والد
کامیت
82317beca1

+ 7 - 9
de.itemis.gmf.utils/plugins/de.itemis.gmf.runtime.commons/src/de/itemis/gmf/runtime/commons/properties/descriptors/XtextPropertyDescriptor.java

@@ -27,7 +27,7 @@ import de.itemis.xtext.utils.jface.viewers.XtextStyledText;
 /**
  * 
  * @author andreas muelder - Initial contribution and API
- *
+ * 
  */
 public class XtextPropertyDescriptor extends AbstractPropertyDescriptor {
 
@@ -36,13 +36,13 @@ public class XtextPropertyDescriptor extends AbstractPropertyDescriptor {
 
 	protected XtextStyledText xtextWidget;
 
-	public XtextPropertyDescriptor(EStructuralFeature feature, String labelName,
-			Injector injector) {
+	public XtextPropertyDescriptor(EStructuralFeature feature,
+			String labelName, Injector injector) {
 		this(feature, labelName, injector, (Resource) null);
 	}
 
-	public XtextPropertyDescriptor(EStructuralFeature feature, String labelName,
-			Injector injector, Resource context) {
+	public XtextPropertyDescriptor(EStructuralFeature feature,
+			String labelName, Injector injector, Resource context) {
 		super(feature, labelName);
 		this.injector = injector;
 		this.context = context;
@@ -69,6 +69,7 @@ public class XtextPropertyDescriptor extends AbstractPropertyDescriptor {
 				context);
 		GridDataFactory.fillDefaults().grab(true, true)
 				.applyTo(xtextWidget.getStyledText());
+	
 		return (StyledText) xtextWidget.getStyledText();
 	}
 
@@ -77,7 +78,6 @@ public class XtextPropertyDescriptor extends AbstractPropertyDescriptor {
 		return new XtextStyledText(parent, style, getInjector(), context);
 	}
 
-
 	public Injector getInjector() {
 		return injector;
 	}
@@ -93,9 +93,7 @@ public class XtextPropertyDescriptor extends AbstractPropertyDescriptor {
 
 	@Override
 	protected IObservableValue getWidgetValue() {
-		return  WidgetProperties.text(SWT.FocusOut)
-				.observe(getControl());
+		return WidgetProperties.text(SWT.FocusOut).observe(getControl());
 	}
 
-
 }

+ 17 - 0
de.itemis.xtext.utils/plugins/de.itemis.xtext.utils.jface/plugin.xml

@@ -16,5 +16,22 @@
          </activeWhen>
       </handler>
    </extension>
+    <extension
+         point="org.eclipse.ui.editors.markerAnnotationSpecification">
+      <specification
+            annotationType="com.mycompany.element"
+            colorPreferenceKey="annotateElemColor"
+            colorPreferenceValue="255,255,0"
+            highlightPreferenceKey="annotateElemHighlight"
+            highlightPreferenceValue="true"
+            includeOnPreferencePage="true"
+            label="Sample Annotation"
+            overviewRulerPreferenceKey="annotateElemOverviewRuler"
+            textPreferenceKey="annotateElemText"
+            verticalRulerPreferenceKey="annotateElemVerticalRuler"
+            verticalRulerPreferenceValue="true">
+      </specification>
+   </extension>
+   
 
 </plugin>