mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2025-01-11 04:29:41 +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 {
|
public final class LanguageBreakpointAdapterFactory implements IToggleBreakpointsTargetFactory {
|
||||||
|
|
||||||
private String TARGET_ID_PREFIX = LanguageBreakpointsTarget.class.getName() + ".";
|
private String TARGET_ID_PREFIX = LanguageBreakpointsTarget.class.getName() + ".";
|
||||||
private Set<String> defaultSet;
|
|
||||||
|
|
||||||
public LanguageBreakpointAdapterFactory() {
|
public LanguageBreakpointAdapterFactory() {
|
||||||
defaultSet = new HashSet<String>();
|
|
||||||
defaultSet.add(TARGET_ID_PREFIX);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<String> getToggleTargets(IWorkbenchPart part, ISelection selection) {
|
public Set<String> getToggleTargets(IWorkbenchPart part, ISelection selection) {
|
||||||
if (part instanceof LanguageEditor) {
|
if (part instanceof LanguageEditor) {
|
||||||
|
Set<String> defaultSet = new HashSet<String>();
|
||||||
|
defaultSet.add(getDefaultToggleTarget(part, selection));
|
||||||
return defaultSet;
|
return defaultSet;
|
||||||
}
|
}
|
||||||
return Collections.emptySet();
|
return Collections.emptySet();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user