Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.gmf/src/org/eclipse/emf/cdo/dawn/gmf/util/DawnDiagramUpdater.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.gmf/src/org/eclipse/emf/cdo/dawn/gmf/util/DawnDiagramUpdater.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn.gmf/src/org/eclipse/emf/cdo/dawn/gmf/util/DawnDiagramUpdater.java b/plugins/org.eclipse.emf.cdo.dawn.gmf/src/org/eclipse/emf/cdo/dawn/gmf/util/DawnDiagramUpdater.java
index 5fadbb52f1..7c4f1ab225 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.gmf/src/org/eclipse/emf/cdo/dawn/gmf/util/DawnDiagramUpdater.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.gmf/src/org/eclipse/emf/cdo/dawn/gmf/util/DawnDiagramUpdater.java
@@ -102,8 +102,7 @@ public class DawnDiagramUpdater
protected void doExecute()
{
// ((ExamplediagramDocumentProvider)getDocumentProvider()).changed(getEditorInput());
- ISelection selection = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService()
- .getSelection();
+ ISelection selection = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService().getSelection();
if (selection instanceof IStructuredSelection)
{
IStructuredSelection structuredSelection = (IStructuredSelection)selection;
@@ -111,8 +110,7 @@ public class DawnDiagramUpdater
{
return;
}
- if (structuredSelection.getFirstElement() instanceof EditPart
- && ((EditPart)structuredSelection.getFirstElement()).getModel() instanceof View)
+ if (structuredSelection.getFirstElement() instanceof EditPart && ((EditPart)structuredSelection.getFirstElement()).getModel() instanceof View)
{
EObject modelElement = ((View)((EditPart)structuredSelection.getFirstElement()).getModel()).getElement();
List<?> editPolicies = CanonicalEditPolicy.getRegisteredEditPolicies(modelElement);
@@ -389,8 +387,7 @@ public class DawnDiagramUpdater
ECrossReferenceAdapter crossreferenceAdapter = ECrossReferenceAdapter.getCrossReferenceAdapter(element);
if (crossreferenceAdapter != null)
{
- Collection<EStructuralFeature.Setting> iinverseReferences = crossreferenceAdapter
- .getNonNavigableInverseReferences(element);
+ Collection<EStructuralFeature.Setting> iinverseReferences = crossreferenceAdapter.getNonNavigableInverseReferences(element);
for (EStructuralFeature.Setting f : iinverseReferences)
{

Back to the top