Skip to main content
summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMarc-Andre Laperle2018-10-20 13:18:30 -0400
committerMarc-André Laperle2018-11-01 23:09:46 -0400
commita8a91382582f231d5e197f2ccb3c8075813ffe96 (patch)
treee047d538f9535ec0c68c69400305fa06225a9387 /build
parentc278f4575f812566b11ae3736b864551de378136 (diff)
downloadorg.eclipse.cdt-a8a91382582f231d5e197f2ccb3c8075813ffe96.tar.gz
org.eclipse.cdt-a8a91382582f231d5e197f2ccb3c8075813ffe96.tar.xz
org.eclipse.cdt-a8a91382582f231d5e197f2ccb3c8075813ffe96.zip
Remove NewMakeProjectPreferencePage (unused)
It is not used anywhere and it's internal. Change-Id: I4e157ec7fd1184118aea8f6bef35a850dfeb0945 Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.autotools.ui/src/org/eclipse/cdt/internal/autotools/ui/MakeUIMessages.properties3
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/MakeResources.properties1
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/preferences/NewMakeProjectPreferencePage.java125
3 files changed, 1 insertions, 128 deletions
diff --git a/build/org.eclipse.cdt.autotools.ui/src/org/eclipse/cdt/internal/autotools/ui/MakeUIMessages.properties b/build/org.eclipse.cdt.autotools.ui/src/org/eclipse/cdt/internal/autotools/ui/MakeUIMessages.properties
index 4f49ba8d57..92021f69a1 100644
--- a/build/org.eclipse.cdt.autotools.ui/src/org/eclipse/cdt/internal/autotools/ui/MakeUIMessages.properties
+++ b/build/org.eclipse.cdt.autotools.ui/src/org/eclipse/cdt/internal/autotools/ui/MakeUIMessages.properties
@@ -175,8 +175,7 @@ FilterEmptyFolderAction.tooltip=Hide Empty Folders
MakeUIPlugin.update_project=Update make projects
MakeUIPlugin.update_project_message=Older \'make\' projects have been detected in your workspace. \n These projects are no longer supported, would you like to convert these now?
-# Prefernece Page
-MakePreferencePage.description=Specify the settings used as defaults by the New Standard Make Project creation wizard.
+# Preference Page
MakeTargetPreferencePage.buildTargetInBackground.label=Build Make target in the background.
#Property Page
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/MakeResources.properties b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/MakeResources.properties
index 468c5b1b99..77a4bea0b5 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/MakeResources.properties
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/MakeResources.properties
@@ -215,7 +215,6 @@ MakeUIPlugin.update_project=Update make projects
MakeUIPlugin.update_project_message=Older \'make\' projects have been detected in your workspace. \n These projects are no longer supported, would you like to convert these now?
# Preference Page
-MakePreferencePage.description=Specify the settings used as defaults by the New Standard Make Project creation wizard.
MakeTargetPreferencePage.buildTargetInBackground.label=Build target in the background
MakeTargetPreferencePage.buildLastTarget.title=Rebuild Last Target
MakeTargetPreferencePage.buildLastTarget.project=From selected &project
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/preferences/NewMakeProjectPreferencePage.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/preferences/NewMakeProjectPreferencePage.java
deleted file mode 100644
index 970539ef33..0000000000
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/preferences/NewMakeProjectPreferencePage.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.cdt.make.internal.ui.preferences;
-
-import org.eclipse.cdt.make.core.MakeCorePlugin;
-import org.eclipse.cdt.make.internal.ui.MakeProjectOptionBlock;
-import org.eclipse.cdt.make.internal.ui.MakeUIPlugin;
-import org.eclipse.cdt.ui.dialogs.ICOptionContainer;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.Preferences;
-import org.eclipse.jface.dialogs.DialogPage;
-import org.eclipse.jface.preference.IPreferencePageContainer;
-import org.eclipse.jface.preference.PreferencePage;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPreferencePage;
-
-/**
- * This preference page was used to set preferences "New Make Projects" for 3.X style projects.
- * It is left here for compatibility reasons only.
- * The page is superseded by "New CDT Project Wizard/Makefile Project" page,
- * class {@code org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject}.
- *
- * @deprecated as of CDT 4.0.
- */
-@Deprecated
-public class NewMakeProjectPreferencePage extends PreferencePage implements IWorkbenchPreferencePage, ICOptionContainer {
-
- private MakeProjectOptionBlock fOptionBlock;
-
- public NewMakeProjectPreferencePage() {
- setPreferenceStore(MakeUIPlugin.getDefault().getPreferenceStore());
- setDescription(MakeUIPlugin.getResourceString("MakePreferencePage.description")); //$NON-NLS-1$
- fOptionBlock = new MakeProjectOptionBlock();
- }
-
-
- @Override
- public void setContainer(IPreferencePageContainer preferencePageContainer) {
- super.setContainer(preferencePageContainer);
- fOptionBlock.setOptionContainer(this);
- }
- /*
- * @see PreferencePage#createControl(Composite)
- */
- @Override
- public void createControl(Composite parent) {
- super.createControl(parent);
- // WorkbenchHelp.setHelp(parent, ICMakeHelpContextIds.PROJECT_PROPERTY_PAGE);
- }
-
- @Override
- protected Control createContents(Composite parent) {
- return fOptionBlock.createContents(parent);
- }
-
-
- @Override
- public void init(IWorkbench workbench) {
- }
-
- @Override
- public boolean performOk() {
- boolean ok = fOptionBlock.performApply(null);
- MakeCorePlugin.getDefault().savePluginPreferences();
- return ok;
- }
-
- /**
- * @see DialogPage#setVisible(boolean)
- */
- @Override
- public void setVisible(boolean visible) {
- super.setVisible(visible);
- fOptionBlock.setVisible(visible);
- }
-
- @Override
- public void updateContainer() {
- fOptionBlock.update();
- boolean ok = fOptionBlock.isValid();
- if (!ok) {
- setErrorMessage(fOptionBlock.getErrorMessage());
- }
- if (ok) {
- setErrorMessage(null);
- }
- setValid(ok);
- }
-
- @Override
- public IProject getProject() {
- return null;
- }
-
- @Override
- public boolean isValid() {
- updateContainer();
- return super.isValid();
- }
-
- @Override
- protected void performDefaults() {
- fOptionBlock.performDefaults();
- super.performDefaults();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.cdt.ui.dialogs.ICOptionContainer#getPreferences()
- */
- @Override
- public Preferences getPreferences() {
- return MakeCorePlugin.getDefault().getPluginPreferences();
- }
-
-}

Back to the top