changeset 122:6b4a0676babd

Bug 2715: TextBox which shows opened file should be read-only. reviewed-by: ykubota
author Yasumasa Suenaga <yasuenag@gmail.com>
date Wed, 09 Dec 2015 14:28:18 +0900
parents 936e64a917d7
children 8313bad3000a
files ChangeLog analyzer/fx/src/main/resources/jp/co/ntt/oss/heapstats/plugin/builtin/log/log.fxml analyzer/fx/src/main/resources/jp/co/ntt/oss/heapstats/plugin/builtin/snapshot/snapshot.fxml analyzer/fx/src/main/resources/jp/co/ntt/oss/heapstats/plugin/builtin/threadrecorder/threadrecorder.fxml
diffstat 4 files changed, 13 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Dec 09 14:17:53 2015 +0900
+++ b/ChangeLog	Wed Dec 09 14:28:18 2015 +0900
@@ -11,6 +11,7 @@
 	* Bug 2694: HeapStats process is not finished with [File]-[Exit] menu.
 	* Bug 2698: Charts are not cleared when another file is opened.
 	* Bug 2699: Class Search is not work properly.
+	* Bug 2715: TextBox which shows opened file should be read-only.
 
 2015-11-05  Yasumasa Suenaga  <yasuenag@gmail.com>
 
--- a/analyzer/fx/src/main/resources/jp/co/ntt/oss/heapstats/plugin/builtin/log/log.fxml	Wed Dec 09 14:17:53 2015 +0900
+++ b/analyzer/fx/src/main/resources/jp/co/ntt/oss/heapstats/plugin/builtin/log/log.fxml	Wed Dec 09 14:28:18 2015 +0900
@@ -18,13 +18,14 @@
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 -->
 
+<?import java.lang.*?>
 <?import javafx.scene.control.*?>
 <?import javafx.scene.layout.*?>
 
-<AnchorPane xmlns:fx="http://javafx.com/fxml/1" id="Log" prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/8" fx:controller="jp.co.ntt.oss.heapstats.plugin.builtin.log.LogController">
+<AnchorPane id="Log" prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="jp.co.ntt.oss.heapstats.plugin.builtin.log.LogController">
     <children>
         <Button layoutX="14.5" layoutY="14.0" mnemonicParsing="false" onAction="#onLogFileClick" text="%button.log" AnchorPane.leftAnchor="14.5" AnchorPane.topAnchor="14.0" />
-        <TextField fx:id="logFileList" layoutX="114.0" layoutY="14.0" prefHeight="23.0" prefWidth="674.0" AnchorPane.leftAnchor="114.0" AnchorPane.rightAnchor="12.0" AnchorPane.topAnchor="14.0" />
+        <TextField fx:id="logFileList" editable="false" layoutX="83.0" layoutY="14.0" prefHeight="23.0" prefWidth="705.0" AnchorPane.leftAnchor="83.0" AnchorPane.rightAnchor="12.0" AnchorPane.topAnchor="14.0" />
         <Label layoutX="26.0" layoutY="49.0" text="%label.range" AnchorPane.leftAnchor="26.0" AnchorPane.topAnchor="49.0" />
         <ComboBox fx:id="startCombo" layoutX="83.0" layoutY="45.0" prefHeight="23.0" prefWidth="176.0" AnchorPane.leftAnchor="83.0" AnchorPane.topAnchor="45.0" />
         <Label layoutX="270.0" layoutY="49.0" text="-" AnchorPane.leftAnchor="270.0" AnchorPane.topAnchor="49.0" />
@@ -34,12 +35,12 @@
             <tabs>
                 <Tab text="%tab.resource">
                     <content>
-                        <fx:include fx:id="logResources" source="tabs/resources.fxml"/>
+                        <fx:include fx:id="logResources" source="tabs/resources.fxml" />
                     </content>
                 </Tab>
                 <Tab text="%tab.detail">
                     <content>
-                        <fx:include fx:id="logDetails" source="tabs/details.fxml"/>
+                        <fx:include fx:id="logDetails" source="tabs/details.fxml" />
                     </content>
                 </Tab>
             </tabs>
--- a/analyzer/fx/src/main/resources/jp/co/ntt/oss/heapstats/plugin/builtin/snapshot/snapshot.fxml	Wed Dec 09 14:17:53 2015 +0900
+++ b/analyzer/fx/src/main/resources/jp/co/ntt/oss/heapstats/plugin/builtin/snapshot/snapshot.fxml	Wed Dec 09 14:28:18 2015 +0900
@@ -18,13 +18,14 @@
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 -->
 
