mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Reverting unintentional commit.
This commit is contained in:
parent
874797e0ce
commit
3a6af038ff
1 changed files with 3 additions and 15 deletions
|
@ -27,30 +27,25 @@ import org.eclipse.ui.IWorkbenchPreferencePage;
|
|||
import org.eclipse.cdt.ui.dialogs.CacheSizeBlock;
|
||||
import org.eclipse.cdt.ui.dialogs.ICOptionContainer;
|
||||
import org.eclipse.cdt.ui.dialogs.IndexerBlock;
|
||||
import org.eclipse.cdt.ui.dialogs.IndexerStrategyBlock;
|
||||
|
||||
public class IndexerPreferencePage extends PreferencePage implements
|
||||
IWorkbenchPreferencePage, ICOptionContainer {
|
||||
|
||||
private IndexerBlock fOptionBlock;
|
||||
private CacheSizeBlock fCacheBlock;
|
||||
private IndexerStrategyBlock fStrategyBlock;
|
||||
|
||||
public IndexerPreferencePage(){
|
||||
fOptionBlock = new IndexerBlock();
|
||||
fStrategyBlock= new IndexerStrategyBlock(this);
|
||||
fCacheBlock= new CacheSizeBlock(this);
|
||||
}
|
||||
|
||||
protected Control createContents(Composite parent) {
|
||||
GridLayout gl;
|
||||
Composite composite = new Composite(parent, SWT.NONE);
|
||||
composite.setLayout(gl= new GridLayout());
|
||||
composite.setLayoutData(new GridData());
|
||||
gl.verticalSpacing= 0;
|
||||
composite.setLayout(new GridLayout());
|
||||
GridData gd= new GridData();
|
||||
composite.setLayoutData(gd);
|
||||
|
||||
fOptionBlock.createControl(composite);
|
||||
fStrategyBlock.createControl(composite);
|
||||
fCacheBlock.createControl(composite);
|
||||
|
||||
return composite;
|
||||
|
@ -64,10 +59,6 @@ public class IndexerPreferencePage extends PreferencePage implements
|
|||
setErrorMessage(fOptionBlock.getErrorMessage());
|
||||
setValid(false);
|
||||
}
|
||||
else if (!fStrategyBlock.isValid()) {
|
||||
setErrorMessage(fStrategyBlock.getErrorMessage());
|
||||
setValid(false);
|
||||
}
|
||||
else if (!fCacheBlock.isValid()) {
|
||||
setErrorMessage(fCacheBlock.getErrorMessage());
|
||||
setValid(false);
|
||||
|
@ -89,7 +80,6 @@ public class IndexerPreferencePage extends PreferencePage implements
|
|||
public boolean performOk() {
|
||||
try {
|
||||
fOptionBlock.performApply(new NullProgressMonitor());
|
||||
fStrategyBlock.performApply(new NullProgressMonitor());
|
||||
fCacheBlock.performApply(new NullProgressMonitor());
|
||||
} catch (CoreException e) {}
|
||||
return true;
|
||||
|
@ -97,8 +87,6 @@ public class IndexerPreferencePage extends PreferencePage implements
|
|||
|
||||
public void performDefaults() {
|
||||
fOptionBlock.performDefaults();
|
||||
fStrategyBlock.performDefaults();
|
||||
fCacheBlock.performDefaults();
|
||||
updateContainer();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue