コード例 #1
0
 @Override
 protected void populateXMLTextChunk(OperationTextChunk textChunk) {
   textChunk.concat("<SelectionChangedOperation>" + "\n");
   textChunk.concat("\t" + "<source>" + sourceName + "</source>" + "\n");
   textChunk.concat("<selections>");
   for (String selection : selections) {
     textChunk.concat("\t" + "<selection>" + selection + "</selection>" + "\n");
   }
   textChunk.concat("</selections>");
   textChunk.concat("\t" + "<timestamp>" + getTime() + "</timestamp>" + "\n");
   textChunk.concat("</SelectionChangedOperation>" + "\n");
 }
コード例 #2
0
 @Override
 protected void populateCSVTextChunk(OperationTextChunk textChunk) {
   textChunk.concat("SelectionChangedOperation , " + getTime() + " ,");
   textChunk.concat("\"[{");
   textChunk.concat("source :" + sourceName + ",");
   textChunk.concat("selections : [{");
   for (String selection : selections) {
     textChunk.concat("selection :" + selection + ",");
   }
   textChunk.concat("}]}]\" \n");
 }
コード例 #3
0
 @Override
 protected void populateXMLTextChunk(OperationTextChunk textChunk) {
   textChunk.concat("<ReferencingProjectsChangedOperation>" + "\n");
   textChunk.concat("\t" + "<ProjectName>");
   textChunk.concat("" + "projectName");
   textChunk.concat("</ProjectName>" + "\n");
   textChunk.concat("\t" + "<ReferencingProjectsCount>");
   textChunk.concat("" + referencingProjectNames.size());
   textChunk.concat("</ReferencingProjectsCount>" + "\n");
   for (String referencingProjectName : referencingProjectNames) {
     textChunk.concat("\t" + "<ReferencingProjectName>");
     textChunk.concat("" + referencingProjectName);
     textChunk.concat("</ReferencingProjectName>" + "\n");
   }
   textChunk.concat("\t" + "<timestamp>" + "\n");
   textChunk.concat("" + getTime());
   textChunk.concat("</timestamp>" + "\n");
   textChunk.concat("</ReferencingProjectsChangedOperation>" + "\n");
 }