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 90672 Details for
Bug 206356
[Usability] Switch to Test Perspective after creating a test asset.
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]
Changes for defect 206356
patch.txt (text/plain), 8.45 KB, created by
Tony Wang
on 2008-02-25 14:09:30 EST
(
hide
)
Description:
Changes for defect 206356
Filename:
MIME Type:
Creator:
Tony Wang
Created:
2008-02-25 14:09:30 EST
Size:
8.45 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.hyades.test.ui >Index: src/org/eclipse/hyades/test/ui/internal/wizard/DeploymentNewWizard.java >=================================================================== >RCS file: /cvsroot/tptp/test/org.eclipse.hyades.test.ui/src/org/eclipse/hyades/test/ui/internal/wizard/DeploymentNewWizard.java,v >retrieving revision 1.9 >diff -u -r1.9 DeploymentNewWizard.java >--- src/org/eclipse/hyades/test/ui/internal/wizard/DeploymentNewWizard.java 22 Mar 2007 14:42:03 -0000 1.9 >+++ src/org/eclipse/hyades/test/ui/internal/wizard/DeploymentNewWizard.java 25 Feb 2008 19:08:15 -0000 >@@ -31,6 +31,7 @@ > import org.eclipse.jface.wizard.IWizardPage; > import org.eclipse.osgi.util.NLS; > import org.eclipse.ui.PartInitException; >+import org.eclipse.ui.PlatformUI; > > /** > * Extends the HyadesNewWizard to create the Deployment. >@@ -150,6 +151,14 @@ > protected void openEditor(IFile file) > throws PartInitException > { >+ //Open the Test perspective: >+ try { >+ PlatformUI.getWorkbench().showPerspective("org.eclipse.hyades.ui.perspective.TestPerspective",PlatformUI.getWorkbench().getActiveWorkbenchWindow()); >+ } >+ catch (Exception e) { >+ //Ignore since Test perspective could not be opened. >+ } >+ > if(UiPlugin.getInstance().getPreferenceStore().getBoolean(TestUI.OPEN_EDITOR)) > UIUtil.openEditor(file, TestUIExtension.DEPLOYMENT_EDITOR_PART_ID, false); > } >Index: src/org/eclipse/hyades/test/ui/internal/wizard/DatapoolNewWizard.java >=================================================================== >RCS file: /cvsroot/tptp/test/org.eclipse.hyades.test.ui/src/org/eclipse/hyades/test/ui/internal/wizard/DatapoolNewWizard.java,v >retrieving revision 1.10 >diff -u -r1.10 DatapoolNewWizard.java >--- src/org/eclipse/hyades/test/ui/internal/wizard/DatapoolNewWizard.java 22 Mar 2007 14:42:03 -0000 1.10 >+++ src/org/eclipse/hyades/test/ui/internal/wizard/DatapoolNewWizard.java 25 Feb 2008 19:08:15 -0000 >@@ -37,6 +37,7 @@ > import org.eclipse.jface.dialogs.MessageDialog; > import org.eclipse.jface.window.Window; > import org.eclipse.ui.PartInitException; >+import org.eclipse.ui.PlatformUI; > > /** > * Extends the HyadesNewWizard to create the Hyades Generic DataPool. >@@ -228,6 +229,15 @@ > protected void openEditor(IFile file) > throws PartInitException > { >+ //Open the Test perspective: >+ try { >+ PlatformUI.getWorkbench().showPerspective("org.eclipse.hyades.ui.perspective.TestPerspective",PlatformUI.getWorkbench().getActiveWorkbenchWindow()); >+ } >+ catch (Exception e) { >+ //Ignore since Test perspective could not be opened. >+ } >+ >+ > if(UiPlugin.getInstance().getPreferenceStore().getBoolean(TestUI.OPEN_EDITOR)) > UIUtil.openEditor(file, TestUIExtension.DATAPOOL_EDITOR_PART_ID, false); > } >Index: src/org/eclipse/hyades/test/ui/internal/wizard/ArtifactNewWizard.java >=================================================================== >RCS file: /cvsroot/tptp/test/org.eclipse.hyades.test.ui/src/org/eclipse/hyades/test/ui/internal/wizard/ArtifactNewWizard.java,v >retrieving revision 1.8 >diff -u -r1.8 ArtifactNewWizard.java >--- src/org/eclipse/hyades/test/ui/internal/wizard/ArtifactNewWizard.java 22 Mar 2007 14:42:03 -0000 1.8 >+++ src/org/eclipse/hyades/test/ui/internal/wizard/ArtifactNewWizard.java 25 Feb 2008 19:08:15 -0000 >@@ -30,6 +30,7 @@ > import org.eclipse.hyades.ui.internal.wizard.HyadesNewWizard; > import org.eclipse.jface.dialogs.IDialogSettings; > import org.eclipse.ui.PartInitException; >+import org.eclipse.ui.PlatformUI; > > /** > * Extends the HyadesNewWizard to create the Hyades Generic Artifact. >@@ -158,13 +159,26 @@ > return factory.createResource(uri); > } > >+ >+ public void run() >+ { > >+ } >+ > /** > * @see org.eclipse.hyades.ui.internal.wizard.HyadesNewWizard#openEditor(org.eclipse.core.resources.IFile) >- */ >+ */ > protected void openEditor(IFile file) > throws PartInitException >- { >+ { >+ //Open the Test perspective: >+ try { >+ PlatformUI.getWorkbench().showPerspective("org.eclipse.hyades.ui.perspective.TestPerspective",PlatformUI.getWorkbench().getActiveWorkbenchWindow()); >+ } >+ catch (Exception e) { >+ //Ignore since Test perspective could not be opened. >+ } >+ > if(UiPlugin.getInstance().getPreferenceStore().getBoolean(TestUI.OPEN_EDITOR)) > UIUtil.openEditor(file, TestUIExtension.ARTIFACT_EDITOR_PART_ID, false); > } >Index: src/org/eclipse/hyades/test/ui/wizard/TestSuiteNewWizard2.java >=================================================================== >RCS file: /cvsroot/tptp/test/org.eclipse.hyades.test.ui/src/org/eclipse/hyades/test/ui/wizard/TestSuiteNewWizard2.java,v >retrieving revision 1.5 >diff -u -r1.5 TestSuiteNewWizard2.java >--- src/org/eclipse/hyades/test/ui/wizard/TestSuiteNewWizard2.java 22 Mar 2007 14:42:03 -0000 1.5 >+++ src/org/eclipse/hyades/test/ui/wizard/TestSuiteNewWizard2.java 25 Feb 2008 19:08:15 -0000 >@@ -32,6 +32,7 @@ > import org.eclipse.hyades.ui.internal.wizard.HyadesNewWizard; > import org.eclipse.jface.dialogs.IDialogSettings; > import org.eclipse.ui.PartInitException; >+import org.eclipse.ui.PlatformUI; > > /** > * Abstract wizard class to create Test Suite. >@@ -158,6 +159,14 @@ > protected void openEditor(IFile file) > throws PartInitException > { >+ //Open the Test perspective: >+ try { >+ PlatformUI.getWorkbench().showPerspective("org.eclipse.hyades.ui.perspective.TestPerspective",PlatformUI.getWorkbench().getActiveWorkbenchWindow()); >+ } >+ catch (Exception e) { >+ //Ignore since Test perspective could not be opened. >+ } >+ > if(UiPlugin.getInstance().getPreferenceStore().getBoolean(TestUI.OPEN_EDITOR)) > UIUtil.openEditor(file, TestUIExtension.GENERIC_TEST_SUITE_EDITOR_PART_ID, false); > } >Index: src/org/eclipse/hyades/test/ui/wizard/TestSuiteNewWizard.java >=================================================================== >RCS file: /cvsroot/tptp/test/org.eclipse.hyades.test.ui/src/org/eclipse/hyades/test/ui/wizard/TestSuiteNewWizard.java,v >retrieving revision 1.9 >diff -u -r1.9 TestSuiteNewWizard.java >--- src/org/eclipse/hyades/test/ui/wizard/TestSuiteNewWizard.java 22 Mar 2007 14:42:03 -0000 1.9 >+++ src/org/eclipse/hyades/test/ui/wizard/TestSuiteNewWizard.java 25 Feb 2008 19:08:15 -0000 >@@ -14,6 +14,7 @@ > import org.eclipse.core.resources.IFile; > import org.eclipse.jface.dialogs.IDialogSettings; > import org.eclipse.ui.PartInitException; >+import org.eclipse.ui.PlatformUI; > > import org.eclipse.emf.common.util.URI; > import org.eclipse.emf.ecore.EObject; >@@ -154,6 +155,14 @@ > protected void openEditor(IFile file) > throws PartInitException > { >+ //Open the Test perspective: >+ try { >+ PlatformUI.getWorkbench().showPerspective("org.eclipse.hyades.ui.perspective.TestPerspective",PlatformUI.getWorkbench().getActiveWorkbenchWindow()); >+ } >+ catch (Exception e) { >+ //Ignore since Test perspective could not be opened. >+ } >+ > if(UiPlugin.getInstance().getPreferenceStore().getBoolean(TestUI.OPEN_EDITOR)) > UIUtil.openEditor(file, TestUIExtension.GENERIC_TEST_SUITE_EDITOR_PART_ID, false); > } >Index: src/org/eclipse/hyades/test/ui/wizard/LocationNewWizard.java >=================================================================== >RCS file: /cvsroot/tptp/test/org.eclipse.hyades.test.ui/src/org/eclipse/hyades/test/ui/wizard/LocationNewWizard.java,v >retrieving revision 1.5 >diff -u -r1.5 LocationNewWizard.java >--- src/org/eclipse/hyades/test/ui/wizard/LocationNewWizard.java 7 Dec 2007 04:04:00 -0000 1.5 >+++ src/org/eclipse/hyades/test/ui/wizard/LocationNewWizard.java 25 Feb 2008 19:08:15 -0000 >@@ -26,6 +26,7 @@ > import org.eclipse.hyades.ui.internal.wizard.HyadesNewWizard; > import org.eclipse.jface.dialogs.IDialogSettings; > import org.eclipse.ui.PartInitException; >+import org.eclipse.ui.PlatformUI; > > /** > * Extends the <code>HyadesNewWizard</code> to create the Hyades Generic Location. >@@ -123,6 +124,15 @@ > protected void openEditor(IFile file) > throws PartInitException > { >+ //Open the Test perspective: >+ try { >+ PlatformUI.getWorkbench().showPerspective("org.eclipse.hyades.ui.perspective.TestPerspective",PlatformUI.getWorkbench().getActiveWorkbenchWindow()); >+ } >+ catch (Exception e) { >+ //Ignore since Test perspective could not be opened. >+ } >+ >+ > if(UiPlugin.getInstance().getPreferenceStore().getBoolean(TestUI.OPEN_EDITOR)) > UIUtil.openEditor(file, TestUIExtension.LOCATION_EDITOR_PART_ID, false); > }
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 206356
:
90672
|
90997