|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2010 Alena Laskavaia and others. |
2 |
* Copyright (c) 2011 Alena Laskavaia and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 7-12
Link Here
|
| 7 |
* |
7 |
* |
| 8 |
* Contributors: |
8 |
* Contributors: |
| 9 |
* Alena Laskavaia - initial API and implementation |
9 |
* Alena Laskavaia - initial API and implementation |
|
|
10 |
* Sergey Prigogin (Google) |
| 10 |
*******************************************************************************/ |
11 |
*******************************************************************************/ |
| 11 |
package org.eclipse.cdt.codan.internal.ui.preferences; |
12 |
package org.eclipse.cdt.codan.internal.ui.preferences; |
| 12 |
|
13 |
|
|
Lines 25-44
Link Here
|
| 25 |
public class BuildPropertyPage extends FieldEditorPreferencePage implements IWorkbenchPropertyPage { |
26 |
public class BuildPropertyPage extends FieldEditorPreferencePage implements IWorkbenchPropertyPage { |
| 26 |
private IAdaptable element; |
27 |
private IAdaptable element; |
| 27 |
|
28 |
|
| 28 |
/** |
|
|
| 29 |
* |
| 30 |
*/ |
| 31 |
public BuildPropertyPage() { |
29 |
public BuildPropertyPage() { |
| 32 |
setPreferenceStore(CodanUIActivator.getDefault().getPreferenceStore()); |
30 |
setPreferenceStore(CodanUIActivator.getDefault().getCorePreferenceStore()); |
| 33 |
} |
31 |
} |
| 34 |
|
32 |
|
| 35 |
/* |
|
|
| 36 |
* (non-Javadoc) |
| 37 |
* |
| 38 |
* @see |
| 39 |
* org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors |
| 40 |
* () |
| 41 |
*/ |
| 42 |
@Override |
33 |
@Override |
| 43 |
protected void createFieldEditors() { |
34 |
protected void createFieldEditors() { |
| 44 |
addField(new LabelFieldEditor("Set launch method for checkers, you can override this by editing individual problem settings", |
35 |
addField(new LabelFieldEditor("Set launch method for checkers, you can override this by editing individual problem settings", |
|
Lines 87-95
Link Here
|
| 87 |
/* |
78 |
/* |
| 88 |
* (non-Javadoc) |
79 |
* (non-Javadoc) |
| 89 |
* |
80 |
* |
| 90 |
* @see |
81 |
* @see org.eclipse.ui.IWorkbenchPropertyPage#setElement(org.eclipse.core.runtime.IAdaptable) |
| 91 |
* org.eclipse.ui.IWorkbenchPropertyPage#setElement(org.eclipse.core.runtime |
|
|
| 92 |
* .IAdaptable) |
| 93 |
*/ |
82 |
*/ |
| 94 |
public void setElement(IAdaptable element) { |
83 |
public void setElement(IAdaptable element) { |
| 95 |
this.element = element; |
84 |
this.element = element; |