mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
Bug 466489 - Filter out external tools builders.
Change-Id: Id14a01246c013fc47c76f693dc7f9d063f361163
This commit is contained in:
parent
f16f7a86c8
commit
92d08ca430
1 changed files with 10 additions and 2 deletions
|
@ -15,6 +15,7 @@ import java.util.Map;
|
|||
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||
import org.eclipse.debug.core.ILaunchConfigurationType;
|
||||
import org.eclipse.debug.core.ILaunchManager;
|
||||
import org.eclipse.launchbar.core.ILaunchDescriptor;
|
||||
import org.eclipse.launchbar.core.ILaunchDescriptorType;
|
||||
|
@ -34,8 +35,15 @@ public class DefaultLaunchDescriptorType implements ILaunchDescriptorType {
|
|||
if (launchObject instanceof ILaunchConfiguration) {
|
||||
ILaunchConfiguration config = (ILaunchConfiguration) launchObject;
|
||||
try {
|
||||
if (config.getType() != null && config.getType().isPublic()
|
||||
&& !(config.getAttribute(ILaunchManager.ATTR_PRIVATE, false))) {
|
||||
ILaunchConfigurationType type = config.getType();
|
||||
if (type == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Filter out private and external tools builders
|
||||
String category = type.getCategory();
|
||||
if (type.isPublic() && !(config.getAttribute(ILaunchManager.ATTR_PRIVATE, false))
|
||||
&& !("org.eclipse.ui.externaltools.builder".equals(category))) { //$NON-NLS-1$
|
||||
|
||||
DefaultLaunchDescriptor descriptor = descriptors.get(config);
|
||||
if (descriptor == null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue