|
Lines 1-5
Link Here
|
| 1 |
/********************************************************************** |
1 |
/********************************************************************** |
| 2 |
* Copyright (c) 2006 Intel Corporation. |
2 |
* Copyright (c) 2006, 2007 Intel Corporation. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 158-183
Link Here
|
| 158 |
else if(selection instanceof TRCMethodInvocation) |
158 |
else if(selection instanceof TRCMethodInvocation) |
| 159 |
method = ((TRCMethodInvocation)selection).getMethod(); |
159 |
method = ((TRCMethodInvocation)selection).getMethod(); |
| 160 |
|
160 |
|
| 161 |
if(method != null) |
161 |
if (method != null) { |
| 162 |
{ |
162 |
String className = ""; |
| 163 |
String packName = method.getDefiningClass().getPackage().getName(); |
163 |
String packName = ""; |
| 164 |
if(packName.length() > 0) |
164 |
if (method.getDefiningClass() != null) { |
| 165 |
{ |
165 |
className = method.getDefiningClass().getName(); |
| 166 |
methodName.append(": ").append(packName).append(".") |
166 |
if (method.getDefiningClass().getPackage() != null) |
| 167 |
.append(method.getDefiningClass().getName()).append(".") |
167 |
packName = method.getDefiningClass().getPackage().getName(); |
| 168 |
.append(method.getName()).append(method.getSignature()); |
|
|
| 169 |
|
| 170 |
} |
168 |
} |
| 171 |
else |
169 |
if (packName.length() > 0) { |
| 172 |
{ |
170 |
methodName.append(": ").append(packName).append(".") |
| 173 |
methodName.append(": ").append(packName) |
171 |
.append(className).append(".") |
| 174 |
.append(method.getDefiningClass().getName()).append(".") |
172 |
.append(method.getName()).append(method.getSignature()); |
| 175 |
.append(method.getName()).append(method.getSignature()); |
173 |
} else { |
|
|
174 |
methodName.append(": ") |
| 175 |
.append(className).append(".") |
| 176 |
.append(method.getName()).append(method.getSignature()); |
| 176 |
} |
177 |
} |
| 177 |
} |
178 |
} |
| 178 |
} |
179 |
} else { |
| 179 |
else |
|
|
| 180 |
{ |
| 181 |
methodName.append(": ").append(TraceUIMessages._171); |
180 |
methodName.append(": ").append(TraceUIMessages._171); |
| 182 |
} |
181 |
} |
| 183 |
|
182 |
|