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 101025 Details for
Bug 123650
HTTP tests do not automatically generate JUnit Java code like JUnit tests.
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]
Generate n Editor Save Partial Patch
Generate_On_Editor_Save_Partial_Patch.txt (text/plain), 2.69 KB, created by
Paul Slauenwhite
on 2008-05-20 07:14:55 EDT
(
hide
)
Description:
Generate n Editor Save Partial Patch
Filename:
MIME Type:
Creator:
Paul Slauenwhite
Created:
2008-05-20 07:14:55 EDT
Size:
2.69 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.hyades.test.tools.ui >Index: src/org/eclipse/hyades/test/tools/ui/http/internal/junit/editor/HttpEditorExtension.java >=================================================================== >RCS file: /cvsroot/tptp/test/org.eclipse.hyades.test.tools.ui/src/org/eclipse/hyades/test/tools/ui/http/internal/junit/editor/HttpEditorExtension.java,v >retrieving revision 1.5 >diff -u -r1.5 HttpEditorExtension.java >--- src/org/eclipse/hyades/test/tools/ui/http/internal/junit/editor/HttpEditorExtension.java 22 Mar 2007 14:42:45 -0000 1.5 >+++ src/org/eclipse/hyades/test/tools/ui/http/internal/junit/editor/HttpEditorExtension.java 20 May 2008 11:14:26 -0000 >@@ -11,11 +11,18 @@ > *******************************************************************************/ > package org.eclipse.hyades.test.tools.ui.http.internal.junit.editor; > >+import org.eclipse.core.runtime.IProgressMonitor; >+import org.eclipse.core.runtime.SubProgressMonitor; > import org.eclipse.hyades.test.tools.ui.common.internal.editor.TestSuiteEditorExtension; >+import org.eclipse.hyades.test.tools.ui.http.internal.junit.wizard.HttpGenerateWizard; > import org.eclipse.hyades.test.tools.ui.internal.resources.ToolsUiPluginResourceBundle; > import org.eclipse.hyades.test.ui.editor.form.util.WidgetFactory; > import org.eclipse.hyades.test.ui.internal.resources.UiPluginResourceBundle; > import org.eclipse.hyades.ui.editor.IHyadesEditorPart; >+import org.eclipse.jface.viewers.StructuredSelection; >+import org.eclipse.jface.wizard.WizardDialog; >+import org.eclipse.swt.widgets.Display; >+import org.eclipse.ui.PlatformUI; > > /** > * @author marcelop >@@ -49,4 +56,35 @@ > > getTestSuiteForm().updateTitle(); > } >+ >+ /* (non-Javadoc) >+ * @see org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension#save(org.eclipse.core.runtime.IProgressMonitor) >+ */ >+ public void save(IProgressMonitor monitor) throws Exception { >+ >+ monitor.beginTask("", 2); //$NON-NLS-1$ >+ >+ >+ //TODO: Change recording wizard and new wizard to gather require fields and populate classpath. >+ >+ //TODO: Use JUnit code generation facility. >+ >+ //TODO: Change to the wait cursor. >+ >+ try { >+ HttpGenerateWizard httpGenerateWizard = new HttpGenerateWizard(); >+ httpGenerateWizard.init(PlatformUI.getWorkbench(), new StructuredSelection(getTestSuite())); >+ >+ WizardDialog wizardDialog = new WizardDialog(Display.getDefault().getActiveShell(), httpGenerateWizard); >+ wizardDialog.open(); >+ >+ httpGenerateWizard.dispose(); >+ >+ // Perform the save >+ super.save(new SubProgressMonitor(monitor, 1)); >+ } >+ finally { >+ monitor.done(); >+ } >+ } > } >\ No newline at end of file
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 123650
: 101025