+<?import java.lang.*?>
 <?import javafx.scene.control.*?>
 <?import javafx.scene.layout.*?>
 
 <AnchorPane id="SnapShot" prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="jp.co.ntt.oss.heapstats.plugin.builtin.snapshot.SnapShotController">
     <children>
         <Button layoutX="14.5" layoutY="14.0" mnemonicParsing="false" onAction="#onSnapshotFileClick" text="%button.snapshot" AnchorPane.leftAnchor="14.5" AnchorPane.topAnchor="14.0" />
-        <TextField fx:id="snapshotList" layoutX="131.0" layoutY="14.0" prefHeight="23.0" prefWidth="697.0" AnchorPane.leftAnchor="131.0" AnchorPane.rightAnchor="12.0" AnchorPane.topAnchor="14.0" />
+        <TextField fx:id="snapshotList" editable="false" layoutX="83.0" layoutY="14.0" prefHeight="23.0" prefWidth="697.0" AnchorPane.leftAnchor="91.0" AnchorPane.rightAnchor="12.0" AnchorPane.topAnchor="14.0" />
         <Label layoutX="26.0" layoutY="49.0" text="%label.range" AnchorPane.leftAnchor="26.0" AnchorPane.topAnchor="49.0" />
         <ComboBox fx:id="startCombo" layoutX="83.0" layoutY="45.0" prefHeight="23.0" prefWidth="176.0" AnchorPane.leftAnchor="83.0" AnchorPane.topAnchor="45.0" />
         <Label layoutX="270.0" layoutY="49.0" text="-" AnchorPane.leftAnchor="270.0" AnchorPane.topAnchor="49.0" />
@@ -41,22 +42,22 @@
             <tabs>
                 <Tab text="%tab.summary">
                     <content>
-                        <fx:include fx:id="summary" source="tabs/summary.fxml"/>
+                        <fx:include fx:id="summary" source="tabs/summary.fxml" />
                     </content>
                 </Tab>
                 <Tab fx:id="histogramTab" text="%tab.histogram">
                     <content>
-                        <fx:include fx:id="histogram" source="tabs/histogram.fxml"/>
+                        <fx:include fx:id="histogram" source="tabs/histogram.fxml" />
                     </content>
                 </Tab>
                 <Tab fx:id="snapshotTab" text="%tab.snapshot">
                     <content>
-                        <fx:include fx:id="snapshot" source="tabs/snapshot.fxml"/>
+                        <fx:include fx:id="snapshot" source="tabs/snapshot.fxml" />
                     </content>
                 </Tab>
                 <Tab fx:id="reftreeTab" text="%tab.reftree">
                     <content>
-                        <fx:include fx:id="reftree" source="tabs/reftree.fxml"/>
+                        <fx:include fx:id="reftree" source="tabs/reftree.fxml" />
                     </content>
                 </Tab>
             </tabs>
--- a/analyzer/fx/src/main/resources/jp/co/ntt/oss/heapstats/plugin/builtin/threadrecorder/threadrecorder.fxml	Wed Dec 09 14:17:53 2015 +0900
+++ b/analyzer/fx/src/main/resources/jp/co/ntt/oss/heapstats/plugin/builtin/threadrecorder/threadrecorder.fxml	Wed Dec 09 14:28:18 2015 +0900
@@ -25,7 +25,7 @@
 <AnchorPane id="AnchorPane" prefHeight="600.0" prefWidth="800.0" stylesheets="@threadrecorder.css" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="jp.co.ntt.oss.heapstats.plugin.builtin.threadrecorder.ThreadRecorderController">
     <children>
         <Button layoutX="14.0" layoutY="14.0" mnemonicParsing="false" onAction="#onOpenBtnClick" text="%button.file" AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="14.0" />
-        <TextField fx:id="fileNameBox" layoutX="118.0" layoutY="14.0" prefHeight="25.0" prefWidth="666.0" AnchorPane.leftAnchor="120.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="14.0" />
+        <TextField fx:id="fileNameBox" editable="false" layoutX="118.0" layoutY="14.0" prefHeight="25.0" prefWidth="666.0" AnchorPane.leftAnchor="120.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="14.0" />
         <Label layoutX="14.0" layoutY="58.0" text="%label.timerange" AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="58.0" />
         <Button fx:id="okBtn" disable="true" layoutX="752.0" layoutY="54.0" mnemonicParsing="false" onAction="#onOkBtnClick" text="OK" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="54.0" />
         <TableView fx:id="timelineView" editable="true" layoutX="261.0" layoutY="91.0" prefWidth="120.0" AnchorPane.bottomAnchor="53.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="91.0">