~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/RegistersViewColumnPresentationFactory.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
7
 *
 
8
 * Contributors:
 
9
 * CodeSourcery - Initial API and implementation
 
10
 *******************************************************************************/
 
11
 
 
12
package org.eclipse.cdt.debug.internal.ui.elements.adapters;
 
13
 
 
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;
 
18
 
 
19
public class RegistersViewColumnPresentationFactory implements IColumnPresentationFactory {
 
20
 
 
21
    /* (non-Javadoc)
 
22
     * @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentationFactory#createColumnPresentation(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.Object)
 
23
     */
 
24
    public IColumnPresentation createColumnPresentation( IPresentationContext context, Object element ) {
 
25
        if ( context.getId().equals( IDebugUIConstants.ID_REGISTER_VIEW ) )
 
26
            return new RegistersViewColumnPresentation();
 
27
        return null;
 
28
    }
 
29
 
 
30
    /* (non-Javadoc)
 
31
     * @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentationFactory#getColumnPresentationId(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.Object)
 
32
     */
 
33
    public String getColumnPresentationId( IPresentationContext context, Object element ) {
 
34
        if ( context.getId().equals( IDebugUIConstants.ID_REGISTER_VIEW ) )
 
35
            return RegistersViewColumnPresentation.ID;
 
36
        return null;
 
37
    }
 
38
}