1 /*******************************************************************************
2 * Copyright (c) 2014 Ericsson
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 * Matthew Khouzam - Initial API and implementation
10 *******************************************************************************/
12 package org
.eclipse
.linuxtools
.btf
.ui
;
14 import org
.eclipse
.core
.runtime
.IAdapterFactory
;
15 import org
.eclipse
.linuxtools
.btf
.core
.event
.BtfEvent
;
16 import org
.eclipse
.ui
.views
.properties
.IPropertySource
;
19 * Btf Event Adaptor Factory
21 * @author Matthew Khouzam
23 public class BtfEventAdapterFactory
implements IAdapterFactory
{
25 private static final Class
<?
>[] PROPERTIES
= new Class
[] {
30 public Class
<?
>[] getAdapterList() {
35 public Object
getAdapter(Object element
, Class key
) {
36 if (element
instanceof BtfEvent
&& IPropertySource
.class.equals(key
)) {
37 BtfEvent tmfEvent
= (BtfEvent
) element
;
38 return new BtfEventPropertySource(tmfEvent
);
This page took 0.075744 seconds and 5 git commands to generate.