Skip to content
Snippets Groups Projects
Commit 991b2582 authored by Daniel Ratiu's avatar Daniel Ratiu
Browse files

small cleaning

parent 2f6c65c8
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,10 @@ $Id: IdLabeledPropertySection.java 5274 2012-08-02 07:54:11Z mou $
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.kernel.ui.internal.properties;
import static org.eclipse.jface.databinding.swt.SWTObservables.observeText;
import static org.fortiss.tooling.kernel.ui.util.ObservableUtils.observeValue;
import org.eclipse.core.databinding.observable.value.IObservableValue;
import org.eclipse.jface.databinding.swt.SWTObservables;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
......@@ -26,7 +28,6 @@ import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
import org.fortiss.tooling.kernel.model.FortissToolingKernelPackage;
import org.fortiss.tooling.kernel.model.IElementWithURI;
import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase;
import org.fortiss.tooling.kernel.ui.util.ObservableUtils;
/**
* Property section for {@link IElementWithURI}s.
......@@ -34,7 +35,7 @@ import org.fortiss.tooling.kernel.ui.util.ObservableUtils;
* @author ratiu
* @author $Author: ratiu $
* @version $Rev: 5274 $
* @ConQAT.Rating GREEN Hash: E6A4B98E0681984D8DCCBFFBF99412CA
* @ConQAT.Rating YELLOW Hash: 7A6E548157B1AFE6873C0FDA47A8C475
*/
public final class ElementWithURIPropertySection extends PropertySectionBase {
......@@ -66,9 +67,8 @@ public final class ElementWithURIPropertySection extends PropertySectionBase {
super.refresh();
IObservableValue modelObservable =
ObservableUtils.observeValue(elementWithURI,
observeValue(elementWithURI,
FortissToolingKernelPackage.Literals.IELEMENT_WITH_URI__URI);
dbc.bindValue(SWTObservables.observeText(uriText, SWT.FocusOut), modelObservable, null,
null);
dbc.bindValue(observeText(uriText, SWT.FocusOut), modelObservable, null, null);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment