Commit | Line | Data |
---|---|---|
faa38350 | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2012, 2014 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 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.ui.editors; |
faa38350 PT |
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 | * | |
faa38350 | 23 | * @author Patrick Tasse |
faa38350 PT |
24 | */ |
25 | public class UnsortedPropertySheetPage extends PropertySheetPage { | |
26 | ||
faa38350 PT |
27 | @Override |
28 | public void createControl(Composite parent) { | |
29 | super.createControl(parent); | |
30 | // Override for unsorted property sheet page | |
31 | // See bug 1883 comment 43 and bug 109617 | |
32 | setSorter(new PropertySheetSorter() { | |
33 | @Override | |
34 | public void sort(IPropertySheetEntry[] entries) { | |
35 | } | |
36 | }); | |
37 | } | |
38 | ||
39 | } |