1 /*******************************************************************************
2 * Copyright (c) 2013 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
.linuxtools
.tmf
.ui
.viewers
.events
;
13 import org
.eclipse
.core
.runtime
.IAdapterFactory
;
14 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEvent
;
15 import org
.eclipse
.ui
.views
.properties
.IPropertySource
;
18 * Implements basic UI support for TMF events.
22 public class TmfEventAdapterFactory
implements IAdapterFactory
{
24 private static Class
<?
>[] PROPERTIES
= new Class
[] {
29 public Class
<?
>[] getAdapterList() {
34 public Object
getAdapter(Object element
, Class key
) {
35 ITmfEvent tmfEvent
= (ITmfEvent
) element
;
36 if (IPropertySource
.class.equals(key
)) {
37 return new TmfEventPropertySource(tmfEvent
);
This page took 0.041568 seconds and 5 git commands to generate.