mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
add new method.
This commit is contained in:
parent
6358ba0254
commit
5353c790ba
2 changed files with 27 additions and 0 deletions
|
@ -12,9 +12,19 @@ package org.eclipse.cdt.ui.dialogs;
|
|||
***********************************************************************/
|
||||
|
||||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
|
||||
public interface ICOptionContainer {
|
||||
|
||||
void updateContainer();
|
||||
|
||||
IProject getProject();
|
||||
|
||||
/**
|
||||
* Returns the preference store.
|
||||
*
|
||||
* @return the preference store, or <code>null</code> if none
|
||||
*/
|
||||
public IPreferenceStore getPreferenceStore();
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ import org.eclipse.cdt.ui.dialogs.ICOptionContainer;
|
|||
import org.eclipse.cdt.ui.dialogs.TabFolderOptionBlock;
|
||||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.eclipse.jface.resource.ImageDescriptor;
|
||||
import org.eclipse.jface.wizard.WizardPage;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
|
@ -19,6 +20,7 @@ import org.eclipse.swt.widgets.Composite;
|
|||
public abstract class NewCProjectWizardOptionPage extends WizardPage implements ICOptionContainer {
|
||||
|
||||
private TabFolderOptionBlock fOptionBlock;
|
||||
private IPreferenceStore preferenceStore;
|
||||
|
||||
public NewCProjectWizardOptionPage(String pageName) {
|
||||
this(pageName, null, null);
|
||||
|
@ -51,5 +53,20 @@ public abstract class NewCProjectWizardOptionPage extends WizardPage implements
|
|||
fOptionBlock.performApply(monitor);
|
||||
}
|
||||
|
||||
public abstract IProject getProject();
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.ui.dialogs.ICOptionContainer#getPreferenceStore()
|
||||
*/
|
||||
public IPreferenceStore getPreferenceStore() {
|
||||
return preferenceStore;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param store
|
||||
*/
|
||||
public void setPreferenceStore(IPreferenceStore store) {
|
||||
preferenceStore = store;
|
||||
}
|
||||
|
||||
public abstract IProject getProject();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue