Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Getting active launch target for a descriptor

In general, the launch bar was never meant to be a system wide keeper of such knowledge. It’s just a UI element and we only kept that data because we wanted the selections to make sense when you switched back and forth. And, in the end, it’s really just a band-aid over the poor UX of Eclipse’s launch system.

 

Having said that, we do similar things with CDT’s core build where we want to set the active build configuration based on selections of the launch bar. Take a look at CDT’s CoreBuildLaunchBarTracker. You’ll need to manage this state yourself but at least the launch bar can give you clues.

 

Doug.

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Waqas Ilyas
Sent: Monday, March 26, 2018 7:19 PM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] Getting active launch target for a descriptor

 

Hi,

I am trying to hook in my delegates and launch configurations with the launch bar, and I have a question. How do I get the saved launch target last selected for a launch descriptor?

I am not looking for the active launch target, at any given time. I am looking for the active launch target for a descriptor that may itself not be active anymore. Is there a way to get this information from the launch manager?

Or do i have to set up a listener and maintain my own list?


Back to the top