Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 63d29cccf6e68f0f6588e2b0a601e88fa8d9d99d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*******************************************************************************
 * Copyright (c) 2008, 2013 Wind River Systems, Inc. and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.tcf.internal.cdt.ui.breakpoints;

import java.util.HashSet;
import java.util.Set;

import org.eclipse.debug.ui.IDetailPane;
import org.eclipse.debug.ui.IDetailPaneFactory;
import org.eclipse.jface.viewers.IStructuredSelection;

/**
 *
 */
public class TCFBreakpointScopeDetailPaneFactory implements IDetailPaneFactory {

    public IDetailPane createDetailPane(String paneID) {
        assert paneID.equals(TCFBreakpointScopeDetailPane.ID);
        return new TCFBreakpointScopeDetailPane();
    }

    public String getDefaultDetailPane(IStructuredSelection selection) {
        return TCFBreakpointScopeDetailPane.ID;
    }

    public String getDetailPaneDescription(String paneID) {
        return TCFBreakpointScopeDetailPane.NAME;
    }

    public String getDetailPaneName(String paneID) {
        return TCFBreakpointScopeDetailPane.DESC;
    }

    public Set<String> getDetailPaneTypes(IStructuredSelection selection) {
        HashSet<String> set = new HashSet<String>();
        set.add(TCFBreakpointScopeDetailPane.ID);
        return set;
    }
}

Back to the top