diff options
author | Eike Stepper | 2015-08-05 06:23:53 +0000 |
---|---|---|
committer | Eike Stepper | 2015-08-05 06:23:53 +0000 |
commit | 1682d9c3d1259173445650c4b90b07d3b8b393e6 (patch) | |
tree | 0cb7724ded7044f9db1c731e9f60ee00e6c84ebd /plugins/org.eclipse.emf.cdo.security.ui | |
parent | 431c9085bb8de86efb0e687711ab6b161bf7749b (diff) | |
download | cdo-1682d9c3d1259173445650c4b90b07d3b8b393e6.tar.gz cdo-1682d9c3d1259173445650c4b90b07d3b8b393e6.tar.xz cdo-1682d9c3d1259173445650c4b90b07d3b8b393e6.zip |
[Releng] Fix some warnings
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.security.ui')
2 files changed, 13 insertions, 12 deletions
diff --git a/plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/editor/AbstractSectionPart.java b/plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/editor/AbstractSectionPart.java index 2b78902b80..24afb0efc7 100644 --- a/plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/editor/AbstractSectionPart.java +++ b/plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/editor/AbstractSectionPart.java @@ -58,7 +58,7 @@ public abstract class AbstractSectionPart<T extends EObject> extends AbstractFor private DataBindingContext context; - private WritableValue value; + private WritableValue<Object> value; private IActionBars editorActionBars; @@ -91,7 +91,7 @@ public abstract class AbstractSectionPart<T extends EObject> extends AbstractFor protected void initDatabindings() { context = new EMFDataBindingContext(); - value = new WritableValue(context.getValidationRealm()); + value = new WritableValue<Object>(context.getValidationRealm()); } @Override @@ -168,7 +168,7 @@ public abstract class AbstractSectionPart<T extends EObject> extends AbstractFor return context; } - protected IObservableValue getValue() + protected IObservableValue<Object> getValue() { return value; } diff --git a/plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/util/OneToManyBlock.java b/plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/util/OneToManyBlock.java index f7909e5e60..196fe0a150 100644 --- a/plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/util/OneToManyBlock.java +++ b/plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/util/OneToManyBlock.java @@ -99,13 +99,13 @@ public class OneToManyBlock private final DataBindingContext context; - private final IObservableValue input; + private final IObservableValue<Object> input; private final IOneToManyConfiguration configuration; private final IFilter supportedContentFilter; - private IObservableList value; + private IObservableList<Object> value; private TableViewer viewer; @@ -132,7 +132,7 @@ public class OneToManyBlock this.domain = domain; this.adapterFactory = adapterFactory; configuration = blockConfig; - input = new WritableValue(context.getValidationRealm()); + input = new WritableValue<Object>(context.getValidationRealm()); supportedContentFilter = SecurityUIUtil.getSupportedElementFilter(configuration.getItemType()); } @@ -228,7 +228,7 @@ public class OneToManyBlock removeButton = toolkit.createButton(buttons, Messages.OneToManyBlock_2, SWT.PUSH); - final IObservableValue selection = ViewersObservables.observeSingleSelection(viewer); + final IObservableValue<?> selection = ViewersObservables.observeSingleSelection(viewer); context.bindValue(WidgetProperties.enabled().observe(newButton), input, null, ObjectWritableConverter.createUpdateValueStrategy()); @@ -387,7 +387,8 @@ public class OneToManyBlock new ActionBarsHelper(editorActionBars).addGlobalAction(ActionFactory.DELETE.getId(), removeAction).install(viewer); } - public void setInput(IObservableValue input) + @SuppressWarnings("unchecked") + public void setInput(IObservableValue<Object> input) { if (input != null) { @@ -539,17 +540,17 @@ public class OneToManyBlock }); } - protected void hookUnsupportedModelContentValidation(IObservableList observableList) + protected void hookUnsupportedModelContentValidation(IObservableList<Object> observableList) { // No need to hook a listener if there is no supported-content filter to check if (observableList != null && supportedContentFilter != null) { observableList.addChangeListener(new IChangeListener() { - + @SuppressWarnings("unchecked") public void handleChange(ChangeEvent event) { - checkUnsupportedModelContent((IObservableList)event.getObservable()); + checkUnsupportedModelContent((IObservableList<Object>)event.getObservable()); } }); @@ -558,7 +559,7 @@ public class OneToManyBlock } } - protected void checkUnsupportedModelContent(IObservableList observableList) + protected void checkUnsupportedModelContent(IObservableList<Object> observableList) { // Anything not matching the supported-content filter? for (Object element : observableList) |