1 15 package org.eclipse.emf.test.tools.merger; 16 17 import source.ClassA; 18 import target.ClassA; 19 20 21 32 public class MergerExample 33 { 34 38 private int a1 = -1; 39 40 44 private int a2 = -2; 45 46 50 private int a3 = -3; 51 52 59 private int a4 = -4; 60 61 68 private int a5 = -5; 69 70 71 72 73 74 82 protected String id = "target"; 83 84 94 public boolean isID() 95 { 96 System.out.println("Target user code 2"); 98 System.out.println("Target code 3"); 100 return id == "target"; 101 } 102 103 113 public void setID(boolean value) 114 { 115 id = value ? "target" : "source"; 116 System.out.println("Target code 4"); 117 } 118 119 127 protected Object sourceRequired() 128 { 129 System.out.println("Target code 5"); 130 } 131 132 136 private void methodWithTargetWithoutUserSections() 137 { 138 System.out.println("Target code 6"); 139 } 140 141 149 private void methodWithSourceWithoutUserSections() 150 { 151 System.out.println("Target user code 7"); 153 System.out.println("Target code 8"); 155 } 156 157 161 private void methodWithoutUserSections() 162 { 163 System.out.println("Target code 9"); 164 } 165 } | Popular Tags |