Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 157829 Details for
Bug 122772
[Wizards] NewWizardAction would be able to customize the title and description of the opened wizard
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch.
Defect_122772_patch.txt (text/plain), 2.79 KB, created by
Paul Slauenwhite
on 2010-02-01 14:55:03 EST
(
hide
)
Description:
Patch.
Filename:
MIME Type:
Creator:
Paul Slauenwhite
Created:
2010-02-01 14:55:03 EST
Size:
2.79 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.workbench >Index: Eclipse UI/org/eclipse/ui/actions/NewWizardAction.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/NewWizardAction.java,v >retrieving revision 1.29 >diff -u -r1.29 NewWizardAction.java >--- Eclipse UI/org/eclipse/ui/actions/NewWizardAction.java 9 May 2008 14:13:13 -0000 1.29 >+++ Eclipse UI/org/eclipse/ui/actions/NewWizardAction.java 1 Feb 2010 19:53:39 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2008 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 IBM Corporation and others. > * 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 >@@ -67,6 +67,12 @@ > */ > private String categoryId = null; > >+ /** >+ * The title of the wizard window or <code>null</code> to use the default >+ * wizard window title. >+ */ >+ private String windowTitle = null; >+ > /** > * The workbench window; or <code>null</code> if this > * action has been <code>dispose</code>d. >@@ -128,6 +134,41 @@ > categoryId = id; > } > >+ /** >+ * <p> >+ * Returns the title of the wizard window >+ * <p> >+ * >+ * <p> >+ * If the title of the wizard window is <code>null</code>, the default >+ * wizard window title will be used. >+ * </p> >+ * >+ * @return The title of the wizard window, otherwise <code>null</code> >+ * (default wizard window title). >+ */ >+ public String getWindowTitle() { >+ return (this.windowTitle); >+ } >+ >+ /** >+ * <p> >+ * Sets the title of the wizard window >+ * <p> >+ * >+ * <p> >+ * If the title of the wizard window is <code>null</code>, the default >+ * wizard window title will be used. >+ * </p> >+ * >+ * @param windowTitle >+ * The title of the wizard window, otherwise <code>null</code> >+ * (default wizard window title). >+ */ >+ public void setWindowTitle(String windowTitle) { >+ this.windowTitle = windowTitle; >+ } >+ > /* (non-Javadoc) > * Method declared on IAction. > */ >@@ -162,6 +203,13 @@ > } > > wizard.init(workbenchWindow.getWorkbench(), selectionToPass); >+ >+ // Note: Must be called AFTER the call to NewWizard.init(IWorkbench, >+ // IStructuredSelection) where the default wizard window title is set. >+ if (windowTitle != null) { >+ wizard.setWindowTitle(windowTitle); >+ } >+ > IDialogSettings workbenchSettings = WorkbenchPlugin.getDefault() > .getDialogSettings(); > IDialogSettings wizardSettings = workbenchSettings
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 122772
:
157829
|
157870