KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > views > registers > RegistersView


1 /**********************************************************************
2  * Copyright (c) 2004, 2005 QNX Software Systems 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  * QNX Software Systems - Initial API and implementation
10 ***********************************************************************/

11 package org.eclipse.debug.internal.ui.views.registers;
12
13 import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
14 import org.eclipse.debug.internal.ui.preferences.IDebugPreferenceConstants;
15 import org.eclipse.debug.internal.ui.views.variables.VariablesView;
16 import org.eclipse.debug.ui.IDebugUIConstants;
17 import org.eclipse.jface.action.IToolBarManager;
18 import org.eclipse.jface.action.Separator;
19
20 /**
21  * Displays registers and their values with a detail area.
22  */

23 public class RegistersView extends VariablesView {
24     
25     /**
26      * @see org.eclipse.debug.ui.AbstractDebugView#getHelpContextId()
27      */

28     protected String JavaDoc getHelpContextId() {
29         return IDebugHelpContextIds.REGISTERS_VIEW;
30     }
31
32     /**
33      * @see org.eclipse.debug.ui.AbstractDebugView#configureToolBar(org.eclipse.jface.action.IToolBarManager)
34      */

35     protected void configureToolBar(IToolBarManager tbm) {
36         super.configureToolBar(tbm);
37         tbm.add(new Separator(IDebugUIConstants.EMPTY_REGISTER_GROUP));
38         tbm.add(new Separator(IDebugUIConstants.REGISTER_GROUP));
39     }
40
41     /**
42      * @see org.eclipse.debug.internal.ui.views.variables.VariablesView#getDetailPanePreferenceKey()
43      */

44     protected String JavaDoc getDetailPanePreferenceKey() {
45         return IDebugPreferenceConstants.REGISTERS_DETAIL_PANE_ORIENTATION;
46     }
47
48     /**
49      * @see org.eclipse.debug.internal.ui.views.variables.VariablesView#getToggleActionLabel()
50      */

51     protected String JavaDoc getToggleActionLabel() {
52         return RegistersViewMessages.RegistersView_0;
53     }
54     
55     /* (non-Javadoc)
56      * @see org.eclipse.debug.internal.ui.views.variables.VariablesView#getPresentationContextId()
57      */

58     protected String JavaDoc getPresentationContextId() {
59         return IDebugUIConstants.ID_REGISTER_VIEW;
60     }
61
62 }
63
Popular Tags