mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
updated UI plugin version to 5.1
This commit is contained in:
parent
736c7a5e69
commit
3c6df72408
15 changed files with 33 additions and 3 deletions
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-SymbolicName: org.eclipse.cdt.ui; singleton:=true
|
||||
Bundle-Version: 5.0.0.qualifier
|
||||
Bundle-Version: 5.1.0.qualifier
|
||||
Bundle-Activator: org.eclipse.cdt.ui.CUIPlugin
|
||||
Bundle-Vendor: %providerName
|
||||
Bundle-Localization: plugin
|
||||
|
|
|
@ -12,6 +12,7 @@ import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
|
|||
* mock object, which makes testing the strategies easy.
|
||||
*
|
||||
* @author Mike Kucera
|
||||
* @since 5.1
|
||||
*/
|
||||
public interface IProjectSettingsWizardPage {
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ package org.eclipse.cdt.internal.ui.wizards.settingswizards;
|
|||
* the behavior that is specific to import and export.
|
||||
*
|
||||
* @author Mike Kucera
|
||||
*
|
||||
* @since 5.1
|
||||
*/
|
||||
public interface IProjectSettingsWizardPageStrategy {
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ import org.eclipse.cdt.core.settings.model.ICFolderDescription;
|
|||
*
|
||||
*
|
||||
* @author Mike Kucera
|
||||
* @since 5.1
|
||||
*/
|
||||
public interface ISettingsProcessor {
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ import org.eclipse.cdt.internal.ui.CPluginImages;
|
|||
* A settings processor that imports and exports include paths.
|
||||
*
|
||||
* @author Mike Kucera
|
||||
* @since 5.1
|
||||
*
|
||||
*/
|
||||
public class IncludePathsSettingsProcessor extends SettingsProcessor {
|
||||
|
|
|
@ -35,6 +35,7 @@ import org.eclipse.cdt.internal.ui.CPluginImages;
|
|||
* A settings processor that imports and exports symbols.
|
||||
*
|
||||
* @author Mike Kucera
|
||||
* @since 5.1
|
||||
*
|
||||
*/
|
||||
public class MacroSettingsProcessor extends SettingsProcessor {
|
||||
|
|
|
@ -33,10 +33,12 @@ import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
|
|||
import org.eclipse.cdt.core.settings.model.ICFolderDescription;
|
||||
import org.eclipse.cdt.ui.CUIPlugin;
|
||||
|
||||
|
||||
/**
|
||||
* Custom behavior for the Export wizard.
|
||||
*
|
||||
* @author Mike Kucera
|
||||
* @since 5.1
|
||||
*
|
||||
*/
|
||||
public class ProjectSettingsExportStrategy implements IProjectSettingsWizardPageStrategy {
|
||||
|
|
|
@ -14,6 +14,9 @@ import org.eclipse.jface.viewers.IStructuredSelection;
|
|||
import org.eclipse.ui.IExportWizard;
|
||||
import org.eclipse.ui.IWorkbench;
|
||||
|
||||
/**
|
||||
* @since 5.1
|
||||
*/
|
||||
public class ProjectSettingsExportWizard extends ProjectSettingsWizard implements IExportWizard {
|
||||
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ import org.eclipse.cdt.ui.CUIPlugin;
|
|||
* Custom behavior for the Import wizard.
|
||||
*
|
||||
* @author Mike Kucera
|
||||
* @since 5.1
|
||||
*
|
||||
*/
|
||||
public class ProjectSettingsImportStrategy implements IProjectSettingsWizardPageStrategy {
|
||||
|
|
|
@ -14,6 +14,9 @@ import org.eclipse.jface.viewers.IStructuredSelection;
|
|||
import org.eclipse.ui.IImportWizard;
|
||||
import org.eclipse.ui.IWorkbench;
|
||||
|
||||
/**
|
||||
* @since 5.1
|
||||
*/
|
||||
public class ProjectSettingsImportWizard extends ProjectSettingsWizard implements IImportWizard {
|
||||
|
||||
|
||||
|
|
|
@ -15,6 +15,9 @@ import org.eclipse.jface.viewers.IStructuredSelection;
|
|||
import org.eclipse.jface.wizard.Wizard;
|
||||
import org.eclipse.ui.IWorkbench;
|
||||
|
||||
/**
|
||||
* @since 5.1
|
||||
*/
|
||||
public abstract class ProjectSettingsWizard extends Wizard {
|
||||
|
||||
private ProjectSettingsWizardPage mainPage;
|
||||
|
|
|
@ -56,7 +56,7 @@ import org.eclipse.cdt.internal.ui.viewsupport.ListContentProvider;
|
|||
import org.eclipse.cdt.internal.ui.wizards.settingswizards.IProjectSettingsWizardPageStrategy.MessageType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @since 5.1
|
||||
*/
|
||||
abstract public class ProjectSettingsWizardPage extends WizardPage implements IProjectSettingsWizardPage {
|
||||
|
||||
|
|
|
@ -10,6 +10,12 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.ui.wizards.settingswizards;
|
||||
|
||||
/**
|
||||
* An exception that represents a problem with importing or exporting
|
||||
* settings.
|
||||
*
|
||||
* @since 5.1
|
||||
*/
|
||||
public class SettingsImportExportException extends Exception {
|
||||
|
||||
public SettingsImportExportException() {
|
||||
|
|
|
@ -22,12 +22,14 @@ import org.xml.sax.helpers.AttributesImpl;
|
|||
import org.eclipse.cdt.core.settings.model.ICFolderDescription;
|
||||
import org.eclipse.cdt.core.settings.model.ICLanguageSetting;
|
||||
import org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry;
|
||||
import org.eclipse.cdt.core.settings.model.ICSettingEntry;
|
||||
|
||||
/**
|
||||
* Base class implementing standard import and export functionality
|
||||
* for a section of the file.
|
||||
*
|
||||
* @author Mike Kucera
|
||||
* @since 5.1
|
||||
*/
|
||||
public abstract class SettingsProcessor implements ISettingsProcessor {
|
||||
|
||||
|
@ -39,12 +41,15 @@ public abstract class SettingsProcessor implements ISettingsProcessor {
|
|||
|
||||
|
||||
/**
|
||||
* Returns a constant from the ICSettingEntry interface.
|
||||
*/
|
||||
protected abstract int getSettingsType();
|
||||
|
||||
|
||||
protected abstract void writeSettings(ContentHandler content, ICLanguageSettingEntry setting)
|
||||
throws SettingsImportExportException;
|
||||
|
||||
|
||||
protected abstract void readSettings(ICLanguageSetting setting, Element language)
|
||||
throws SettingsImportExportException;
|
||||
|
||||
|
|
|
@ -50,6 +50,9 @@ public class CTextFileChange extends TextFileChange {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 5.1
|
||||
*/
|
||||
public CTextFileChange(String name, ITranslationUnit tu) {
|
||||
super(name, getFile(tu));
|
||||
fTranslationUnit = tu;
|
||||
|
|
Loading…
Add table
Reference in a new issue