|
Lines 1-5
Link Here
|
| 1 |
/********************************************************************** |
1 |
/********************************************************************** |
| 2 |
* Copyright (c) 2005, 2006 IBM Corporation and others. |
2 |
* Copyright (c) 2005, 2007 IBM Corporation and others. |
| 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 147-153
Link Here
|
| 147 |
} |
147 |
} |
| 148 |
} |
148 |
} |
| 149 |
|
149 |
|
| 150 |
private boolean isModified(Object selObject) |
150 |
private boolean isModified(Object selObject) |
| 151 |
{ |
151 |
{ |
| 152 |
if(selObject != null) |
152 |
if(selObject != null) |
| 153 |
{ |
153 |
{ |
|
Lines 210-230
Link Here
|
| 210 |
|
210 |
|
| 211 |
} |
211 |
} |
| 212 |
|
212 |
|
| 213 |
private boolean isAgentModified(TRCAgentProxy agent) |
213 |
private boolean isAgentModified(TRCAgentProxy agent) |
| 214 |
{ |
214 |
{ |
| 215 |
if(agent.getType().equals(CommonUIConstants.PROFILE_AGENT_TYPE)) |
215 |
if(agent.getType().equals(CommonUIConstants.PROFILE_AGENT_TYPE)) |
| 216 |
{ |
216 |
{ |
| 217 |
if(agent.isCollectionData()) |
217 |
if(agent.isCollectionData()) |
| 218 |
return true; |
218 |
return true; |
| 219 |
|
219 |
|
| 220 |
if(agent.getAgent() != null && agent.getAgent().eResource() != null && |
220 |
if(agent.getAgent() != null && agent.getAgent().eResource() != null && |
| 221 |
agent.getAgent().eResource().isModified()) |
221 |
agent.getAgent().eResource().isModified() ) |
| 222 |
{ |
222 |
{ //defect 165231 |
| 223 |
agent.getAgent().eResource().setModified(false); |
223 |
//agent.getAgent().eResource().setModified(false); |
| 224 |
return true; |
224 |
return true; |
| 225 |
} |
225 |
} |
| 226 |
|
226 |
|
| 227 |
|
227 |
else |
| 228 |
return false; |
228 |
return false; |
| 229 |
} |
229 |
} |
| 230 |
else |
230 |
else |