1
/*******************************************************************************
2
* Copyright (c) 2008 ARM Limited and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* ARM Limited - Initial API and implementation
10
*******************************************************************************/
12
package org.eclipse.cdt.debug.internal.ui.disassembly.editor;
14
import org.eclipse.jface.resource.ImageDescriptor;
15
import org.eclipse.ui.IEditorInput;
16
import org.eclipse.ui.IPersistableElement;
18
public class DisassemblyEditorInput implements IEditorInput {
20
private Object fDebugContext;
21
private Object fDisassemblyContext;
23
public DisassemblyEditorInput( Object debugContext, Object disassemblyContext ) {
24
fDisassemblyContext = disassemblyContext;
25
fDebugContext = debugContext;
29
* @see org.eclipse.ui.IEditorInput#exists()
31
public boolean exists() {
32
// TODO Auto-generated method stub
37
* @see org.eclipse.ui.IEditorInput#getImageDescriptor()
39
public ImageDescriptor getImageDescriptor() {
40
// TODO Auto-generated method stub
45
* @see org.eclipse.ui.IEditorInput#getName()
47
public String getName() {
48
// TODO Auto-generated method stub
49
return ""; //$NON-NLS-1$
53
* @see org.eclipse.ui.IEditorInput#getPersistable()
55
public IPersistableElement getPersistable() {
56
// TODO Auto-generated method stub
61
* @see org.eclipse.ui.IEditorInput#getToolTipText()
63
public String getToolTipText() {
64
// TODO Auto-generated method stub
65
return ""; //$NON-NLS-1$
69
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
71
@SuppressWarnings("unchecked")
72
public Object getAdapter( Class adapter ) {
73
// TODO Auto-generated method stub
77
public Object getDisassemblyContext() {
78
return fDisassemblyContext;
81
public Object getDebugContext() {