сообщения в json
This commit is contained in:
7
.idea/workspace.xml
generated
7
.idea/workspace.xml
generated
@@ -7,7 +7,12 @@
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Constants.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Constants.java" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/FileMessagesJson.java" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/MessagesJson.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/properties" beforeDir="false" afterPath="$PROJECT_DIR$/properties" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SPF_ParseFilesWithOrder.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SPF_ParseFilesWithOrder.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/Message.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/Message.java" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"ServerUserPassword": "mprit_2011",
|
||||
"OfferRegistrationOnStart": true,
|
||||
"Workspace": "E:\\Tests",
|
||||
"ProjectsSearchDirectory": "E:\\BUG",
|
||||
"ProjectsSearchDirectory": "E:\\SAPFOR\\Tests",
|
||||
"DocumentsDirectory": "C:\\Users\\misha\\Documents\\_testing_system",
|
||||
"VisualiserPath": "C:\\Users\\misha\\Downloads",
|
||||
"Sapfor_FPath": "E:\\_sapfor_x64\\Components\\Sapfor_F",
|
||||
|
||||
@@ -8,6 +8,7 @@ import _VisualDVM.Passes.PassCode;
|
||||
import _VisualDVM.Passes.Sapfor.SapforAnalysis;
|
||||
import _VisualDVM.ProjectData.Files.DBProjectFile;
|
||||
import _VisualDVM.ProjectData.Files.FileState;
|
||||
import _VisualDVM.ProjectData.Files.FilesOrderJson;
|
||||
import _VisualDVM.ProjectData.Files.UI.Editor.SPFEditor;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
|
||||
@@ -103,7 +104,9 @@ public class SPF_ParseFilesWithOrder extends SapforAnalysis {
|
||||
}
|
||||
@Override
|
||||
protected void unpack(String packed) throws Exception {
|
||||
for (String fileName_ : packed.split("\\|"))
|
||||
FilesOrderJson filesOrderJson = Utils_.gson.fromJson(packed, FilesOrderJson.class);
|
||||
System.out.println(packed);
|
||||
for (String fileName_ :filesOrderJson.allFiles)
|
||||
target.files_order.add(Utils_.toW(fileName_));
|
||||
}
|
||||
@Override
|
||||
|
||||
10
src/_VisualDVM/ProjectData/Messages/FileMessagesJson.java
Normal file
10
src/_VisualDVM/ProjectData/Messages/FileMessagesJson.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package _VisualDVM.ProjectData.Messages;
|
||||
import com.google.gson.annotations.Expose;
|
||||
|
||||
import java.util.List;
|
||||
public class FileMessagesJson {
|
||||
@Expose
|
||||
public String file;
|
||||
@Expose
|
||||
public List<Message> messages;
|
||||
}
|
||||
@@ -25,6 +25,7 @@ public class Message extends iDBObject {
|
||||
public String group_s = "#";
|
||||
@Expose
|
||||
public String value;
|
||||
//--
|
||||
public Message() {
|
||||
}
|
||||
public Message(String file_in, int line_in, String value_in, int group_in
|
||||
|
||||
8
src/_VisualDVM/ProjectData/Messages/MessagesJson.java
Normal file
8
src/_VisualDVM/ProjectData/Messages/MessagesJson.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package _VisualDVM.ProjectData.Messages;
|
||||
import com.google.gson.annotations.Expose;
|
||||
|
||||
import java.util.List;
|
||||
public class MessagesJson {
|
||||
@Expose
|
||||
public List<FileMessagesJson> allMessages;
|
||||
}
|
||||
Reference in New Issue
Block a user