use of org.dartlang.analysis.server.protocol.SourceFileEdit in project intellij-plugins by JetBrains.
the class OrganizeDirectivesProcessor method process.
public void process(JsonObject resultObject, RequestError requestError) {
if (resultObject != null) {
try {
JsonObject editObject = resultObject.get("edit").getAsJsonObject();
SourceFileEdit fileEdit = SourceFileEdit.fromJson(editObject);
consumer.computedEdit(fileEdit);
} catch (Exception exception) {
// catch any exceptions in the formatting of this response
requestError = generateRequestError(exception);
}
}
if (requestError != null) {
consumer.onError(requestError);
}
}
use of org.dartlang.analysis.server.protocol.SourceFileEdit in project intellij-plugins by JetBrains.
the class SortMembersProcessor method process.
public void process(JsonObject resultObject, RequestError requestError) {
if (resultObject != null) {
try {
JsonObject editObject = resultObject.get("edit").getAsJsonObject();
SourceFileEdit fileEdit = SourceFileEdit.fromJson(editObject);
consumer.computedEdit(fileEdit);
} catch (Exception exception) {
// catch any exceptions in the formatting of this response
requestError = generateRequestError(exception);
}
}
if (requestError != null) {
consumer.onError(requestError);
}
}
Aggregations