trace/traceviewer/com.nokia.traceviewer/src/com/nokia/traceviewer/engine/preferences/TraceViewerPluginsPreferencesPage.java
changeset 11 5b9d4d8641ce
equal deleted inserted replaced
10:ed1c9f64298a 11:5b9d4d8641ce
       
     1 /*
       
     2  * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:
       
    15  *
       
    16  * Preference page for TraceViewer Plugins
       
    17  *
       
    18  */
       
    19 package com.nokia.traceviewer.engine.preferences;
       
    20 
       
    21 import org.eclipse.jface.preference.PreferencePage;
       
    22 import org.eclipse.swt.SWT;
       
    23 import org.eclipse.swt.widgets.Composite;
       
    24 import org.eclipse.swt.widgets.Control;
       
    25 import org.eclipse.swt.widgets.Label;
       
    26 import org.eclipse.ui.IWorkbench;
       
    27 import org.eclipse.ui.IWorkbenchPreferencePage;
       
    28 import org.eclipse.ui.PlatformUI;
       
    29 
       
    30 import com.nokia.traceviewer.TraceViewerHelpContextIDs;
       
    31 
       
    32 /**
       
    33  * Preference page for TraceViewer Plugins
       
    34  * 
       
    35  */
       
    36 public class TraceViewerPluginsPreferencesPage extends PreferencePage implements
       
    37 		IWorkbenchPreferencePage {
       
    38 
       
    39 	/*
       
    40 	 * (non-Javadoc)
       
    41 	 * 
       
    42 	 * @see
       
    43 	 * org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse
       
    44 	 * .swt.widgets.Composite)
       
    45 	 */
       
    46 	@Override
       
    47 	protected Control createContents(Composite parent) {
       
    48 
       
    49 		// Set help
       
    50 		PlatformUI.getWorkbench().getHelpSystem().setHelp(parent,
       
    51 				TraceViewerHelpContextIDs.PLUGINS_PREFERENCES);
       
    52 
       
    53 		noDefaultAndApplyButton();
       
    54 
       
    55 		// Title label
       
    56 		Label titleLabel = new Label(parent, SWT.NONE);
       
    57 		titleLabel.setText(Messages
       
    58 				.getString("TraceViewerPluginsPreferencesPage.TitleLabel")); //$NON-NLS-1$
       
    59 
       
    60 		// Spacer
       
    61 		new Label(parent, SWT.NONE);
       
    62 
       
    63 		// More information
       
    64 		Label infoLabel = new Label(parent, SWT.NONE);
       
    65 		infoLabel.setText(Messages
       
    66 				.getString("TraceViewerPluginsPreferencesPage.InfoLabel")); //$NON-NLS-1$
       
    67 		return parent;
       
    68 	}
       
    69 
       
    70 	/*
       
    71 	 * (non-Javadoc)
       
    72 	 * 
       
    73 	 * @see
       
    74 	 * org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
       
    75 	 */
       
    76 	public void init(IWorkbench workbench) {
       
    77 	}
       
    78 }