org.eclipse.xtext.ui.wizard.IProjectCreator Java Examples

The following examples show how to use org.eclipse.xtext.ui.wizard.IProjectCreator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: N4JSNewProjectWizard.java    From n4js with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Creates a new wizard container for creating and initializing a new N4JS project into the workspace.
 *
 * @param projectCreator
 *            the project creation logic to be triggered when finishing this wizard.
 */
@Inject
public N4JSNewProjectWizard(final IProjectCreator projectCreator) {
	super(projectCreator);
	setWindowTitle("New N4JS Project");
	setNeedsProgressMonitor(true);
	setDefaultPageImageDescriptor(NEW_PROJECT_WIZBAN_DESC);
	projectInfo = new N4JSProjectInfo();

	// Setup the dialog settings
	IDialogSettings workbenchDialogSettings = N4JSActivator.getInstance().getDialogSettings();

	IDialogSettings projectWizardSettings = workbenchDialogSettings.getSection(DIALOG_SETTINGS_SECTION_KEY);
	if (null == projectWizardSettings) {
		projectWizardSettings = workbenchDialogSettings.addNewSection(DIALOG_SETTINGS_SECTION_KEY);
	}
	setDialogSettings(projectWizardSettings);
}
 
Example #2
Source File: NewXtextProjectWizard.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Constructs a new wizard
 */
@Inject
public NewXtextProjectWizard(IProjectCreator projectCreator) {
	super(projectCreator);
	setWindowTitle(Messages.NewXtextProjectWizard_WindowTitle);
	setDefaultPageImageDescriptor(Activator.getImageDescriptor("icons/wizban/newxprj_wiz.gif")); //$NON-NLS-1$
}
 
Example #3
Source File: NewCheckProjectWizard.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Constructor for the check project wizard. The pages required by this wizard are not created by hand, but by Guice (see also plugin.xml).
 */
@Inject
public NewCheckProjectWizard(final IProjectCreator creator, final NewCheckProjectWizardPage newProjectPage, final NewCheckCatalogWizardPage newCatalogPage) {
  super(creator);
  this.newProjectPage = newProjectPage;
  this.newCatalogPage = newCatalogPage;
  setNeedsProgressMonitor(true);
  setWindowTitle(Messages.PROJECT_WIZARD_WINDOW_TITLE);
}
 
Example #4
Source File: N4JSUiModule.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
/** Bind custom IProjectCreator for creating N4JS projects using the project wizard. */
public Class<? extends IProjectCreator> bindN4JSProjectCreator() {
	return N4JSProjectCreator.class;
}
 
Example #5
Source File: XtextUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IProjectCreator> bindIProjectCreator() {
	return XtextProjectCreator.class;
}
 
Example #6
Source File: AbstractStatemachineUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IProjectCreator> bindIProjectCreator() {
	return DefaultTemplateProjectCreator.class;
}
 
Example #7
Source File: CheckUiModule.java    From dsl-devkit with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Binds a project creator. Used for the wizards.
 *
 * @return project creator
 */
public Class<? extends IProjectCreator> bindIProjectCreator() {
  return CheckProjectCreator.class;
}