@@ -0,0 +1,1725 @@
+/*%0A * Perfclispe%0A * %0A * %0A * Copyright (c) 2013 Jakub Knetl%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.perfclipse.ui.swt.widgets;%0A%0Aimport org.eclipse.swt.SWT;%0Aimport org.eclipse.swt.layout.RowLayout;%0Aimport org.eclipse.swt.widgets.Button;%0Aimport org.eclipse.swt.widgets.Composite;%0A%0A/**%0A * @author Jakub Knetl%0A *%0A */%0Apublic class TableViewerControl extends Composite %7B%0A%0A%0A%09private Button addElementButton;%0A%09private Button editElementButton;%0A%09private Button deleteElementButton;%0A%0A%09/**%0A%09 * @param parent%0A%09 * @param style%0A%09 */%0A%09public TableViewerControl(Composite parent, boolean hasEditButton, int style) %7B%0A%09%09super(parent, style);%0A%09%09%0A%09%09setLayout(new RowLayout(SWT.VERTICAL));%0A%09%09%0A%09%09addElementButton = new Button(this, SWT.PUSH);%0A%09%09addElementButton.setText(%22Add%22);%0A%09%09%0A%09%09if (hasEditButton)%7B%0A%09%09%09editElementButton = new Button(this, SWT.PUSH);%0A%09%09%09editElementButton.setText(%22Edit%22);%0A%09%09%7D%0A%09%09%0A%09%09deleteElementButton = new Button(this, SWT.PUSH);%0A%09%09deleteElementButton.setText(%22Delete%22);%0A%09%7D%0A%0A%09public Button getAddElementButton() %7B%0A%09%09return addElementButton;%0A%09%7D%0A%09public Button getEditElementButton() %7B%0A%09%09return editElementButton;%0A%09%7D%0A%09public Button getDeleteElementButton() %7B%0A%09%09return deleteElementButton;%0A%09%7D%0A%7D%0A

Add composite widget for tableViewer contorls