CloneSet171


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
40201.000statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
140774
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreEditor.java
240785
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/presentation/Ecore2XMLEditor.java
Next
Last
Clone Instance
1
Line Count
40
Source Line
774
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreEditor.java

adapterFactory.addAdapterFactory(new EcoreItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());
// Create the command stack that will notify this editor as commands are executed.
//
BasicCommandStack commandStack = new BasicCommandStack();
// Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus.
//
commandStack.addCommandStackListener(new CommandStackListener() {
                                       public void commandStackChanged( final EventObject event) {
                                         getContainer().getDisplay().asyncExec(new Runnable() {
                                                                                 public void run() {
                                                                                   firePropertyChange(IEditorPart.PROP_DIRTY);
                                                                                   // Try to select the affected objects.
                                                                                   //
                                                                                   Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand();
                                                                                   if (mostRecentCommand != null) {
                                                                                     setSelectionToViewer(mostRecentCommand.getAffectedObjects());
                                                                                   }
                                                                                   if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed()) {
                                                                                     propertySheetPage.refresh();
                                                                                   }
                                                                                 }
                                                                               } );
                                       }
                                     } );
// Create the editing domain with a special command stack.
//
editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new HashMap<Resource, Boolean>());


First
Previous
Clone Instance
2
Line Count
40
Source Line
785
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/presentation/Ecore2XMLEditor.java

adapterFactory.addAdapterFactory(new EcoreItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());
// Create the command stack that will notify this editor as commands are executed.
//
BasicCommandStack commandStack = new BasicCommandStack();
// Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus.
//
commandStack.addCommandStackListener(new CommandStackListener() {
                                       public void commandStackChanged( final EventObject event) {
                                         getContainer().getDisplay().asyncExec(new Runnable() {
                                                                                 public void run() {
                                                                                   firePropertyChange(IEditorPart.PROP_DIRTY);
                                                                                   // Try to select the affected objects.
                                                                                   //
                                                                                   Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand();
                                                                                   if (mostRecentCommand != null) {
                                                                                     setSelectionToViewer(mostRecentCommand.getAffectedObjects());
                                                                                   }
                                                                                   if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed()) {
                                                                                     propertySheetPage.refresh();
                                                                                   }
                                                                                 }
                                                                               } );
                                       }
                                     } );
// Create the editing domain with a special command stack.
//
editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new HashMap<Resource, Boolean>());


Clone AbstractionParameter Count: 0Parameter Bindings

adapterFactory.addAdapterFactory(new EcoreItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());
// Create the command stack that will notify this editor as commands are executed.
//
BasicCommandStack commandStack = new BasicCommandStack();
// Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus.
//
commandStack.addCommandStackListener(new CommandStackListener() {
                                       public void commandStackChanged( final EventObject event) {
                                         getContainer().getDisplay().asyncExec(new Runnable() {
                                                                                 public void run() {
                                                                                   firePropertyChange(IEditorPart.PROP_DIRTY);
                                                                                   // Try to select the affected objects.
                                                                                   //
                                                                                   Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand();
                                                                                   if (mostRecentCommand != null) {
                                                                                     setSelectionToViewer(mostRecentCommand.getAffectedObjects());
                                                                                   }
                                                                                   if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed()) {
                                                                                     propertySheetPage.refresh();
                                                                                   }
                                                                                 }
                                                                               } );
                                       }
                                     } );
// Create the editing domain with a special command stack.
//
editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new HashMap<Resource, Boolean>());
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None