1 17 package org.eclipse.emf.test.tools.merger; 18 19 import source.ClassA; 20 import source.ClassB; 21 22 33 public class MergerExample 34 { 35 private int a1 = 1; 36 37 40 int a2 = 2; 41 42 46 protected int a3 = 3; 47 48 54 public int a4 = 4; 55 56 63 protected int a5 = 5; 64 65 66 67 68 74 protected String id = "source"; 75 76 82 protected boolean newAttribute = true; 83 84 93 public boolean isID() 94 { 95 System.out.println("Source user code 1"); 97 System.out.println("Source code 2"); 99 return id == "source"; 100 } 101 102 110 public void setID(boolean value) 111 { 112 System.out.println("Source code 3"); 113 id = value ? "source" : "target"; 114 } 115 116 125 protected Object sourceRequired() 126 { 127 System.out.println("Source code 4"); 128 } 129 130 138 private void methodWithTargetWithoutUserSections() 139 { 140 System.out.println("Source user code 5"); 142 System.out.println("Source code 6"); 144 } 145 146 150 private void methodWithSourceWithoutUserSections() 151 { 152 System.out.println("Source code 7"); 153 } 154 155 159 private void methodWithoutUserSections() 160 { 161 System.out.println("Source code 8"); 162 } 163 } | Popular Tags |