My favorites
▼
|
Sign in
javahotel
Hotel Software for small, medium and large
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
examples
/
DatabaseObject
/
src
/
databaseobject
/
wizards
/
NewProjectWizard.java
r586
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
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* Copyright 2012 stanislawbartkowski@gmail.com
*
* Licensed 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 databaseobject.wizards;
import java.net.URI;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
import databaseobject.messages.Messages;
import databaseobject.util.ProjectSupport;
/**
* Class raised if 'New project' was launched
* @author sbartkowski
*
*/
public class NewProjectWizard extends Wizard implements INewWizard {
private WizardNewProjectCreationPage pageOne;
@Override
public boolean performFinish() {
String name = pageOne.getProjectName();
URI location = null;
if (!pageOne.useDefaults()) {
location = pageOne.getLocationURI();
}
ProjectSupport.createProject(name, location);
return true;
}
public NewProjectWizard() {
setWindowTitle(Messages.NewProjectWizard_0);
}
@Override
public void addPages() {
super.addPages();
pageOne = new WizardNewProjectCreationPage(
Messages.NewProjectWizard_1);
pageOne.setTitle(Messages.NewProjectWizard_2);
pageOne.setDescription(Messages.NewProjectWizard_3);
addPage(pageOne);
}
@Override
public void init(IWorkbench workbench, IStructuredSelection selection) {
}
}
Show details
Hide details
Change log
r537
by stanislawbartkowski on Feb 5, 2012
Diff
First commit
Go to:
...examples/DatabaseObject/META-INF
...abaseObject/META-INF/MANIFEST.MF
.../DatabaseObject/build.properties
...nk/examples/DatabaseObject/icons
...aseObject/icons/dummy-nature.png
.../DatabaseObject/icons/sample.gif
...amples/DatabaseObject/plugin.xml
/trunk/examples/DatabaseObject/src
...atabaseObject/src/databaseobject
...rc/databaseobject/Activator.java
...ject/src/databaseobject/messages
...aseobject/messages/Messages.java
...ect/messages/messages.properties
...Object/src/databaseobject/nature
...object/nature/ProjectNature.java
...eObject/src/databaseobject/popup
...src/databaseobject/popup/actions
.../popup/actions/DeployAction.java
...t/popup/actions/DrawPackage.java
...p/actions/DrawPackageDialog.java
...popup/actions/ExtractDialog.java
...opup/actions/ExtractObjects.java
...ctions/ExtractObjectsDialog.java
...pup/actions/IButtonSelected.java
...ect/popup/actions/NewAction.java
...ct/src/databaseobject/properties
.../DatabaseObjectPropertyPage.java
...seObject/src/databaseobject/util
...abaseobject/util/CommonProp.java
...bject/util/CreateObjectTree.java
...databaseobject/util/LogUtil.java
...abaseobject/util/PluginUtil.java
...eobject/util/ProjectSupport.java
...bject/src/databaseobject/wizards
...ct/wizards/NewProjectWizard.java
.../examples/DatabaseObject/src/org
...s/DatabaseObject/src/org/feature
...abaseObject/src/org/feature/tree
...rg/feature/tree/FeatureTree.java
...org/feature/tree/TreeDialog.java
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1871 bytes, 73 lines
View raw file
File properties
svn:mime-type
text/plain
Powered by
Google Project Hosting