blob: 0cc0b11c63c774851447f7aa36a120d382f33079 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/*****************************************************************************
* Copyright (c) 2016 CEA LIST.
*
* 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:
*
* Mauricio Alferez (CEA LIST) mauricio.alferez@cea.fr - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.bmm.diagram.ui;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.papyrus.bmm.diagram.common.commands.CreateBmmModelCommand;
import org.eclipse.papyrus.uml.diagram.wizards.wizards.NewPapyrusProjectWizard;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
/**
* Wizard to create a new BMM project
*
*/
public class NewBmmProjectWizard extends NewPapyrusProjectWizard {
/**
* @see org.eclipse.papyrus.wizards.NewPapyrusProjectWizard#init(org.eclipse.ui.IWorkbench,
* org.eclipse.jface.viewers.IStructuredSelection)
*
* @param workbench
* @param selection
*/
@Override
public void init(IWorkbench workbench, IStructuredSelection selection) {
super.init(workbench, selection);
setWindowTitle("New BMM Project");
}
/**
* {@inheritDoc}
*/
@Override
protected WizardNewProjectCreationPage createNewProjectCreationPage() {
WizardNewProjectCreationPage newProjectPage = super.createNewProjectCreationPage();
newProjectPage.setTitle("Papyrus BMM Project");
newProjectPage.setDescription("Create a New Papyrus BMM Project");
return newProjectPage;
}
/**
* {@inheritDoc}
*/
@Override
protected String[] getDiagramCategoryIds() {
return new String[] { CreateBmmModelCommand.COMMAND_ID };
}
}
|