Commit | Line | Data |
---|---|---|
faa38350 | 1 | /******************************************************************************* |
11252342 | 2 | * Copyright (c) 2012, 2013 Ericsson |
faa38350 PT |
3 | * |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Patrick Tasse - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.tmf.ui.editors; | |
14 | ||
15 | import org.eclipse.swt.widgets.Composite; | |
16 | import org.eclipse.ui.views.properties.IPropertySheetEntry; | |
17 | import org.eclipse.ui.views.properties.PropertySheetPage; | |
18 | import org.eclipse.ui.views.properties.PropertySheetSorter; | |
19 | ||
20 | /** | |
21 | * Property sheet page with empty sorter | |
22 | * | |
23 | * @version 1.0 | |
24 | * @author Patrick Tasse | |
25 | * @since 2.0 | |
26 | */ | |
27 | public class UnsortedPropertySheetPage extends PropertySheetPage { | |
28 | ||
faa38350 PT |
29 | @Override |
30 | public void createControl(Composite parent) { | |
31 | super.createControl(parent); | |
32 | // Override for unsorted property sheet page | |
33 | // See bug 1883 comment 43 and bug 109617 | |
34 | setSorter(new PropertySheetSorter() { | |
35 | @Override | |
36 | public void sort(IPropertySheetEntry[] entries) { | |
37 | } | |
38 | }); | |
39 | } | |
40 | ||
41 | } |