Community
Participate
Working Groups
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.
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);
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.window.Window;
* Extends the HyadesNewWizard to create the Hyades Generic DataPool.
UIUtil.openEditor(file, TestUIExtension.DATAPOOL_EDITOR_PART_ID, false);
import org.eclipse.hyades.ui.internal.wizard.HyadesNewWizard;
import org.eclipse.jface.dialogs.IDialogSettings;
* Extends the HyadesNewWizard to create the Hyades Generic Artifact.
return factory.createResource(uri);
public void run()
* @see org.eclipse.hyades.ui.internal.wizard.HyadesNewWizard#openEditor(org.eclipse.core.resources.IFile)
*/
UIUtil.openEditor(file, TestUIExtension.ARTIFACT_EDITOR_PART_ID, false);
* Abstract wizard class to create Test Suite.
UIUtil.openEditor(file, TestUIExtension.GENERIC_TEST_SUITE_EDITOR_PART_ID, false);
import org.eclipse.core.resources.IFile;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject;
* Extends the <code>HyadesNewWizard</code> to create the Hyades Generic Location.
UIUtil.openEditor(file, TestUIExtension.LOCATION_EDITOR_PART_ID, false);