Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortarendt2013-09-19 10:21:54 -0400
committertarendt2013-09-19 10:21:54 -0400
commit12189123991c30e5c29a399c0a197493b5281be3 (patch)
tree54d5734531c2d3c3d267254203153c4c8b1f70b5
parent66179a13021669c811b4bbb3bf05cbc9cdcc2296 (diff)
downloadorg.eclipse.emf.refactor.refactoring-12189123991c30e5c29a399c0a197493b5281be3.tar.gz
org.eclipse.emf.refactor.refactoring-12189123991c30e5c29a399c0a197493b5281be3.tar.xz
org.eclipse.emf.refactor.refactoring-12189123991c30e5c29a399c0a197493b5281be3.zip
getter and setter for editingdomain added
-rw-r--r--org.eclipse.emf.refactor.refactoring.runtime/bin/org/eclipse/emf/refactor/refactoring/runtime/ltk/LtkEmfRefactoringProcessorAdapter.classbin7868 -> 8515 bytes
-rw-r--r--org.eclipse.emf.refactor.refactoring.runtime/src/org/eclipse/emf/refactor/refactoring/runtime/ltk/LtkEmfRefactoringProcessorAdapter.java13
2 files changed, 12 insertions, 1 deletions
diff --git a/org.eclipse.emf.refactor.refactoring.runtime/bin/org/eclipse/emf/refactor/refactoring/runtime/ltk/LtkEmfRefactoringProcessorAdapter.class b/org.eclipse.emf.refactor.refactoring.runtime/bin/org/eclipse/emf/refactor/refactoring/runtime/ltk/LtkEmfRefactoringProcessorAdapter.class
index 91b0157..f3d1121 100644
--- a/org.eclipse.emf.refactor.refactoring.runtime/bin/org/eclipse/emf/refactor/refactoring/runtime/ltk/LtkEmfRefactoringProcessorAdapter.class
+++ b/org.eclipse.emf.refactor.refactoring.runtime/bin/org/eclipse/emf/refactor/refactoring/runtime/ltk/LtkEmfRefactoringProcessorAdapter.class
Binary files differ
diff --git a/org.eclipse.emf.refactor.refactoring.runtime/src/org/eclipse/emf/refactor/refactoring/runtime/ltk/LtkEmfRefactoringProcessorAdapter.java b/org.eclipse.emf.refactor.refactoring.runtime/src/org/eclipse/emf/refactor/refactoring/runtime/ltk/LtkEmfRefactoringProcessorAdapter.java
index c0a6baf..437a5d1 100644
--- a/org.eclipse.emf.refactor.refactoring.runtime/src/org/eclipse/emf/refactor/refactoring/runtime/ltk/LtkEmfRefactoringProcessorAdapter.java
+++ b/org.eclipse.emf.refactor.refactoring.runtime/src/org/eclipse/emf/refactor/refactoring/runtime/ltk/LtkEmfRefactoringProcessorAdapter.java
@@ -71,8 +71,16 @@ public class LtkEmfRefactoringProcessorAdapter
/**
* EditingDomain object of the EMF model.
*/
- protected final EditingDomain editingDomain;
+ protected EditingDomain editingDomain;
+ public EditingDomain getEditingDomain() {
+ return editingDomain;
+ }
+
+ public void setEditingDomain(EditingDomain editingDomain) {
+ this.editingDomain = editingDomain;
+ }
+
/**
* Private constructor used by other constructors.
* @param refactoring EMF Model Refactoring to be executed.
@@ -137,17 +145,20 @@ public class LtkEmfRefactoringProcessorAdapter
EditingDomain editingDomain =
AdapterFactoryEditingDomain
.getEditingDomainFor(selection.get(0));
+ System.out.println("====> editingDomain 1: " + editingDomain);
if (null == editingDomain){
ResourceSet rset =
selection.get(0).eResource().getResourceSet();
editingDomain = TransactionalEditingDomain.Factory.INSTANCE
.getEditingDomain(rset);
+ System.out.println("====> editingDomain 2: " + editingDomain);
}
if (null == editingDomain) {
ResourceSet rset =
selection.get(0).eResource().getResourceSet();
editingDomain = TransactionalEditingDomain.Factory.INSTANCE
.createEditingDomain(rset);
+ System.out.println("====> editingDomain 3: " + editingDomain);
}
return editingDomain;
}

Back to the top