Skip to content

Commit

Permalink
Minor Bug Fix
Browse files Browse the repository at this point in the history
Fixed progress bar and small refractoring
  • Loading branch information
sajedjalil committed Nov 24, 2018
1 parent 4da3ee3 commit 71bd8b1
Show file tree
Hide file tree
Showing 18 changed files with 60 additions and 61 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package inputCodeBeautifier;
package codeBeautifier;

import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package inputCodeBeautifier;
package codeBeautifier;

import java.io.BufferedReader;
import java.io.BufferedWriter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package inputCodeBeautifier;
package codeBeautifier;

import java.io.File;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package inputCodeBeautifier;
package codeBeautifier;

import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package inputCodeBeautifier;
package codeBeautifier;

import java.io.File;
import java.io.IOException;
Expand Down
8 changes: 8 additions & 0 deletions src/codeBeautifier/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @author Sajed Jalil
* @email [email protected]
* @year 2018
* @location Dhaka
*
*/
package codeBeautifier;
8 changes: 4 additions & 4 deletions src/controlFlowGraphBuilder/package-info.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* @author Sajed Jalil
* @email [email protected]
* @year 2018
* @location Dhaka
*
*/
/**
* @author Sajed
*
*/
package controlFlowGraphBuilder;
8 changes: 4 additions & 4 deletions src/database/package-info.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* @author Sajed Jalil
* @email [email protected]
* @year 2018
* @location Dhaka
*
*/
/**
* @author Sajed49
*
*/
package database;
8 changes: 0 additions & 8 deletions src/inputCodeBeautifier/package-info.java

This file was deleted.

9 changes: 3 additions & 6 deletions src/io/package-info.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/**
*
*/
/**
* @author Sajed Jalil
* @mail [email protected]
* @university University of Dhaka
* @email [email protected]
* @year 2018
* @location Dhaka
*
*
*/
package io;
5 changes: 3 additions & 2 deletions src/main/MainController.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class MainController {
@FXML Button openResultButton;

@FXML Text openFilePath;
@FXML ProgressBar runProgress;
public @FXML ProgressBar runProgress;
@FXML Text resultDirectory;

@FXML
Expand Down Expand Up @@ -47,8 +47,9 @@ private void selectFiles() {
@FXML
private void runFiles() {

runProgress.setProgress(0.0);
Start.run();

runProgress.setProgress(1.0);
runButton.setText("Re-Run");

openResultButton.setVisible(true);
Expand Down
22 changes: 11 additions & 11 deletions src/main/Start.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import java.util.ArrayList;
import java.util.Comparator;

import codeBeautifier.CodeBeautifier;
import database.DatabaseLoader;
import inputCodeBeautifier.CodeBeautifier;
import io.InputFileCopyMachine;

public class Start extends Application{
Expand All @@ -35,8 +35,6 @@ public static void main(String[] args) {

loadNecessaryStuffs();

//System.out.println("E:"+'\\'+"GitHub"+'\\'+"C-Path-Finder"+'\\'+"test");
//new DatabaseLoader();
launch(args);
}

Expand Down Expand Up @@ -83,23 +81,25 @@ public static void run(){

database();

try {
Files.walk( Paths.get(outputPath) ).sorted(Comparator.reverseOrder())
.map(Path::toFile)
.forEach(File::delete);
}catch (IOException e) {
e.printStackTrace();
}
new InputFileCopyMachine(inputPath, outputPath);

//for memorized execution
dbloader.directorySearcher( new File(outputPath) );

new CodeBeautifier( new File(outputPath));

dbloader.loadIntoFileTable();

new CParser(dbloader.getChangedFiles());
dbloader.selectAllFile();

try {
Files.walk( Paths.get(outputPath) ).sorted(Comparator.reverseOrder())
.map(Path::toFile)
.forEach(File::delete);
}catch (IOException e) {
e.printStackTrace();
}
}


Expand Down
9 changes: 5 additions & 4 deletions src/main/package-info.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* @author Sajed Jalil
* @email [email protected]
* @year 2018
* @location Dhaka
*
*/
/**
* @author Sajed49
*
*/

package main;
2 changes: 1 addition & 1 deletion src/parser/CParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public CParser(File file) {
}

public CParser(ArrayList<String> changedFiles) {

for(String s: changedFiles) {

File file = new File(s);
Expand Down
8 changes: 4 additions & 4 deletions src/parser/components/package-info.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* @author Sajed Jalil
* @email [email protected]
* @year 2018
* @location Dhaka
*
*/
/**
* @author Sajed49
*
*/
package parser.components;
8 changes: 4 additions & 4 deletions src/parser/package-info.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* @author Sajed Jalil
* @email [email protected]
* @year 2018
* @location Dhaka
*
*/
/**
* @author Sajed49
*
*/
package parser;
8 changes: 4 additions & 4 deletions src/result/package-info.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* @author Sajed Jalil
* @email [email protected]
* @year 2018
* @location Dhaka
*
*/
/**
* @author Sajed49
*
*/
package result;
8 changes: 4 additions & 4 deletions src/symbolicSolver/package-info.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* @author Sajed Jalil
* @email [email protected]
* @year 2018
* @location Dhaka
*
*/
/**
* @author Sajed49
*
*/
package symbolicSolver;

0 comments on commit 71bd8b1

Please sign in to comment.