sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/preferences/AdvancedPreferencePage.java
changeset 1 1050670c6980
child 6 f65f740e69f9
equal deleted inserted replaced
0:5ad7ad99af01 1:1050670c6980
       
     1 /*
       
     2  * Copyright (c) 2008-2009 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:  Definitions for the class AdvancedPreferencePage
       
    15  *
       
    16  */
       
    17 
       
    18 package com.nokia.s60tools.analyzetool.preferences;
       
    19 
       
    20 import org.eclipse.jface.preference.PreferencePage;
       
    21 import org.eclipse.swt.SWT;
       
    22 import org.eclipse.swt.layout.GridData;
       
    23 import org.eclipse.swt.layout.GridLayout;
       
    24 import org.eclipse.swt.widgets.Composite;
       
    25 import org.eclipse.swt.widgets.Control;
       
    26 import org.eclipse.swt.widgets.Label;
       
    27 import org.eclipse.ui.IWorkbench;
       
    28 import org.eclipse.ui.IWorkbenchPreferencePage;
       
    29 
       
    30 /**
       
    31  * This class implements AnalyzeTool advanced preference page.
       
    32  *
       
    33  * @author kihe
       
    34  *
       
    35  */
       
    36 public class AdvancedPreferencePage extends PreferencePage implements
       
    37 		IWorkbenchPreferencePage {
       
    38 
       
    39 	/** Label to display info text  */
       
    40 	private Label infoText;
       
    41 	
       
    42 
       
    43 	/**
       
    44 	 * Constructor.
       
    45 	 */
       
    46 	public AdvancedPreferencePage() {
       
    47 		super();
       
    48 	}
       
    49 
       
    50 
       
    51 	/**
       
    52 	 * Creates this preference page content.
       
    53 	 *
       
    54 	 * @param parent
       
    55 	 *            This preference page parent
       
    56 	 */
       
    57 	@Override
       
    58 	protected final Control createContents(final Composite parent) {
       
    59 
       
    60 		// create new composite
       
    61 		final Composite composite = new Composite(parent, SWT.TOP);
       
    62 
       
    63 		// create griddata for view
       
    64 		final GridData gridData = new GridData();
       
    65 		composite.setLayoutData(gridData);
       
    66 		final GridLayout gridLayout = new GridLayout();
       
    67 		gridLayout.horizontalSpacing = 0;
       
    68 		gridLayout.verticalSpacing = 0;
       
    69 		gridLayout.marginWidth = 0;
       
    70 		gridLayout.marginHeight = 0;
       
    71 		gridLayout.numColumns = 1;
       
    72 
       
    73 		// set layoyt of this view
       
    74 		composite.setLayout(gridLayout);
       
    75 
       
    76 		infoText = new Label(composite, INFORMATION);
       
    77 		infoText.setText("AnalyzeTool rom symbol definition is changed to project related definition. \nSelect project - properties - " +
       
    78 				"Carbide extensions - AnalyzeTool to define symbol file(s).");
       
    79 
       
    80 		return composite;
       
    81 	}
       
    82 
       
    83 	/*
       
    84 	 * (non-Javadoc)
       
    85 	 *
       
    86 	 * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
       
    87 	 */
       
    88 	public void init(final IWorkbench workbench) {
       
    89 		// MethodDeclaration/Block[count(BlockStatement) = 0 and
       
    90 		// @containsComment = 'false']
       
    91 	}
       
    92 }