@Override public String getCategory() throws CoreException { return getType().getCategory(); }
protected boolean saveBeforeLaunch(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException { if (IExternalToolConstants.ID_EXTERNAL_TOOLS_BUILDER_LAUNCH_CATEGORY .equals(configuration.getType().getCategory())) { // don't prompt for builders return true; } return super.saveBeforeLaunch(configuration, mode, monitor); }
/** * Returns if the specified configuration should be considered as a potential candidate * @param config to configuration * @return if the specified configuration should be considered as a potential candidate * @throws CoreException if an exception occurs */ private boolean acceptConfiguration(ILaunchConfiguration config) throws CoreException { if(config != null && !DebugUITools.isPrivate(config)) { if(!"org.eclipse.ui.externaltools".equals(config.getType().getCategory())) { //$NON-NLS-1$ return true; } else { IResource[] res = config.getMappedResources(); if(res != null) { return true; } } } return false; }
if(type != null) { String identifier = type.getIdentifier(); if (!typeIds.contains(identifier) && type.isPublic() && !"org.eclipse.ui.externaltools.builder".equals(type.getCategory())) { //$NON-NLS-1$ typeIds.add(identifier);
/** * Returns the launch group the given launch configuration type belongs to, in * the specified mode, or <code>null</code> if none. * * @param type the type * @param mode the mode * @return the launch group the given launch configuration belongs to, in * the specified mode, or <code>null</code> if none */ public ILaunchGroup getLaunchGroup(ILaunchConfigurationType type, String mode) { if (!type.supportsMode(mode)) { return null; } String category = type.getCategory(); ILaunchGroup[] groups = getLaunchGroups(); ILaunchGroup extension = null; for (int i = 0; i < groups.length; i++) { extension = groups[i]; if (category == null) { if (extension.getCategory() == null && extension.getMode().equals(mode)) { return extension; } } else if (category.equals(extension.getCategory())) { if (extension.getMode().equals(mode)) { return extension; } } } return null; }
return !priv && !equalCategories(type.getCategory(), fCategory) && !WorkbenchActivityHelper.filterItem(new LaunchConfigurationTypeContribution(type));
return !priv && type.supportsMode(fGroup.getMode()) && equalCategories(type.getCategory(), fGroup.getCategory()) && !WorkbenchActivityHelper.filterItem(new LaunchConfigurationTypeContribution(type));
/** * Returns if the specified configuration is supported by this instance of the view. * Supported means that: * <ul> * <li>The configuration is not private</li> * <li>AND that the configurations' type supports the mode of the current launch group</li> * <li>AND that the category of the configurations' type matches that of the current launch group</li> * </ul> * @param configuration the configuration * @return true if the configuration is supported by this instance of the view, false otherwise * * @since 3.4 */ protected boolean isSupportedConfiguration(ILaunchConfiguration configuration) { try { ILaunchConfigurationType type = configuration.getType(); return !configuration.getAttribute(IDebugUIConstants.ATTR_PRIVATE, false) && type.supportsMode(getLaunchGroup().getMode()) && equalCategories(type.getCategory(), getLaunchGroup().getCategory()); } catch(CoreException ce) { DebugUIPlugin.log(ce); } return false; }