mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2024-11-06 16:04:44 +00:00
Compute breakpoint default set based on language of editor
This commit is contained in:
parent
a3d6cd75c8
commit
29538d2880
@ -45,16 +45,16 @@ import com.wudsn.ide.lng.editor.LanguageEditor;
|
||||
public final class LanguageBreakpointAdapterFactory implements IToggleBreakpointsTargetFactory {
|
||||
|
||||
private String TARGET_ID_PREFIX = LanguageBreakpointsTarget.class.getName() + ".";
|
||||
private Set<String> defaultSet;
|
||||
|
||||
public LanguageBreakpointAdapterFactory() {
|
||||
defaultSet = new HashSet<String>();
|
||||
defaultSet.add(TARGET_ID_PREFIX);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<String> getToggleTargets(IWorkbenchPart part, ISelection selection) {
|
||||
if (part instanceof LanguageEditor) {
|
||||
Set<String> defaultSet = new HashSet<String>();
|
||||
defaultSet.add(getDefaultToggleTarget(part, selection));
|
||||
return defaultSet;
|
||||
}
|
||||
return Collections.emptySet();
|
||||
|
Loading…
Reference in New Issue
Block a user