Source:
public SiriusEditor() { super(); List<AdapterFactory> factories = new ArrayList<AdapterFactory>(); factories.add(DialectUIManager.INSTANCE.createAdapterFactory()); factories.add(FeatureExtensionsUIManager.INSTANCE.createAdapterFactory()); factories.add(new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE)); factories.add(new ResourceItemProviderAdapterFactory()); factories.add(new ViewpointItemProviderAdapterFactory()); factories.add(new DescriptionItemProviderAdapterFactory()); factories.add(new StyleItemProviderAdapterFactory()); factories.add(new ToolItemProviderAdapterFactory()); factories.add(new ValidationItemProviderAdapterFactory()); factories.add(new AuditItemProviderAdapterFactory()); factories.add(new ConcernItemProviderAdapterFactory()); factories.add(new DiagramItemProviderAdapterFactory()); factories.add(new DescriptionItemProviderAdapterFactory()); factories.add(new FilterItemProviderAdapterFactory()); factories.add(new ReflectiveItemProviderAdapterFactory()); adapterFactory = new ComposedAdapterFactory(factories); BasicCommandStack commandStack = new BasicCommandStack(); commandStack.addCommandStackListener(new CommandStackListener() { public void commandStackChanged(final EventObject event) { getContainer().getDisplay().asyncExec(new Runnable() { public void run() { firePropertyChange(IEditorPart.PROP_DIRTY); Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand(); if (mostRecentCommand != null) { setSelectionToViewer(mostRecentCommand.getAffectedObjects()); } if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed() && propertySheetPage.getCurrentTab() != null) { propertySheetPage.refresh(); } } }); } }); editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new HashMap<Resource, Boolean>()); }

Target:
public SiriusEditor() { super(); List<AdapterFactory> factories = new ArrayList<AdapterFactory>(); factories.add(DialectUIManager.INSTANCE.createAdapterFactory()); factories.add(FeatureExtensionsUIManager.INSTANCE.createAdapterFactory()); factories.add(new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE)); factories.add(new org.eclipse.sirius.diagram.description.provider.DescriptionItemProviderAdapterFactory()); factories.add(new ResourceItemProviderAdapterFactory()); factories.add(new ViewpointItemProviderAdapterFactory()); factories.add(new DescriptionItemProviderAdapterFactory()); factories.add(new StyleItemProviderAdapterFactory()); factories.add(new ToolItemProviderAdapterFactory()); factories.add(new ValidationItemProviderAdapterFactory()); factories.add(new AuditItemProviderAdapterFactory()); factories.add(new ConcernItemProviderAdapterFactory()); factories.add(new DiagramItemProviderAdapterFactory()); factories.add(new DescriptionItemProviderAdapterFactory()); factories.add(new FilterItemProviderAdapterFactory()); factories.add(new ReflectiveItemProviderAdapterFactory()); adapterFactory = new ComposedAdapterFactory(factories); BasicCommandStack commandStack = new BasicCommandStack(); commandStack.addCommandStackListener(new CommandStackListener() { public void commandStackChanged(final EventObject event) { getContainer().getDisplay().asyncExec(new Runnable() { public void run() { firePropertyChange(IEditorPart.PROP_DIRTY); Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand(); if (mostRecentCommand != null) { setSelectionToViewer(mostRecentCommand.getAffectedObjects()); } if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed() && propertySheetPage.getCurrentTab() != null) { propertySheetPage.refresh(); } } }); } }); editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new HashMap<Resource, Boolean>()); }