Maven structure for org.eclipse.blockchain.ui and few code changes.
diff --git a/org.eclipse.blockchain.ui/pom.xml b/org.eclipse.blockchain.ui/pom.xml
new file mode 100644
index 0000000..78158a8
--- /dev/null
+++ b/org.eclipse.blockchain.ui/pom.xml
@@ -0,0 +1,16 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.eclipse.blockchain</groupId>
+ <artifactId>org.eclipse.blockchain.tycho</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../org.eclipse.blockchain.tycho</relativePath>
+ </parent>
+
+ <groupId>org.eclipse.blockchain</groupId>
+ <artifactId>org.eclipse.blockchain.ui</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+
+</project>
\ No newline at end of file
diff --git a/org.eclipse.blockchain.ui/src/org/eclipse/blockchain/ui/views/EtherAccountViewPart.java b/org.eclipse.blockchain.ui/src/org/eclipse/blockchain/ui/views/EtherAccountViewPart.java
index d204c78..362b012 100644
--- a/org.eclipse.blockchain.ui/src/org/eclipse/blockchain/ui/views/EtherAccountViewPart.java
+++ b/org.eclipse.blockchain.ui/src/org/eclipse/blockchain/ui/views/EtherAccountViewPart.java
@@ -91,6 +91,7 @@
gridPane.add(txtGasValue, 1, 2);
gridPane.add(lblEtherBalance, 0, 3);
gridPane.add(EtherAccountViewPart.txtBalance, 1, 3);
+ txtBalance.setEditable(false);
scene = new Scene(gridPane, 400, 400);
@@ -154,4 +155,8 @@
setEthBalanace(Web3jHandler.getInstance().getAccount().getAccountBalance());
}
+ public static void clearAccountsSection() {
+ cmbAccount.setItems(FXCollections.observableArrayList());
+ txtBalance.setText("");
+ }
}
\ No newline at end of file