mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 03:53:21 +02:00
Adjusted appearance of the Indexer preference page. Bug 274777.
This commit is contained in:
parent
ee0fc78270
commit
fb443eac63
3 changed files with 9 additions and 27 deletions
|
@ -141,7 +141,7 @@ public abstract class AbstractPreferencePage extends PreferencePage implements I
|
||||||
return checkBox;
|
return checkBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Group addGroupBox(Composite parent, String label, int nColumns ){
|
protected Group addGroupBox(Composite parent, String label, int nColumns) {
|
||||||
Group group = new Group(parent, SWT.NONE);
|
Group group = new Group(parent, SWT.NONE);
|
||||||
group.setText(label);
|
group.setText(label);
|
||||||
GridLayout layout = new GridLayout();
|
GridLayout layout = new GridLayout();
|
||||||
|
@ -153,8 +153,8 @@ public abstract class AbstractPreferencePage extends PreferencePage implements I
|
||||||
return group;
|
return group;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Control addTextField(Composite composite, String label, String key, int textLimit, int indentation, boolean isNumber) {
|
protected Control addTextField(Composite composite, String label, String key, int textLimit,
|
||||||
|
int indentation, boolean isNumber) {
|
||||||
Label labelControl = new Label(composite, SWT.NONE);
|
Label labelControl = new Label(composite, SWT.NONE);
|
||||||
labelControl.setText(label);
|
labelControl.setText(label);
|
||||||
GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
|
GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
|
||||||
|
@ -177,8 +177,8 @@ public abstract class AbstractPreferencePage extends PreferencePage implements I
|
||||||
return textControl;
|
return textControl;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void addComboBox(Composite composite, String label, String key, int textLimit, int indentation) {
|
protected void addComboBox(Composite composite, String label, String key, int textLimit,
|
||||||
|
int indentation) {
|
||||||
Label labelControl = new Label(composite, SWT.NONE);
|
Label labelControl = new Label(composite, SWT.NONE);
|
||||||
labelControl.setText(label);
|
labelControl.setText(label);
|
||||||
GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
|
GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
|
||||||
|
@ -194,7 +194,6 @@ public abstract class AbstractPreferencePage extends PreferencePage implements I
|
||||||
comboControl.setLayoutData(gd);
|
comboControl.setLayoutData(gd);
|
||||||
fComboBoxes.put(comboControl, key);
|
fComboBoxes.put(comboControl, key);
|
||||||
comboControl.addModifyListener(fComboBoxListener); // TODO: When will the listener be removed?
|
comboControl.addModifyListener(fComboBoxListener); // TODO: When will the listener be removed?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void addFiller(Composite composite) {
|
protected void addFiller(Composite composite) {
|
||||||
|
@ -298,9 +297,6 @@ public abstract class AbstractPreferencePage extends PreferencePage implements I
|
||||||
return composite;
|
return composite;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public AbstractPreferencePage() {
|
public AbstractPreferencePage() {
|
||||||
super();
|
super();
|
||||||
setPreferenceStore(PreferenceConstants.getPreferenceStore());
|
setPreferenceStore(PreferenceConstants.getPreferenceStore());
|
||||||
|
@ -310,7 +306,6 @@ public abstract class AbstractPreferencePage extends PreferencePage implements I
|
||||||
protected abstract OverlayPreferenceStore.OverlayKey[] createOverlayStoreKeys();
|
protected abstract OverlayPreferenceStore.OverlayKey[] createOverlayStoreKeys();
|
||||||
|
|
||||||
protected void initializeFields() {
|
protected void initializeFields() {
|
||||||
|
|
||||||
Iterator<Object> e = fColorButtons.keySet().iterator();
|
Iterator<Object> e = fColorButtons.keySet().iterator();
|
||||||
while (e.hasNext()) {
|
while (e.hasNext()) {
|
||||||
ColorSelector c = (ColorSelector) e.next();
|
ColorSelector c = (ColorSelector) e.next();
|
||||||
|
@ -343,8 +338,6 @@ public abstract class AbstractPreferencePage extends PreferencePage implements I
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
*
|
*
|
||||||
|
@ -384,5 +377,4 @@ public abstract class AbstractPreferencePage extends PreferencePage implements I
|
||||||
}
|
}
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,6 @@ import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
||||||
import org.eclipse.cdt.internal.core.model.CProject;
|
import org.eclipse.cdt.internal.core.model.CProject;
|
||||||
import org.eclipse.cdt.internal.core.pdom.indexer.IndexerPreferences;
|
import org.eclipse.cdt.internal.core.pdom.indexer.IndexerPreferences;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bogdan Gheorghe
|
* @author Bogdan Gheorghe
|
||||||
*/
|
*/
|
||||||
|
@ -198,15 +197,6 @@ public abstract class AbstractIndexerPage extends AbstractCOptionPage {
|
||||||
fSkipMacroReferences.setEnabled(!skipReferences);
|
fSkipMacroReferences.setEnabled(!skipReferences);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (fAllSources != null) {
|
|
||||||
final boolean all= fAllSources.getSelection();
|
|
||||||
if (fAllHeadersDefault != null) {
|
|
||||||
fAllHeadersDefault.setEnabled(all);
|
|
||||||
}
|
|
||||||
if (fAllHeadersAlt != null) {
|
|
||||||
fAllHeadersAlt.setEnabled(all);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getNotNull(Properties properties, String key) {
|
private String getNotNull(Properties properties, String key) {
|
||||||
|
@ -219,7 +209,7 @@ public abstract class AbstractIndexerPage extends AbstractCOptionPage {
|
||||||
|
|
||||||
private Text createParseUpFrontTextField(Composite page) {
|
private Text createParseUpFrontTextField(Composite page) {
|
||||||
Label l= ControlFactory.createLabel(page, DialogsMessages.AbstractIndexerPage_indexUpFront);
|
Label l= ControlFactory.createLabel(page, DialogsMessages.AbstractIndexerPage_indexUpFront);
|
||||||
((GridData) l.getLayoutData()).verticalIndent=5;
|
((GridData) l.getLayoutData()).verticalIndent= 5;
|
||||||
return ControlFactory.createTextField(page);
|
return ControlFactory.createTextField(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,10 @@ PreferenceScopeBlock_enableProjectSettings=Enable project specific settings
|
||||||
PreferenceScopeBlock_storeWithProject=Store settings with project
|
PreferenceScopeBlock_storeWithProject=Store settings with project
|
||||||
PreferenceScopeBlock_preferenceLink=<a>Configure Workspace Settings...</a>
|
PreferenceScopeBlock_preferenceLink=<a>Configure Workspace Settings...</a>
|
||||||
AbstractIndexerPage_heuristicIncludes=Allow heuristic resolution of includes
|
AbstractIndexerPage_heuristicIncludes=Allow heuristic resolution of includes
|
||||||
AbstractIndexerPage_indexAllFiles=Index all sources, including files that are not part of the build
|
AbstractIndexerPage_indexAllFiles=Index source files not included in the build
|
||||||
AbstractIndexerPage_indexAllHeaders=Index unused headers
|
AbstractIndexerPage_indexAllHeaders=Index unused headers
|
||||||
AbstractIndexerPage_indexAllHeadersC=Index unused headers as c-files
|
AbstractIndexerPage_indexAllHeadersC=Index unused headers as C files
|
||||||
AbstractIndexerPage_indexAllHeadersCpp=Index unused headers as c++-files
|
AbstractIndexerPage_indexAllHeadersCpp=Index unused headers as C++ files
|
||||||
AbstractIndexerPage_skipAllReferences=Skip all references (Call Hierarchy and Search will not work)
|
AbstractIndexerPage_skipAllReferences=Skip all references (Call Hierarchy and Search will not work)
|
||||||
AbstractIndexerPage_skipImplicitReferences=Skip implicit references (e.g. overloaded operators)
|
AbstractIndexerPage_skipImplicitReferences=Skip implicit references (e.g. overloaded operators)
|
||||||
AbstractIndexerPage_skipTypeReferences=Skip type references (Search for type references will not work)
|
AbstractIndexerPage_skipTypeReferences=Skip type references (Search for type references will not work)
|
||||||
|
|
Loading…
Add table
Reference in a new issue