org.symbian.tools.mtw.core/src/org/symbian/tools/tmw/core/internal/facets/InstallCoreFacetAction.java
changeset 467 5a2901872fcf
parent 463 aea4c83725d8
equal deleted inserted replaced
466:129c94e78375 467:5a2901872fcf
    27 import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
    27 import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
    28 import org.eclipse.wst.jsdt.core.IIncludePathEntry;
    28 import org.eclipse.wst.jsdt.core.IIncludePathEntry;
    29 import org.eclipse.wst.jsdt.core.IJavaScriptProject;
    29 import org.eclipse.wst.jsdt.core.IJavaScriptProject;
    30 import org.eclipse.wst.jsdt.core.JavaScriptCore;
    30 import org.eclipse.wst.jsdt.core.JavaScriptCore;
    31 import org.eclipse.wst.validation.ValidationFramework;
    31 import org.eclipse.wst.validation.ValidationFramework;
    32 import org.symbian.tools.tmw.core.projects.IProjectSetupAction;
       
    33 
    32 
    34 public class InstallCoreFacetAction implements IDelegate {
    33 public class InstallCoreFacetAction implements IDelegate {
    35 
    34 
    36     public void execute(IProject project, IProjectFacetVersion fv, Object config, IProgressMonitor monitor)
    35     public void execute(IProject project, IProjectFacetVersion fv, Object config, IProgressMonitor monitor)
    37             throws CoreException {
    36             throws CoreException {
    54             newIncludepath[originalEntryCount] = newContainerEntry;
    53             newIncludepath[originalEntryCount] = newContainerEntry;
    55             jsProject.setRawIncludepath(newIncludepath, new SubProgressMonitor(monitor, 30));
    54             jsProject.setRawIncludepath(newIncludepath, new SubProgressMonitor(monitor, 30));
    56         }
    55         }
    57         ValidationFramework.getDefault().addValidationBuilder(project);
    56         ValidationFramework.getDefault().addValidationBuilder(project);
    58 
    57 
    59         IProjectSetupAction action = (IProjectSetupAction) config;
       
    60         if (action != null) {
       
    61             action.initialize(project, new SubProgressMonitor(monitor, 270));
       
    62         }
       
    63         monitor.done();
    58         monitor.done();
    64     }
    59     }
    65 }
    60 }