Shell for LaunchConfigurationDelegate subclass [message #640479] |
Mon, 22 November 2010 09:31 |
No real name Messages: 1 Registered: November 2010 |
Junior Member |
|
|
I am creating debug plugin. My requriement is when I click on debug option. A ListSelectionDialog should open.
I have extended LaunchConfigurationDelegate class. in launch method I created ListSelectionDialog, which requires parent shell object.
If I create new shell. eclipse and dialog are independent.
Here is the code:
public class ACLaunchDelegate extends LaunchConfigurationDelegate {
public void launch() {
ListSelectionDialog dlg = new ListSelectionDialog(
shell,
sessionIds,
new ArrayContentProvider(),
new LabelProvider(),
"Select session id:");
}
I tried passing different shell object from workbench, Display.getDefault. Everytime I am getting Invalid Thread access.
Please kindly do the needfull.
|
|
|
Powered by
FUDForum. Page generated in 0.08216 seconds