KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > debug > ui > actions > OpenVariableTypeAction


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation 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
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.debug.ui.actions;
12
13
14 import org.eclipse.core.runtime.IAdaptable;
15 import org.eclipse.debug.core.model.IDebugElement;
16 import org.eclipse.jdt.debug.core.IJavaVariable;
17
18 /**
19  * Action to open a type associated with a selected variable.
20  */

21 public abstract class OpenVariableTypeAction extends OpenTypeAction {
22
23     /* (non-Javadoc)
24      * @see org.eclipse.jdt.internal.debug.ui.actions.OpenTypeAction#getDebugElement(org.eclipse.core.runtime.IAdaptable)
25      */

26     protected IDebugElement getDebugElement(IAdaptable element) {
27         return (IDebugElement)element.getAdapter(IJavaVariable.class);
28     }
29 }
30
Popular Tags