Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 323300 | Differences between
and this patch

Collapse All | Expand All

(-)META-INF/MANIFEST.MF (-1 / +2 lines)
Lines 16-22 Link Here
16
 org.eclipse.nebula.widgets.collapsiblebuttons,
16
 org.eclipse.nebula.widgets.collapsiblebuttons,
17
 org.eclipse.nebula.widgets.radiogroup,
17
 org.eclipse.nebula.widgets.radiogroup,
18
 org.eclipse.nebula.widgets.tablecombo,
18
 org.eclipse.nebula.widgets.tablecombo,
19
 org.eclipse.nebula.widgets.osgilloscope;bundle-version="1.0.0"
19
 org.eclipse.nebula.widgets.osgilloscope;bundle-version="1.0.0",
20
 org.eclipse.nebula.widgets.ganttchart;bundle-version="1.0.0"
20
Bundle-RequiredExecutionEnvironment: J2SE-1.4
21
Bundle-RequiredExecutionEnvironment: J2SE-1.4
21
Export-Package: org.eclipse.swt.nebula.examples
22
Export-Package: org.eclipse.swt.nebula.examples
22
Bundle-ClassPath: ./
23
Bundle-ClassPath: ./
(-)plugin.xml (+4 lines)
Lines 56-61 Link Here
56
            class="org.eclipse.swt.nebula.examples.parts.OscilloscopeExampleTab"
56
            class="org.eclipse.swt.nebula.examples.parts.OscilloscopeExampleTab"
57
            name="Oscilloscope">
57
            name="Oscilloscope">
58
      </tab>
58
      </tab>
59
      <tab
60
            class="org.eclipse.swt.nebula.examples.parts.GanttExampleTab"
61
            name="Gantt">
62
      </tab>
59
            
63
            
60
   </extension>
64
   </extension>
61
   <extension
65
   <extension
(-)src/org/eclipse/swt/nebula/examples/parts/GanttExampleTab.java (+48 lines)
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
}
(-)feature.xml (+7 lines)
Lines 122-125 Link Here
122
         version="0.0.0"
122
         version="0.0.0"
123
         unpack="false"/>
123
         unpack="false"/>
124
124
125
   <plugin
126
         id="org.eclipse.nebula.widgets.ganttchart"
127
         download-size="0"
128
         install-size="0"
129
         version="0.0.0"
130
         unpack="false"/>
131
125
</feature>
132
</feature>
(-)src/org/eclipse/nebula/widgets/ganttchart/GanttTester.java (-2 / +2 lines)
Lines 150-156 Link Here
150
    }
150
    }
151
151
152
    public GanttTester() {
152
    public GanttTester() {
153
        final Display display = new Display();
153
        final Display display = Display.getDefault(); //new Display();
154
        final Monitor m = display.getMonitors()[0];
154
        final Monitor m = display.getMonitors()[0];
155
        final Shell shell = new Shell(display);
155
        final Shell shell = new Shell(display);
156
        shell.setText("GanttChart Test Application");
156
        shell.setText("GanttChart Test Application");
Lines 231-237 Link Here
231
        }
231
        }
232
        display.removeListener(SWT.KeyDown, _undoRedoListener);
232
        display.removeListener(SWT.KeyDown, _undoRedoListener);
233
233
234
        display.dispose();
234
        shell.dispose();
235
    }
235
    }
236
236
237
    private Composite createEventLogTab(final Composite parent) {
237
    private Composite createEventLogTab(final Composite parent) {

Return to bug 323300