Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a0c4491f77264e522291f09142a9022f6acc0d57 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*******************************************************************************
 * Copyright (c) 2012-2013 Red Hat, Inc.
 * 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:
 *     Red Hat - initial API and implementation
 *******************************************************************************/
package org.eclipse.linuxtools.systemtap.graphing.ui.views;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.linuxtools.internal.systemtap.graphing.ui.views.Messages;
import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;

/**
 * @since 3.0 Migrated from .ui.graphing package.
 */
public class GraphSelectorEditorInput implements IEditorInput {

    private String title = null;

    public GraphSelectorEditorInput() {
        title = Messages.GraphSelectorEditor_graphsEditorDefaultTitle;
    }

    /**
     * Creates the editor input with the given title.
     * @param scriptTitle The title.
     * @since 2.2
     */
    public GraphSelectorEditorInput(String scriptTitle) {
        title = NLS.bind(Messages.GraphSelectorEditor_graphsEditorTitle, scriptTitle);
    }

    @Override
    public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
        return null;
    }

    @Override
    public boolean exists() {
        return false;
    }

    @Override
    public ImageDescriptor getImageDescriptor() {
        return null;
    }

    @Override
    public String getName() {
        return null;
    }

    @Override
    public IPersistableElement getPersistable() {
        return null;
    }

    @Override
    public String getToolTipText() {
        return title;
    }

}

Back to the top