1
/*******************************************************************************
2
* Copyright (c) 2010 CodeSourcery 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
* CodeSourcery - Initial API and implementation
10
*******************************************************************************/
12
package org.eclipse.cdt.debug.internal.ui.elements.adapters;
14
import org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation;
15
import org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentationFactory;
16
import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
17
import org.eclipse.debug.ui.IDebugUIConstants;
19
public class RegistersViewColumnPresentationFactory implements IColumnPresentationFactory {
22
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentationFactory#createColumnPresentation(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.Object)
24
public IColumnPresentation createColumnPresentation( IPresentationContext context, Object element ) {
25
if ( context.getId().equals( IDebugUIConstants.ID_REGISTER_VIEW ) )
26
return new RegistersViewColumnPresentation();
31
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentationFactory#getColumnPresentationId(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.Object)
33
public String getColumnPresentationId( IPresentationContext context, Object element ) {
34
if ( context.getId().equals( IDebugUIConstants.ID_REGISTER_VIEW ) )
35
return RegistersViewColumnPresentation.ID;