Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 115211 Details for
Bug 250982
CDTCommonProjectWizard does not report progress
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
updated patch
bug_250982_wizard_progress_2 (text/plain), 24.63 KB, created by
Vivian Kong
on 2008-10-15 21:45:15 EDT
(
hide
)
Description:
updated patch
Filename:
MIME Type:
Creator:
Vivian Kong
Created:
2008-10-15 21:45:15 EDT
Size:
24.63 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.cdt.managedbuilder.ui >Index: src/org/eclipse/cdt/managedbuilder/ui/wizards/STDWizardHandler.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/STDWizardHandler.java,v >retrieving revision 1.11 >diff -u -r1.11 STDWizardHandler.java >--- src/org/eclipse/cdt/managedbuilder/ui/wizards/STDWizardHandler.java 26 Feb 2008 14:38:37 -0000 1.11 >+++ src/org/eclipse/cdt/managedbuilder/ui/wizards/STDWizardHandler.java 16 Oct 2008 01:43:28 -0000 >@@ -7,6 +7,7 @@ > * > * Contributors: > * Intel Corporation - initial API and implementation >+ * IBM Corporation > *******************************************************************************/ > package org.eclipse.cdt.managedbuilder.ui.wizards; > >@@ -26,6 +27,7 @@ > import org.eclipse.cdt.ui.newui.UIMessages; > import org.eclipse.core.resources.IProject; > import org.eclipse.core.runtime.CoreException; >+import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.jface.wizard.IWizard; > import org.eclipse.swt.widgets.Composite; > >@@ -48,40 +50,49 @@ > /** > * Note that configurations parameter is ignored > */ >- public void createProject(IProject project, boolean defaults, boolean onFinish) throws CoreException { >- ICProjectDescriptionManager mngr = CoreModel.getDefault().getProjectDescriptionManager(); >- ICProjectDescription des = mngr.createProjectDescription(project, false, !onFinish); >- ManagedBuildInfo info = ManagedBuildManager.createBuildInfo(project); >- ManagedProject mProj = new ManagedProject(des); >- info.setManagedProject(mProj); >- >- cfgs = CfgHolder.unique(fConfigPage.getCfgItems(defaults)); >- cfgs = CfgHolder.reorder(cfgs); >- >- for (int i=0; i<cfgs.length; i++) { >- String s = (cfgs[i].getToolChain() == null) ? "0" : ((ToolChain)(cfgs[i].getToolChain())).getId(); //$NON-NLS-1$ >- Configuration cfg = new Configuration(mProj, (ToolChain)cfgs[i].getToolChain(), ManagedBuildManager.calculateChildId(s, null), cfgs[i].getName()); >- IBuilder bld = cfg.getEditableBuilder(); >- if (bld != null) { >- if(bld.isInternalBuilder()){ >- IConfiguration prefCfg = ManagedBuildManager.getPreferenceConfiguration(false); >- IBuilder prefBuilder = prefCfg.getBuilder(); >- cfg.changeBuilder(prefBuilder, ManagedBuildManager.calculateChildId(cfg.getId(), null), prefBuilder.getName()); >- bld = cfg.getEditableBuilder(); >- bld.setBuildPath(null); >+ @Override >+ public void createProject(IProject project, boolean defaults, boolean onFinish, IProgressMonitor monitor) throws CoreException { >+ try { >+ monitor.beginTask("", 100);//$NON-NLS-1$ >+ >+ ICProjectDescriptionManager mngr = CoreModel.getDefault().getProjectDescriptionManager(); >+ ICProjectDescription des = mngr.createProjectDescription(project, false, !onFinish); >+ ManagedBuildInfo info = ManagedBuildManager.createBuildInfo(project); >+ ManagedProject mProj = new ManagedProject(des); >+ info.setManagedProject(mProj); >+ monitor.worked(20); >+ cfgs = CfgHolder.unique(fConfigPage.getCfgItems(defaults)); >+ cfgs = CfgHolder.reorder(cfgs); >+ int work = 50/cfgs.length; >+ for (int i=0; i<cfgs.length; i++) { >+ String s = (cfgs[i].getToolChain() == null) ? "0" : ((ToolChain)(cfgs[i].getToolChain())).getId(); //$NON-NLS-1$ >+ Configuration cfg = new Configuration(mProj, (ToolChain)cfgs[i].getToolChain(), ManagedBuildManager.calculateChildId(s, null), cfgs[i].getName()); >+ IBuilder bld = cfg.getEditableBuilder(); >+ if (bld != null) { >+ if(bld.isInternalBuilder()){ >+ IConfiguration prefCfg = ManagedBuildManager.getPreferenceConfiguration(false); >+ IBuilder prefBuilder = prefCfg.getBuilder(); >+ cfg.changeBuilder(prefBuilder, ManagedBuildManager.calculateChildId(cfg.getId(), null), prefBuilder.getName()); >+ bld = cfg.getEditableBuilder(); >+ bld.setBuildPath(null); >+ } >+ bld.setManagedBuildOn(false); >+ } else { >+ System.out.println(UIMessages.getString("StdProjectTypeHandler.3")); //$NON-NLS-1$ > } >- bld.setManagedBuildOn(false); >- } else { >- System.out.println(UIMessages.getString("StdProjectTypeHandler.3")); //$NON-NLS-1$ >+ cfg.setArtifactName(removeSpaces(project.getName())); >+ CConfigurationData data = cfg.getConfigurationData(); >+ des.createConfiguration(ManagedBuildManager.CFG_DATA_PROVIDER_ID, data); >+ monitor.worked(work); > } >- cfg.setArtifactName(removeSpaces(project.getName())); >- CConfigurationData data = cfg.getConfigurationData(); >- des.createConfiguration(ManagedBuildManager.CFG_DATA_PROVIDER_ID, data); >+ mngr.setProjectDescription(project, des); >+ >+ doTemplatesPostProcess(project); >+ doCustom(project); >+ monitor.worked(30); >+ } finally { >+ monitor.done(); > } >- mngr.setProjectDescription(project, des); >- >- doTemplatesPostProcess(project); >- doCustom(project); > } > public boolean canCreateWithoutToolchain() { return true; } > >Index: src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java,v >retrieving revision 1.39 >diff -u -r1.39 MBSWizardHandler.java >--- src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java 11 Sep 2008 15:48:12 -0000 1.39 >+++ src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java 16 Oct 2008 01:43:28 -0000 >@@ -54,6 +54,7 @@ > import org.eclipse.cdt.ui.wizards.IWizardItemsListListener; > import org.eclipse.core.resources.IProject; > import org.eclipse.core.runtime.CoreException; >+import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.core.runtime.IStatus; > import org.eclipse.core.runtime.Status; > import org.eclipse.jface.operation.IRunnableWithProgress; >@@ -496,54 +497,63 @@ > full_tcs.put(tc.getUniqueRealName(), tc); > } > >- public void createProject(IProject project, boolean defaults, boolean onFinish) throws CoreException { >- ICProjectDescriptionManager mngr = CoreModel.getDefault().getProjectDescriptionManager(); >- ICProjectDescription des = mngr.createProjectDescription(project, false, !onFinish); >- ManagedBuildInfo info = ManagedBuildManager.createBuildInfo(project); >- >- cfgs = fConfigPage.getCfgItems(false); >- if (cfgs == null || cfgs.length == 0) >- cfgs = CDTConfigWizardPage.getDefaultCfgs(this); >- >- if (cfgs == null || cfgs.length == 0 || cfgs[0].getConfiguration() == null) { >- throw new CoreException(new Status(IStatus.ERROR, >- ManagedBuilderUIPlugin.getUniqueIdentifier(), >- Messages.getString("CWizardHandler.6"))); //$NON-NLS-1$ >- } >- Configuration cf = (Configuration)cfgs[0].getConfiguration(); >- ManagedProject mProj = new ManagedProject(project, cf.getProjectType()); >- info.setManagedProject(mProj); >- >- cfgs = CfgHolder.unique(cfgs); >- cfgs = CfgHolder.reorder(cfgs); >- >- ICConfigurationDescription cfgDebug = null; >- ICConfigurationDescription cfgFirst = null; >- >- for(int i = 0; i < cfgs.length; i++){ >- cf = (Configuration)cfgs[i].getConfiguration(); >- String id = ManagedBuildManager.calculateChildId(cf.getId(), null); >- Configuration config = new Configuration(mProj, cf, id, false, true); >- CConfigurationData data = config.getConfigurationData(); >- ICConfigurationDescription cfgDes = des.createConfiguration(ManagedBuildManager.CFG_DATA_PROVIDER_ID, data); >- config.setConfigurationDescription(cfgDes); >- config.exportArtifactInfo(); >- >- IBuilder bld = config.getEditableBuilder(); >- if (bld != null) { bld.setManagedBuildOn(true); } >- >- config.setName(cfgs[i].getName()); >- config.setArtifactName(removeSpaces(project.getName())); >- >- IBuildProperty b = config.getBuildProperties().getProperty(PROPERTY); >- if (cfgDebug == null && b != null && b.getValue() != null && PROP_VAL.equals(b.getValue().getId())) >- cfgDebug = cfgDes; >- if (cfgFirst == null) // select at least first configuration >- cfgFirst = cfgDes; >- } >- mngr.setProjectDescription(project, des); >- doTemplatesPostProcess(project); >- doCustom(project); >+ public void createProject(IProject project, boolean defaults, boolean onFinish, IProgressMonitor monitor) throws CoreException { >+ try { >+ monitor.beginTask("", 100); //$NON-NLS-1$ >+ ICProjectDescriptionManager mngr = CoreModel.getDefault().getProjectDescriptionManager(); >+ ICProjectDescription des = mngr.createProjectDescription(project, false, !onFinish); >+ ManagedBuildInfo info = ManagedBuildManager.createBuildInfo(project); >+ monitor.worked(10); >+ cfgs = fConfigPage.getCfgItems(false); >+ if (cfgs == null || cfgs.length == 0) >+ cfgs = CDTConfigWizardPage.getDefaultCfgs(this); >+ >+ if (cfgs == null || cfgs.length == 0 || cfgs[0].getConfiguration() == null) { >+ throw new CoreException(new Status(IStatus.ERROR, >+ ManagedBuilderUIPlugin.getUniqueIdentifier(), >+ Messages.getString("CWizardHandler.6"))); //$NON-NLS-1$ >+ } >+ Configuration cf = (Configuration)cfgs[0].getConfiguration(); >+ ManagedProject mProj = new ManagedProject(project, cf.getProjectType()); >+ info.setManagedProject(mProj); >+ monitor.worked(10); >+ cfgs = CfgHolder.unique(cfgs); >+ cfgs = CfgHolder.reorder(cfgs); >+ >+ ICConfigurationDescription cfgDebug = null; >+ ICConfigurationDescription cfgFirst = null; >+ >+ int work = 50/cfgs.length; >+ >+ for(int i = 0; i < cfgs.length; i++){ >+ cf = (Configuration)cfgs[i].getConfiguration(); >+ String id = ManagedBuildManager.calculateChildId(cf.getId(), null); >+ Configuration config = new Configuration(mProj, cf, id, false, true); >+ CConfigurationData data = config.getConfigurationData(); >+ ICConfigurationDescription cfgDes = des.createConfiguration(ManagedBuildManager.CFG_DATA_PROVIDER_ID, data); >+ config.setConfigurationDescription(cfgDes); >+ config.exportArtifactInfo(); >+ >+ IBuilder bld = config.getEditableBuilder(); >+ if (bld != null) { bld.setManagedBuildOn(true); } >+ >+ config.setName(cfgs[i].getName()); >+ config.setArtifactName(removeSpaces(project.getName())); >+ >+ IBuildProperty b = config.getBuildProperties().getProperty(PROPERTY); >+ if (cfgDebug == null && b != null && b.getValue() != null && PROP_VAL.equals(b.getValue().getId())) >+ cfgDebug = cfgDes; >+ if (cfgFirst == null) // select at least first configuration >+ cfgFirst = cfgDes; >+ monitor.worked(work); >+ } >+ mngr.setProjectDescription(project, des); >+ doTemplatesPostProcess(project); >+ doCustom(project); >+ monitor.worked(30); >+ } finally { >+ monitor.done(); >+ } > } > > protected void doTemplatesPostProcess(IProject prj) { >#P org.eclipse.cdt.ui >Index: src/org/eclipse/cdt/ui/wizards/CDTCommonProjectWizard.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CDTCommonProjectWizard.java,v >retrieving revision 1.23 >diff -u -r1.23 CDTCommonProjectWizard.java >--- src/org/eclipse/cdt/ui/wizards/CDTCommonProjectWizard.java 28 Apr 2008 18:35:19 -0000 1.23 >+++ src/org/eclipse/cdt/ui/wizards/CDTCommonProjectWizard.java 16 Oct 2008 01:43:29 -0000 >@@ -30,6 +30,7 @@ > import org.eclipse.core.runtime.IExecutableExtension; > import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.core.runtime.NullProgressMonitor; >+import org.eclipse.core.runtime.SubProgressMonitor; > import org.eclipse.jface.dialogs.MessageDialog; > import org.eclipse.jface.operation.IRunnableWithProgress; > import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation; >@@ -222,23 +223,60 @@ > final boolean defaults = _defaults; > return new IRunnableWithProgress() { > public void run(IProgressMonitor imonitor) throws InvocationTargetException, InterruptedException { >+ final Exception except[] = new Exception[1]; > getShell().getDisplay().syncExec(new Runnable() { >- public void run() { >+ public void run() { >+ IRunnableWithProgress op= new WorkspaceModifyDelegatingOperation(new IRunnableWithProgress() { >+ public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { >+ final IProgressMonitor fMonitor; >+ if (monitor == null) { >+ fMonitor= new NullProgressMonitor(); >+ } else { >+ fMonitor = monitor; >+ } >+ fMonitor.beginTask(CUIPlugin.getResourceString("CProjectWizard.op_description"), 100); //$NON-NLS-1$ >+ fMonitor.worked(10); >+ try { >+ newProject = createIProject(lastProjectName, lastProjectLocation, new SubProgressMonitor(fMonitor, 40)); >+ if (newProject != null) >+ fMainPage.h_selected.createProject(newProject, defaults, onFinish, new SubProgressMonitor(fMonitor, 40)); >+ fMonitor.worked(10); >+ } catch (CoreException e) { CUIPlugin.log(e); } >+ finally { >+ fMonitor.done(); >+ } >+ } >+ }); > try { >- newProject = createIProject(lastProjectName, lastProjectLocation); >- if (newProject != null) >- fMainPage.h_selected.createProject(newProject, defaults, onFinish); >- } catch (CoreException e) { CUIPlugin.log(e); } >+ getContainer().run(false, true, op); >+ } catch (InvocationTargetException e) { >+ except[0] = e; >+ } catch (InterruptedException e) { >+ except[0] = e; >+ } > } > }); >+ if (except[0] != null) { >+ if (except[0] instanceof InvocationTargetException) { >+ throw (InvocationTargetException)except[0]; >+ } >+ if (except[0] instanceof InterruptedException) { >+ throw (InterruptedException)except[0]; >+ } >+ throw new InvocationTargetException(except[0]); >+ } > } > }; > } > > /** >+ * @param monitor > * > */ >- public IProject createIProject(final String name, final URI location) throws CoreException{ >+ public IProject createIProject(final String name, final URI location, IProgressMonitor monitor) throws CoreException{ >+ >+ monitor.beginTask("createIProject", 100); >+ > if (newProject != null) return newProject; > > IWorkspace workspace = ResourcesPlugin.getWorkspace(); >@@ -252,26 +290,31 @@ > IProjectDescription description = workspace.newProjectDescription(newProjectHandle.getName()); > if(location != null) > description.setLocationURI(location); >- newProject = CCorePlugin.getDefault().createCDTProject(description, newProjectHandle, new NullProgressMonitor()); >+ newProject = CCorePlugin.getDefault().createCDTProject(description, newProjectHandle, new SubProgressMonitor(monitor,25)); > } else { > IWorkspaceRunnable runnable = new IWorkspaceRunnable() { > public void run(IProgressMonitor monitor) throws CoreException { > newProjectHandle.refreshLocal(IResource.DEPTH_INFINITE, monitor); > } > }; >- NullProgressMonitor monitor = new NullProgressMonitor(); >- workspace.run(runnable, root, IWorkspace.AVOID_UPDATE, monitor); >+// NullProgressMonitor monitor = new NullProgressMonitor(); >+ workspace.run(runnable, root, IWorkspace.AVOID_UPDATE, new SubProgressMonitor(monitor,25)); > newProject = newProjectHandle; > } > > // Open the project if we have to > if (!newProject.isOpen()) { >- newProject.open(new NullProgressMonitor()); >+ newProject.open(new SubProgressMonitor(monitor,25)); > } >- return continueCreation(newProject); >+ >+ IProject proj = continueCreation(newProject, new SubProgressMonitor(monitor,25)); >+ >+ monitor.done(); >+ >+ return proj; > } > >- protected abstract IProject continueCreation(IProject prj); >+ protected abstract IProject continueCreation(IProject prj, IProgressMonitor monitor); > public abstract String[] getNatures(); > > @Override >Index: src/org/eclipse/cdt/ui/wizards/CWizardHandler.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CWizardHandler.java,v >retrieving revision 1.12 >diff -u -r1.12 CWizardHandler.java >--- src/org/eclipse/cdt/ui/wizards/CWizardHandler.java 28 Apr 2008 18:35:19 -0000 1.12 >+++ src/org/eclipse/cdt/ui/wizards/CWizardHandler.java 16 Oct 2008 01:43:29 -0000 >@@ -7,6 +7,7 @@ > * > * Contributors: > * Intel Corporation - initial API and implementation >+ * IBM Corporation > *******************************************************************************/ > package org.eclipse.cdt.ui.wizards; > >@@ -14,6 +15,7 @@ > > import org.eclipse.core.resources.IProject; > import org.eclipse.core.runtime.CoreException; >+import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.jface.wizard.IWizardPage; > import org.eclipse.swt.SWT; > import org.eclipse.swt.graphics.Image; >@@ -137,9 +139,10 @@ > * > * @param proj - simple project to be used as base > * @param defaults - true if called from 1st Wizard page >+ * @param monitor - progress monitor to track the creation process > * @throws CoreException > */ >- public void createProject(IProject proj, boolean defaults) >+ public void createProject(IProject proj, boolean defaults, IProgressMonitor monitor) > throws CoreException {} > > /** >@@ -148,13 +151,14 @@ > * @param proj - simple project to be used as base > * @param defaults - true if called from 1st Wizard page > * @param onFinish - true when the project creation is performed on finish. false -otherwise >- * false means that the project created is actually a temporary one that can be removed in case cancell is pressed >+ * false means that the project created is actually a temporary one that can be removed in case cancel is pressed >+ * @param monitor - progress monitor to track the creation process > * > * @throws CoreException > */ >- public void createProject(IProject proj, boolean defaults, boolean onFinish) >+ public void createProject(IProject proj, boolean defaults, boolean onFinish, IProgressMonitor monitor) > throws CoreException { >- createProject(proj, defaults); >+ createProject(proj, defaults, monitor); > } > /** > * >Index: src/org/eclipse/cdt/ui/wizards/CCProjectWizard.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CCProjectWizard.java,v >retrieving revision 1.8 >diff -u -r1.8 CCProjectWizard.java >--- src/org/eclipse/cdt/ui/wizards/CCProjectWizard.java 9 Apr 2008 11:24:23 -0000 1.8 >+++ src/org/eclipse/cdt/ui/wizards/CCProjectWizard.java 16 Oct 2008 01:43:29 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2007 Intel Corporation and others. >+ * Copyright (c) 2007, 2008 Intel 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 >@@ -7,12 +7,14 @@ > * > * Contributors: > * Intel Corporation - initial API and implementation >+ * IBM Corporation > *******************************************************************************/ > package org.eclipse.cdt.ui.wizards; > > import org.eclipse.core.resources.IProject; > import org.eclipse.core.runtime.CoreException; >-import org.eclipse.core.runtime.NullProgressMonitor; >+import org.eclipse.core.runtime.IProgressMonitor; >+import org.eclipse.core.runtime.SubProgressMonitor; > > import org.eclipse.cdt.core.CCProjectNature; > import org.eclipse.cdt.core.CProjectNature; >@@ -30,11 +32,13 @@ > } > > @Override >- protected IProject continueCreation(IProject prj) { >+ protected IProject continueCreation(IProject prj, IProgressMonitor monitor) { > try { >- CProjectNature.addCNature(prj, new NullProgressMonitor()); >- CCProjectNature.addCCNature(prj, new NullProgressMonitor()); >+ monitor.beginTask(UIMessages.getString("CCProjectWizard.0"), 2); //$NON-NLS-1$ >+ CProjectNature.addCNature(prj, new SubProgressMonitor(monitor, 1)); >+ CCProjectNature.addCCNature(prj, new SubProgressMonitor(monitor, 1)); > } catch (CoreException e) {} >+ finally {monitor.done();} > return prj; > } > >Index: src/org/eclipse/cdt/ui/wizards/CProjectWizard.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CProjectWizard.java,v >retrieving revision 1.15 >diff -u -r1.15 CProjectWizard.java >--- src/org/eclipse/cdt/ui/wizards/CProjectWizard.java 9 Apr 2008 11:24:23 -0000 1.15 >+++ src/org/eclipse/cdt/ui/wizards/CProjectWizard.java 16 Oct 2008 01:43:29 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2007 Intel Corporation and others. >+ * Copyright (c) 2007, 2008 Intel 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 >@@ -7,12 +7,14 @@ > * > * Contributors: > * Intel Corporation - initial API and implementation >+ * IBM Corporation > *******************************************************************************/ > package org.eclipse.cdt.ui.wizards; > > import org.eclipse.core.resources.IProject; > import org.eclipse.core.runtime.CoreException; >-import org.eclipse.core.runtime.NullProgressMonitor; >+import org.eclipse.core.runtime.IProgressMonitor; >+import org.eclipse.core.runtime.SubProgressMonitor; > > import org.eclipse.cdt.core.CProjectNature; > import org.eclipse.cdt.ui.newui.UIMessages; >@@ -30,10 +32,12 @@ > } > > @Override >- protected IProject continueCreation(IProject prj) { >+ protected IProject continueCreation(IProject prj, IProgressMonitor monitor) { > try { >- CProjectNature.addCNature(prj, new NullProgressMonitor()); >+ monitor.beginTask(UIMessages.getString("CProjectWizard.0"), 1); //$NON-NLS-1$ >+ CProjectNature.addCNature(prj, new SubProgressMonitor(monitor, 1)); > } catch (CoreException e) {} >+ finally {monitor.done();} > return prj; > } > >Index: src/org/eclipse/cdt/ui/wizards/CDTProjectWizard.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CDTProjectWizard.java,v >retrieving revision 1.2 >diff -u -r1.2 CDTProjectWizard.java >--- src/org/eclipse/cdt/ui/wizards/CDTProjectWizard.java 9 Apr 2008 11:24:23 -0000 1.2 >+++ src/org/eclipse/cdt/ui/wizards/CDTProjectWizard.java 16 Oct 2008 01:43:29 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2007 Intel Corporation and others. >+ * Copyright (c) 2007, 2008 Intel 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 >@@ -7,10 +7,12 @@ > * > * Contributors: > * Intel Corporation - initial API and implementation >+ * IBM Corporation > *******************************************************************************/ > package org.eclipse.cdt.ui.wizards; > > import org.eclipse.core.resources.IProject; >+import org.eclipse.core.runtime.IProgressMonitor; > > import org.eclipse.cdt.ui.newui.UIMessages; > >@@ -26,7 +28,7 @@ > } > > @Override >- protected IProject continueCreation(IProject prj) { >+ protected IProject continueCreation(IProject prj, IProgressMonitor monitor) { > return prj; > } > >Index: src/org/eclipse/cdt/ui/newui/PluginResources.properties >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/PluginResources.properties,v >retrieving revision 1.69 >diff -u -r1.69 PluginResources.properties >--- src/org/eclipse/cdt/ui/newui/PluginResources.properties 1 Oct 2008 15:22:35 -0000 1.69 >+++ src/org/eclipse/cdt/ui/newui/PluginResources.properties 16 Oct 2008 01:43:29 -0000 >@@ -526,6 +526,8 @@ > NewCfgDialog.5=Import predefined > CDTMainWizardPage.0=Project name cannot contain '\#' symbol > CDTMainWizardPage.1=Project category is selected. Expand the category and select a concrete project type. >+CProjectWizard.0=Add C Project Nature >+CCProjectWizard.0=Add CC Project Nature > WorkingSetConfigAction.0=Symbols ' > WorkingSetConfigAction.1=Choose active configs for Working Sets > WorkingSetConfigAction.10=-- CURRENT --
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 250982
:
115176
|
115211
|
115276
|
115577
|
115815
|
117791