mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
mozilla rdp — init breakpoint management
This commit is contained in:
@@ -88,11 +88,18 @@ public abstract class BreakpointBase<L> extends Breakpoint {
|
||||
|
||||
public void setActualLocations(@Nullable List<L> value) {
|
||||
actualLocations.clear();
|
||||
if (value != null && !value.isEmpty()) {
|
||||
if (!ContainerUtil.isEmpty(value)) {
|
||||
actualLocations.addAll(value);
|
||||
}
|
||||
}
|
||||
|
||||
public void setActualLocation(@Nullable L value) {
|
||||
actualLocations.clear();
|
||||
if (value != null) {
|
||||
actualLocations.add(value);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract boolean isVmRegistered();
|
||||
|
||||
@Override
|
||||
|
||||
+7
-1
@@ -41,7 +41,7 @@ public abstract class BreakpointManagerBase<T extends BreakpointBase<?>> impleme
|
||||
|
||||
protected abstract T createBreakpoint(@NotNull BreakpointTarget target, int line, int column, @Nullable String condition, int ignoreCount, boolean enabled);
|
||||
|
||||
protected abstract AsyncResult<Breakpoint> doSetBreakpoint(BreakpointTarget target, T breakpoint);
|
||||
protected abstract AsyncResult<Breakpoint> doSetBreakpoint(@NotNull BreakpointTarget target, @NotNull T breakpoint);
|
||||
|
||||
@Override
|
||||
public Breakpoint setBreakpoint(@NotNull final BreakpointTarget target, int line, int column, @Nullable String condition, int ignoreCount, boolean enabled) {
|
||||
@@ -107,4 +107,10 @@ public abstract class BreakpointManagerBase<T extends BreakpointBase<?>> impleme
|
||||
dispatcher.getMulticaster().resolved(breakpoint);
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public FunctionSupport getFunctionSupport() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -63,7 +63,6 @@ public abstract class BreakpointTarget {
|
||||
|
||||
/**
|
||||
* A target that refers to a script by its name. Breakpoint will be set on every matching script currently loaded in VM.
|
||||
* E.g. you can safely set a breakpoint before the script is actually loaded.
|
||||
*/
|
||||
public static final class ScriptName extends BreakpointTarget {
|
||||
private final String name;
|
||||
@@ -72,6 +71,11 @@ public abstract class BreakpointTarget {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <R> R accept(@NotNull Visitor<R> visitor) {
|
||||
return visitor.visitScriptName(name);
|
||||
|
||||
+1
@@ -43,6 +43,7 @@ class ObjectValueReader<T> extends ValueReader {
|
||||
refToType.get().writeInstantiateCode(scope.getRootClassScope(), subtyping, out);
|
||||
out.append('(');
|
||||
addReaderParameter(subtyping, out);
|
||||
out.comma().append("null");
|
||||
if (subtyping && refToType.get().getSubtypeSupport() != null) {
|
||||
out.comma().append("this");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user