Bug 34840 - PDE JUnit launch configuration includes external plug-ins [PDE JUnit]
Summary: PDE JUnit launch configuration includes external plug-ins [PDE JUnit]
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-12 12:37 EST by Rafael Chaves CLA
Modified: 2004-01-03 18:05 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Chaves CLA 2003-03-12 12:37:05 EST
PDE Junit 2.1.4
Eclipse RC2

When launching a new Eclipse instance, the PDE JUnit plug-in includes plug-ins 
available in Eclipse SDK for each built-in plug-in that is not available in the 
current workspace. It should include only those available in the current 
workspace, or provide settings similar to PDE Run-time Workbench launch 
configuration, which allows including external plug-ins selectively.

Core has automated tests that will activate all plug-ins in the platform 
registry, and when running in headless mode (using 
org.eclipse.pde.junit.coretestapplication), this will create problems with UI-
oriented plug-ins (because the workbench is not properly initialized). Keeping 
only core-related plug-ins in the dev workspace won't work, because the 
launched Eclipse instance will include Eclipse SDK built-in installed plug-ins 
when they are not available in the dev workspace.

For instance, calling JUnitPlugin.initializeDefaultPluginPreferences will 
activate JDT UI, which will try to access the object returned by 
PlatformUI.getWorkbench(), which will be null.

The outcome is that some core automated tests won't work using a headless 
configuration even when the workspace has no UI-related plug-ins.
Comment 1 Dirk Baeumer CLA 2003-03-23 10:42:03 EST
PDE JUnit is not part of the SDK. No action required for 2.1 
Comment 2 Erich Gamma CLA 2004-01-03 18:05:01 EST
this got addressed as part of the pde junit transtion.