mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2024-12-23 00:29:47 +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