Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 194543
Collapse All | Expand All

(-)src/org/eclipse/hyades/trace/ui/internal/util/SaveUtil.java (-2 / +2 lines)
Lines 117-123 Link Here
117
			}
117
			}
118
			else if (obj instanceof TRCAgentProxy) {
118
			else if (obj instanceof TRCAgentProxy) {
119
				TRCAgentProxy agent = (TRCAgentProxy)obj;
119
				TRCAgentProxy agent = (TRCAgentProxy)obj;
120
				if (agent.getAgent() != null) {
120
				if (agent.getAgent() != null && agent.getAgent().eResource() != null) {
121
					try {
121
					try {
122
						org.eclipse.hyades.models.hierarchy.util.SaveUtil.saveResource(monitor, agent.getAgent().eResource());
122
						org.eclipse.hyades.models.hierarchy.util.SaveUtil.saveResource(monitor, agent.getAgent().eResource());
123
					}
123
					}
Lines 268-274 Link Here
268
			}
268
			}
269
			else if (obj instanceof TRCAgentProxy) {
269
			else if (obj instanceof TRCAgentProxy) {
270
				TRCAgentProxy a = (TRCAgentProxy)obj;
270
				TRCAgentProxy a = (TRCAgentProxy)obj;
271
				if (!a.eIsProxy()) {
271
				if (!a.eIsProxy() && a.getAgent() != null && a.getAgent().eResource() != null) {
272
					if (isReadOnly(a.getAgent().eResource())) {
272
					if (isReadOnly(a.getAgent().eResource())) {
273
						handleSaveReadOnlyException(a.getName(), a);
273
						handleSaveReadOnlyException(a.getName(), a);
274
						return false;
274
						return false;
(-)src/org/eclipse/hyades/trace/views/adapter/internal/ExecutionStatisticPage2.java (+9 lines)
Lines 180-185 Link Here
180
    }
180
    }
181
181
182
    public void dispose() {
182
    public void dispose() {
183
		super.dispose();
184
		
185
		_mofObject = null;  
186
		
187
		if(fContextMenu != null)
188
		   fContextMenu.dispose();
189
	   
190
		disposed = true;
191
    	
183
        if (_items != null) {
192
        if (_items != null) {
184
            for (int i = 0; i < _items.length; i++) {
193
            for (int i = 0; i < _items.length; i++) {
185
                _items[i].dispose();
194
                _items[i].dispose();
(-)src/org/eclipse/hyades/trace/ui/internal/util/PerftraceUtil.java (+12 lines)
Lines 1332-1337 Link Here
1332
1332
1333
   public static boolean hasMethodInvocationInfo(final EObject object) {
1333
   public static boolean hasMethodInvocationInfo(final EObject object) {
1334
		TRCAgentProxy agentProxy = getAgentProxy(object);
1334
		TRCAgentProxy agentProxy = getAgentProxy(object);
1335
		if(agentProxy == null){
1336
			return false;
1337
		}		
1335
		TRCCollectionMode mode = agentProxy.getCollectionMode();
1338
		TRCCollectionMode mode = agentProxy.getCollectionMode();
1336
1339
1337
		return (mode == TRCCollectionMode.EXECUTION_FULL_LITERAL
1340
		return (mode == TRCCollectionMode.EXECUTION_FULL_LITERAL
Lines 1344-1349 Link Here
1344
1347
1345
   public static boolean hasFullMethodInvocationInfo(final EObject object) {
1348
   public static boolean hasFullMethodInvocationInfo(final EObject object) {
1346
	   TRCAgentProxy agentProxy = getAgentProxy(object);
1349
	   TRCAgentProxy agentProxy = getAgentProxy(object);
1350
	   if(agentProxy == null){
1351
		   return false;
1352
	   }	   
1347
	   TRCCollectionMode mode = agentProxy.getCollectionMode();
1353
	   TRCCollectionMode mode = agentProxy.getCollectionMode();
1348
	   return mode == TRCCollectionMode.EXECUTION_FULL_LITERAL
1354
	   return mode == TRCCollectionMode.EXECUTION_FULL_LITERAL
1349
		|| mode == TRCCollectionMode.EXECUTION_NO_INSTANCES_LITERAL
1355
		|| mode == TRCCollectionMode.EXECUTION_NO_INSTANCES_LITERAL
Lines 1353-1358 Link Here
1353
   
1359
   
1354
   public static boolean hasExecutionInfo(final EObject object) {
1360
   public static boolean hasExecutionInfo(final EObject object) {
1355
	   TRCAgentProxy agentProxy = getAgentProxy(object);
1361
	   TRCAgentProxy agentProxy = getAgentProxy(object);
1362
	   if(agentProxy == null){
1363
		   return false;
1364
	   }
1356
	   TRCCollectionMode mode = agentProxy.getCollectionMode();
1365
	   TRCCollectionMode mode = agentProxy.getCollectionMode();
1357
	   return mode == TRCCollectionMode.EXECUTION_FULL_LITERAL
1366
	   return mode == TRCCollectionMode.EXECUTION_FULL_LITERAL
1358
				|| mode == TRCCollectionMode.HEAP_FULL_AND_EXECUTION_STATISTICS_ONLY_LITERAL
1367
				|| mode == TRCCollectionMode.HEAP_FULL_AND_EXECUTION_STATISTICS_ONLY_LITERAL
Lines 1365-1370 Link Here
1365
   
1374
   
1366
   public static boolean hasHeapInfo(final EObject object) {
1375
   public static boolean hasHeapInfo(final EObject object) {
1367
	   TRCAgentProxy agentProxy = getAgentProxy(object);
1376
	   TRCAgentProxy agentProxy = getAgentProxy(object);
1377
	   if(agentProxy == null){
1378
		   return false;
1379
	   }	   
1368
	   TRCCollectionMode mode = agentProxy.getCollectionMode();
1380
	   TRCCollectionMode mode = agentProxy.getCollectionMode();
1369
	   return mode == TRCCollectionMode.HEAP_FULL_LITERAL
1381
	   return mode == TRCCollectionMode.HEAP_FULL_LITERAL
1370
				|| mode == TRCCollectionMode.HEAP_FULL_AND_EXECUTION_STATISTICS_ONLY_LITERAL
1382
				|| mode == TRCCollectionMode.HEAP_FULL_AND_EXECUTION_STATISTICS_ONLY_LITERAL

Return to bug 194543