|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2008 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 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 67-72
Link Here
|
| 67 |
*/ |
67 |
*/ |
| 68 |
private String categoryId = null; |
68 |
private String categoryId = null; |
| 69 |
|
69 |
|
|
|
70 |
/** |
| 71 |
* The title of the wizard window or <code>null</code> to use the default |
| 72 |
* wizard window title. |
| 73 |
*/ |
| 74 |
private String windowTitle = null; |
| 75 |
|
| 70 |
/** |
76 |
/** |
| 71 |
* The workbench window; or <code>null</code> if this |
77 |
* The workbench window; or <code>null</code> if this |
| 72 |
* action has been <code>dispose</code>d. |
78 |
* action has been <code>dispose</code>d. |
|
Lines 128-133
Link Here
|
| 128 |
categoryId = id; |
134 |
categoryId = id; |
| 129 |
} |
135 |
} |
| 130 |
|
136 |
|
|
|
137 |
/** |
| 138 |
* <p> |
| 139 |
* Returns the title of the wizard window |
| 140 |
* <p> |
| 141 |
* |
| 142 |
* <p> |
| 143 |
* If the title of the wizard window is <code>null</code>, the default |
| 144 |
* wizard window title will be used. |
| 145 |
* </p> |
| 146 |
* |
| 147 |
* @return The title of the wizard window, otherwise <code>null</code> |
| 148 |
* (default wizard window title). |
| 149 |
*/ |
| 150 |
public String getWindowTitle() { |
| 151 |
return (this.windowTitle); |
| 152 |
} |
| 153 |
|
| 154 |
/** |
| 155 |
* <p> |
| 156 |
* Sets the title of the wizard window |
| 157 |
* <p> |
| 158 |
* |
| 159 |
* <p> |
| 160 |
* If the title of the wizard window is <code>null</code>, the default |
| 161 |
* wizard window title will be used. |
| 162 |
* </p> |
| 163 |
* |
| 164 |
* @param windowTitle |
| 165 |
* The title of the wizard window, otherwise <code>null</code> |
| 166 |
* (default wizard window title). |
| 167 |
*/ |
| 168 |
public void setWindowTitle(String windowTitle) { |
| 169 |
this.windowTitle = windowTitle; |
| 170 |
} |
| 171 |
|
| 131 |
/* (non-Javadoc) |
172 |
/* (non-Javadoc) |
| 132 |
* Method declared on IAction. |
173 |
* Method declared on IAction. |
| 133 |
*/ |
174 |
*/ |
|
Lines 162-167
Link Here
|
| 162 |
} |
203 |
} |
| 163 |
|
204 |
|
| 164 |
wizard.init(workbenchWindow.getWorkbench(), selectionToPass); |
205 |
wizard.init(workbenchWindow.getWorkbench(), selectionToPass); |
|
|
206 |
|
| 207 |
// Note: Must be called AFTER the call to NewWizard.init(IWorkbench, |
| 208 |
// IStructuredSelection) where the default wizard window title is set. |
| 209 |
if (windowTitle != null) { |
| 210 |
wizard.setWindowTitle(windowTitle); |
| 211 |
} |
| 212 |
|
| 165 |
IDialogSettings workbenchSettings = WorkbenchPlugin.getDefault() |
213 |
IDialogSettings workbenchSettings = WorkbenchPlugin.getDefault() |
| 166 |
.getDialogSettings(); |
214 |
.getDialogSettings(); |
| 167 |
IDialogSettings wizardSettings = workbenchSettings |
215 |
IDialogSettings wizardSettings = workbenchSettings |