Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2006 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2007 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 24-29
Link Here
|
24 |
import org.eclipse.pde.internal.ui.wizards.NewWizard; |
24 |
import org.eclipse.pde.internal.ui.wizards.NewWizard; |
25 |
import org.eclipse.pde.internal.ui.wizards.WizardElement; |
25 |
import org.eclipse.pde.internal.ui.wizards.WizardElement; |
26 |
import org.eclipse.swt.graphics.Image; |
26 |
import org.eclipse.swt.graphics.Image; |
|
|
27 |
import org.eclipse.ui.IWorkingSet; |
27 |
import org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard; |
28 |
import org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard; |
28 |
|
29 |
|
29 |
public class NewLibraryPluginProjectWizard extends NewWizard implements |
30 |
public class NewLibraryPluginProjectWizard extends NewWizard implements |
Lines 63-69
Link Here
|
63 |
public void addPages() { |
64 |
public void addPages() { |
64 |
fJarsPage = new LibraryPluginJarsPage("jars", fPluginData); //$NON-NLS-1$ |
65 |
fJarsPage = new LibraryPluginJarsPage("jars", fPluginData); //$NON-NLS-1$ |
65 |
addPage(fJarsPage); |
66 |
addPage(fJarsPage); |
66 |
fMainPage = new NewLibraryPluginCreationPage("main", fPluginData); //$NON-NLS-1$ |
67 |
fMainPage = new NewLibraryPluginCreationPage("main", fPluginData, getSelection()); //$NON-NLS-1$ |
67 |
String pname = getDefaultValue(DEF_PROJECT_NAME); |
68 |
String pname = getDefaultValue(DEF_PROJECT_NAME); |
68 |
if (pname != null) |
69 |
if (pname != null) |
69 |
fMainPage.setInitialProjectName(pname); |
70 |
fMainPage.setInitialProjectName(pname); |
Lines 127-132
Link Here
|
127 |
true, |
128 |
true, |
128 |
new NewLibraryPluginCreationOperation(fPluginData, |
129 |
new NewLibraryPluginCreationOperation(fPluginData, |
129 |
fProjectProvider, null)); |
130 |
fProjectProvider, null)); |
|
|
131 |
IWorkingSet[] workingSets = fMainPage.getSelectedWorkingSets(); |
132 |
getWorkbench().getWorkingSetManager().addToWorkingSets(fProjectProvider.getProject(), |
133 |
workingSets); |
130 |
return true; |
134 |
return true; |
131 |
} catch (InvocationTargetException e) { |
135 |
} catch (InvocationTargetException e) { |
132 |
PDEPlugin.logException(e); |
136 |
PDEPlugin.logException(e); |