Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-debug-dev] launch configuration filtering

hi,

i had an idea for a small improvement to the launch configurations dialog.

the problem: i typically have three or four projects i'm working on at any
one time, each with its own set of launch configurations. when i have to
change course and run things in another project, i find myself having to
hunt down the desired configuration in the list of ~15-20 existing
configurations.

ideally, i'd be able to toggle the launch configurations display between
displaying those that are associated with the currently selected project in
the workspace, and displaying everything.

this isn't as easy as i thought it would be, since the project attribute is
currently provided by JDT. however, i don't see why this attribute can't be
made more general, then the launch configuration treeview's content provider
can do the filtering. and if launch configuration types don't have the
concept of an associated project, well, thats fine, it won't have that
attribute and hence filtering will not apply to it.

pseudocode for the filtering in the content provider:

    if filteringByProject

        if configProject is null
            # if we're filtering, we typically want to ignore configurations
            # with no associated project
            continue

        if selectedResourceProject not null
            # we also only want to filter if we can determine the selected
project,
            # if we can't we display everything
            if not selectedResourceProject equals configProject
                continue


where selectedResourceProject is an IProject obtained from
LaunchConfigurationDialog.getResourceContext(),
if any, and configProject is an IProject obtained by looking up a project
from its name (if any) using ILaunchConfiguration.getAttribute().

the feature request i opened for this feature is at:

http://bugs.eclipse.org/bugs/show_bug.cgi?id=22195

anyone like or dislike this suggestion?

regards,
leon.




Back to the top