Skip to content

Commit

Permalink
Clean-up and remove debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
dma committed Jun 29, 2016
1 parent 01cbdde commit 4ff78e6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public AlertExporter() {
}

public void exportAlertsbyList(List<IScanAlert> alerts) {
System.out.println("Size:"+alerts.size());
writeFile("/tmp/test2.html", renderer.renderList(alerts));
}

Expand All @@ -49,7 +48,6 @@ public void exportAllAlerts() {
List <IScanInstance> scanInstances = alertRepository.getAllScanInstances();

for (IScanInstance s : scanInstances) {
System.out.println("Scan instance:" + s.getScanId());
List<IScanAlert> scanInstanceAlerts = s.getAllAlerts();
writeFile("/tmp/test.html",renderer.renderList(scanInstanceAlerts));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ public void addPages() {

@Override
public boolean performFinish() {
// TODO Auto-generated method stub



List<IScanAlert> alerts;
alerts = two.allAlertsFromTree();
System.out.println(alerts.size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,14 @@ public void widgetSelected(SelectionEvent e) {
if (scanInstanceItem != null) {
for (TreeItem sItem : alertsTree.getItems()) {
if (sItem == scanInstanceItem) {
System.out.println("Found it");
Rectangle itemRectangle = sItem.getBounds();
Rectangle clientArea = treeContainer.getClientArea();
Point origin = treeContainer.getOrigin();
if (itemRectangle.x < origin.x || itemRectangle.y < origin.y
|| itemRectangle.x + itemRectangle.width > origin.x + clientArea.width
|| itemRectangle.y + itemRectangle.height > origin.y + clientArea.height) {
treeContainer.setOrigin(0, itemRectangle.y);
System.out.println(origin.x + " " + origin.y + " " + itemRectangle.x + " "+ itemRectangle.y);
origin = treeContainer.getOrigin();
System.out.println(origin.x + " " + origin.y + " " + itemRectangle.x + " "+ itemRectangle.y);
treeContainer.setOrigin(new Point(sItem.getBounds().x, sItem.getBounds().y));
}
else {
Expand All @@ -219,7 +216,6 @@ protected List<IScanAlert> allAlertsFromTree() {

for (TreeItem t : alertsTree.getItems()) {
if (t.getChecked() == true) {
System.out.println(t.getData());
// IScanInstance s = (IScanInstance)(t.getData());
List<IScanAlert> scanInstanceAlerts = (List<IScanAlert>) t.getData();
//s.getAllAlerts();
Expand Down

0 comments on commit 4ff78e6

Please sign in to comment.