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 174166
Collapse All | Expand All

(-)src/org/eclipse/hyades/trace/ui/internal/util/PDCoreUtil.java (-2 / +8 lines)
Lines 1-5 Link Here
1
/**********************************************************************
1
/**********************************************************************
2
 * Copyright (c) 2005, 2007 IBM Corporation and others.
2
 * Copyright (c) 2005, 2008 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 283-288 Link Here
283
    }
283
    }
284
     
284
     
285
	public static final void detachAgent(TRCAgentProxy agent) throws InactiveAgentException, InactiveProcessException {
285
	public static final void detachAgent(TRCAgentProxy agent) throws InactiveAgentException, InactiveProcessException {
286
		detachAgent(agent, true);
287
	}
288
289
	public static final void detachAgent(TRCAgentProxy agent,boolean deregistrate) throws InactiveAgentException, InactiveProcessException {
286
        TRCProcessProxy process = agent.getProcessProxy();
290
        TRCProcessProxy process = agent.getProcessProxy();
287
        String hostName = process.getNode().getName();
291
        String hostName = process.getNode().getName();
288
        Node node = PDCoreUtil.profileConnect(hostName, String.valueOf(process.getNode().getPort()));
292
        Node node = PDCoreUtil.profileConnect(hostName, String.valueOf(process.getNode().getPort()));
Lines 308-314 Link Here
308
//		LoadersUtils.deregisterAgentInstance(agent);
312
//		LoadersUtils.deregisterAgentInstance(agent);
309
//		LoadersUtils.deregisterAgentListener(agent);
313
//		LoadersUtils.deregisterAgentListener(agent);
310
314
311
        LoadersUtils.deregisterAgentProxyContext(agent);
315
        if (deregistrate) {
316
         LoadersUtils.deregisterAgentProxyContext(agent);
317
        }
312
        
318
        
313
        if (agent.isToProfileFile()) {
319
        if (agent.isToProfileFile()) {
314
            XMLTraceDataProcessor processor = (XMLTraceDataProcessor) LoadersUtils.locateDataProcessor(agent);
320
            XMLTraceDataProcessor processor = (XMLTraceDataProcessor) LoadersUtils.locateDataProcessor(agent);
(-)src/org/eclipse/hyades/trace/ui/internal/actions/NewSnapshotActionDelegate.java (-2 / +2 lines)
Lines 1-5 Link Here
1
/**********************************************************************
1
/**********************************************************************
2
 * Copyright (c) 2005, 2006 IBM Corporation and others.
2
 * Copyright (c) 2005, 2008 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 86-92 Link Here
86
86
87
		try
87
		try
88
		{
88
		{
89
			PDCoreUtil.detachAgent(fAgent);
89
			PDCoreUtil.detachAgent(fAgent,false);
90
90
91
			ProfileEvent event = UIPlugin.getDefault().getProfileEvent();
91
			ProfileEvent event = UIPlugin.getDefault().getProfileEvent();
92
92

Return to bug 174166