1 /* 2 * Copyright (C) 2012 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.ide.eclipse.gltrace.views.detail; 18 19 import org.eclipse.jface.action.IContributionItem; 20 import org.eclipse.swt.widgets.Composite; 21 import org.eclipse.swt.widgets.Control; 22 23 import java.util.List; 24 25 public interface IDetailProvider { 26 /** Create the controls to display the details. */ createControl(Composite parent)27 void createControl(Composite parent); 28 29 /** Dispose off any created controls. */ disposeControl()30 void disposeControl(); 31 32 /** Obtain the top level control used by this detail provider. */ getControl()33 Control getControl(); 34 35 36 /** Obtain a list of tool bar items to be displayed when this provider is active. */ getToolBarItems()37 List<IContributionItem> getToolBarItems(); 38 } 39