1 /*******************************************************************************
2 * Copyright (c) 2013, 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 * Marc-Andre Laperle - Initial API and implementation
10 *******************************************************************************/
11 package org
.eclipse
.tracecompass
.tmf
.ui
.viewers
.events
;
13 import org
.eclipse
.core
.runtime
.IAdapterFactory
;
14 import org
.eclipse
.tracecompass
.tmf
.core
.event
.ITmfEvent
;
15 import org
.eclipse
.ui
.views
.properties
.IPropertySource
;
18 * Implements basic UI support for TMF events.
20 public class TmfEventAdapterFactory
implements IAdapterFactory
{
22 private static Class
<?
>[] PROPERTIES
= new Class
[] {
27 public Class
<?
>[] getAdapterList() {
32 public <T
> T
getAdapter(Object element
, Class
<T
> adapterType
) {
33 ITmfEvent tmfEvent
= (ITmfEvent
) element
;
34 if (IPropertySource
.class.equals(adapterType
)) {
35 return adapterType
.cast(new TmfEventPropertySource(tmfEvent
));
This page took 0.032901 seconds and 5 git commands to generate.