|
Added
Link Here
|
| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2006-2009 IBM Corporation and others. |
| 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 |
| 7 |
* |
| 8 |
* Contributors: |
| 9 |
* ewuillai - initial implementation |
| 10 |
*******************************************************************************/ |
| 11 |
package org.eclipse.swt.nebula.examples.parts; |
| 12 |
|
| 13 |
import org.eclipse.nebula.widgets.ganttchart.GanttTester; |
| 14 |
import org.eclipse.swt.SWT; |
| 15 |
import org.eclipse.swt.events.SelectionAdapter; |
| 16 |
import org.eclipse.swt.events.SelectionEvent; |
| 17 |
import org.eclipse.swt.nebula.examples.AbstractExampleTab; |
| 18 |
import org.eclipse.swt.widgets.Button; |
| 19 |
import org.eclipse.swt.widgets.Composite; |
| 20 |
import org.eclipse.swt.widgets.Control; |
| 21 |
|
| 22 |
public class GanttExampleTab extends AbstractExampleTab { |
| 23 |
|
| 24 |
/** |
| 25 |
* @wbp.parser.entryPoint |
| 26 |
*/ |
| 27 |
public Control createControl(Composite parent) { |
| 28 |
int style = SWT.None; |
| 29 |
Button button = new Button(parent, style); |
| 30 |
button.setText("Run Extended Gantt Example"); |
| 31 |
button.addSelectionListener(new SelectionAdapter() { |
| 32 |
public void widgetSelected(SelectionEvent e) { |
| 33 |
new GanttTester(); |
| 34 |
} |
| 35 |
}); |
| 36 |
|
| 37 |
return button; |
| 38 |
} |
| 39 |
|
| 40 |
public String[] createLinks() { |
| 41 |
return null; |
| 42 |
} |
| 43 |
|
| 44 |
public void createParameters(Composite parent) { |
| 45 |
|
| 46 |
} |
| 47 |
|
| 48 |
} |