blob: 0792049b94a4185c1d8bd8cf68ea471d8a10402b [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.uima.ruta.ide.ui.wizards;
import org.apache.uima.ruta.ide.ui.preferences.RutaBuildPathsBlock;
import org.eclipse.dltk.ui.util.BusyIndicatorRunnableContext;
import org.eclipse.dltk.ui.util.IStatusChangeListener;
import org.eclipse.dltk.ui.wizards.BuildpathsBlock;
import org.eclipse.dltk.ui.wizards.ProjectWizardFirstPage;
import org.eclipse.dltk.ui.wizards.ProjectWizardSecondPage;
final class RutaProjectWizardSecondPage extends ProjectWizardSecondPage {
RutaProjectWizardSecondPage(ProjectWizardFirstPage mainPage) {
super(mainPage);
}
@Override
protected BuildpathsBlock createBuildpathBlock(IStatusChangeListener listener) {
return new RutaBuildPathsBlock(new BusyIndicatorRunnableContext(), listener, 0,
useNewSourcePage(), null);
}
// protected BuildpathDetector createBuildpathDetector(
// IProgressMonitor monitor, IDLTKLanguageToolkit toolkit)
// throws CoreException {
// RutaBuildpathDetector detector = new RutaBuildpathDetector(
// getCurrProject(), toolkit);
//
// RutaProjectWizardFirstPage page = (RutaProjectWizardFirstPage) this
// .getFirstPage();
// detector.setUseAnalysis(page.useAnalysis());
// detector.detectBuildpath(new SubProgressMonitor(monitor, 20));
// return detector;
// }
// protected void postConfigureProject() throws CoreException {
// final IProject project = getCurrProject();
// final IEnvironment environment = EnvironmentManager
// .getEnvironment(project);
// if (environment != null && !environment.isLocal()) {
// final Map options = new HashMap();
// options.put(DLTKCore.INDEXER_ENABLED, DLTKCore.DISABLED);
// options.put(DLTKCore.BUILDER_ENABLED, DLTKCore.DISABLED);
// DLTKCore.create(project).setOptions(options);
// }
// }
}