Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 370:2c61e6d434ff
Fix VncConnectionWorkers
author | innparusu |
---|---|
date | Sat, 15 Aug 2015 18:09:55 +0900 |
parents | 2d01ec1c02d2 |
children | 5995d0e24355 |
files | .idea/workspace.xml src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java src/viewer_swing/java/com/glavsoft/viewer/Viewer.java src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java |
diffstat | 7 files changed, 158 insertions(+), 118 deletions(-) [+] |
line wrap: on
line diff
--- a/.idea/workspace.xml Sat Aug 15 17:28:19 2015 +0900 +++ b/.idea/workspace.xml Sat Aug 15 18:09:55 2015 +0900 @@ -2,10 +2,8 @@ <project version="4"> <component name="ChangeListManager"> <list default="true" id="0a04b9e3-21eb-43ee-b441-59e664eecd89" name="Default" comment="setFitScreen in ReceiverTask"> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/ConnectionParams.java" afterPath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/ConnectionParams.java" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java" afterPath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java" afterPath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java" afterPath="$PROJECT_DIR$/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java" afterPath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java" afterPath="$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java" afterPath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java" /> @@ -74,8 +72,8 @@ <file leaf-file-name="TreeRFBProto.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-42.525" vertical-offset="15173" max-vertical-offset="18062"> - <caret line="862" column="4" selection-start-line="862" selection-start-column="4" selection-end-line="862" selection-end-column="4" /> + <state vertical-scroll-proportion="-0.0" vertical-offset="9394" max-vertical-offset="18106"> + <caret line="498" column="27" selection-start-line="498" selection-start-column="27" selection-end-line="498" selection-end-column="27" /> <folding /> </state> </provider> @@ -117,12 +115,14 @@ <file leaf-file-name="Viewer.java" pinned="false" current-in-tab="true"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.2540486" vertical-offset="6142" max-vertical-offset="9812"> - <caret line="320" column="67" selection-start-line="320" selection-start-column="67" selection-end-line="320" selection-end-column="67" /> + <state vertical-scroll-proportion="0.76983434" vertical-offset="8819" max-vertical-offset="9966"> + <caret line="465" column="24" selection-start-line="465" selection-start-column="24" selection-end-line="465" selection-end-column="24" /> <folding> - <element signature="e#0#15369#0" expanded="true" /> + <element signature="e#0#15487#0" expanded="true" /> <element signature="imports" expanded="true" /> - <element signature="e#14822#14833#0" expanded="true" /> + <element signature="e#10921#11074#0" expanded="true" /> + <element signature="e#11073#11074#0" expanded="true" /> + <element signature="e#14940#14951#0" expanded="true" /> </folding> </state> </provider> @@ -131,8 +131,8 @@ <file leaf-file-name="SwingRfbConnectionWorker.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="1245" max-vertical-offset="4820"> - <caret line="126" column="31" selection-start-line="126" selection-start-column="31" selection-end-line="126" selection-end-column="31" /> + <state vertical-scroll-proportion="0.0" vertical-offset="515" max-vertical-offset="4820"> + <caret line="93" column="51" selection-start-line="93" selection-start-column="51" selection-end-line="93" selection-end-column="51" /> <folding /> </state> </provider> @@ -152,14 +152,14 @@ </split-first> <split-second> <leaf> - <file leaf-file-name="CuiViewer.java" pinned="false" current-in-tab="false"> + <file leaf-file-name="CuiViewer.java" pinned="false" current-in-tab="true"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="570" max-vertical-offset="4065"> - <caret line="152" column="39" selection-start-line="152" selection-start-column="39" selection-end-line="152" selection-end-column="39" /> + <state vertical-scroll-proportion="1.0226679" vertical-offset="4784" max-vertical-offset="6279"> + <caret line="292" column="52" selection-start-line="292" selection-start-column="52" selection-end-line="292" selection-end-column="52" /> <folding> - <element signature="e#5279#5280#0" expanded="true" /> - <element signature="e#5321#5322#0" expanded="true" /> + <element signature="e#5138#5139#0" expanded="true" /> + <element signature="e#5180#5181#0" expanded="true" /> </folding> </state> </provider> @@ -185,11 +185,11 @@ </provider> </entry> </file> - <file leaf-file-name="ConnectionPresenter.java" pinned="false" current-in-tab="true"> + <file leaf-file-name="ConnectionPresenter.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.27884614" vertical-offset="957" max-vertical-offset="9686"> - <caret line="85" column="19" selection-start-line="85" selection-start-column="19" selection-end-line="85" selection-end-column="19" /> + <state vertical-scroll-proportion="-35.35" vertical-offset="7837" max-vertical-offset="9773"> + <caret line="376" column="0" selection-start-line="376" selection-start-column="0" selection-end-line="376" selection-end-column="0" /> <folding> <element signature="e#3216#3217#0" expanded="true" /> <element signature="e#3253#3254#0" expanded="true" /> @@ -199,16 +199,28 @@ <element signature="e#3456#3457#0" expanded="true" /> <element signature="e#3530#3531#0" expanded="true" /> <element signature="e#3586#3587#0" expanded="true" /> + <element signature="e#13163#13164#0" expanded="true" /> + <element signature="e#13217#13218#0" expanded="true" /> </folding> </state> </provider> </entry> </file> + <file leaf-file-name="SwingNetworkConnectionWorker.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingNetworkConnectionWorker.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0" vertical-offset="1508" max-vertical-offset="3912"> + <caret line="118" column="22" selection-start-line="118" selection-start-column="22" selection-end-line="118" selection-end-column="22" /> + <folding /> + </state> + </provider> + </entry> + </file> <file leaf-file-name="ViewerInterface.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="870"> - <caret line="57" column="1" selection-start-line="57" selection-start-column="1" selection-end-line="57" selection-end-column="1" /> + <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="840"> + <caret line="54" column="78" selection-start-line="54" selection-start-column="78" selection-end-line="54" selection-end-column="78" /> <folding /> </state> </provider> @@ -489,21 +501,21 @@ <option value="$PROJECT_DIR$/src/main/java/com/glavsoft/rfb/encoding/EncodingType.java" /> <option value="$PROJECT_DIR$/src/main/java/com/glavsoft/rfb/protocol/state/InitState.java" /> <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/ConnectionParams.java" /> + <option value="$PROJECT_DIR$/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java" /> <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java" /> + <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java" /> <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java" /> + <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java" /> <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java" /> - <option value="$PROJECT_DIR$/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java" /> - <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java" /> <option value="$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java" /> - <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java" /> </list> </option> </component> <component name="ProjectFrameBounds"> <option name="x" value="4" /> - <option name="y" value="23" /> + <option name="y" value="186" /> <option name="width" value="3836" /> - <option name="height" value="2137" /> + <option name="height" value="1974" /> </component> <component name="ProjectLevelVcsManager" settingsEditedManually="true"> <OptionsSetting value="true" id="Add" /> @@ -825,7 +837,7 @@ </extension> <option name="MAIN_CLASS_NAME" value="com.glavsoft.viewer.TreeViewer" /> <option name="VM_PARAMETERS" value="" /> - <option name="PROGRAM_PARAMETERS" value="-d" /> + <option name="PROGRAM_PARAMETERS" value="-p" /> <option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" /> <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> <option name="ALTERNATIVE_JRE_PATH" value="" /> @@ -1039,8 +1051,8 @@ <servers /> </component> <component name="ToolWindowManager"> - <frame x="4" y="23" width="3836" height="2137" extended-state="6" /> - <editor active="true" /> + <frame x="4" y="186" width="3836" height="1974" extended-state="6" /> + <editor active="false" /> <layout> <window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> @@ -1049,9 +1061,11 @@ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32988676" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> + <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.19645494" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> + <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32988676" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" /> <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> <window_info id="Gradle" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> @@ -1059,13 +1073,11 @@ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.10870699" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> + <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.35653105" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.13034411" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> - <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32809612" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32988676" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> - <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.19685768" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> - <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32988676" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" /> <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> </layout> <layout-to-restore> @@ -1132,16 +1144,34 @@ <option name="timeStamp" value="13" /> </line-breakpoint> <line-breakpoint enabled="true" type="java-line"> + <url>file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java</url> + <line>109</line> + <properties /> + <option name="timeStamp" value="20" /> + </line-breakpoint> + <line-breakpoint enabled="true" type="java-line"> + <url>file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java</url> + <line>190</line> + <properties /> + <option name="timeStamp" value="22" /> + </line-breakpoint> + <line-breakpoint type="java-method"> <url>file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java</url> - <line>218</line> - <properties /> - <option name="timeStamp" value="16" /> + <line>315</line> + <properties class="com.glavsoft.viewer.Viewer" method="inhelitClients" /> + <option name="timeStamp" value="18" /> + </line-breakpoint> + <line-breakpoint enabled="true" type="java-method"> + <url>file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java</url> + <line>353</line> + <properties class="com.glavsoft.viewer.ConnectionPresenter" method="startVNCConnection" /> + <option name="timeStamp" value="23" /> </line-breakpoint> </breakpoints> <breakpoints-dialog> <breakpoints-dialog /> </breakpoints-dialog> - <option name="time" value="18" /> + <option name="time" value="24" /> </breakpoint-manager> <watches-manager /> </component> @@ -1150,17 +1180,6 @@ <option name="FILTER_TARGETS" value="false" /> </component> <component name="editorHistoryManager"> - <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0"> - <caret line="244" column="62" selection-start-line="244" selection-start-column="62" selection-end-line="244" selection-end-column="62" /> - <folding> - <element signature="e#5279#5280#0" expanded="true" /> - <element signature="e#5321#5322#0" expanded="true" /> - </folding> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingConnectionWorkerFactory.java"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0"> @@ -1182,6 +1201,8 @@ <element signature="e#3456#3457#0" expanded="true" /> <element signature="e#3530#3531#0" expanded="true" /> <element signature="e#3586#3587#0" expanded="true" /> + <element signature="e#13163#13164#0" expanded="true" /> + <element signature="e#13217#13218#0" expanded="true" /> </folding> </state> </provider> @@ -1199,6 +1220,8 @@ <element signature="e#3456#3457#0" expanded="true" /> <element signature="e#3530#3531#0" expanded="true" /> <element signature="e#3586#3587#0" expanded="true" /> + <element signature="e#13163#13164#0" expanded="true" /> + <element signature="e#13217#13218#0" expanded="true" /> </folding> </state> </provider> @@ -1219,9 +1242,11 @@ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0"> <caret line="461" column="26" selection-start-line="461" selection-start-column="26" selection-end-line="461" selection-end-column="26" /> <folding> - <element signature="e#0#15369#0" expanded="true" /> + <element signature="e#0#15487#0" expanded="true" /> <element signature="imports" expanded="true" /> - <element signature="e#14822#14833#0" expanded="true" /> + <element signature="e#10921#11074#0" expanded="true" /> + <element signature="e#11073#11074#0" expanded="true" /> + <element signature="e#14940#14951#0" expanded="true" /> </folding> </state> </provider> @@ -1448,14 +1473,6 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/ConnectionParams.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="711" max-vertical-offset="2700"> - <caret line="177" column="52" selection-start-line="177" selection-start-column="52" selection-end-line="177" selection-end-column="52" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingConnectionWorkerFactory.java"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="675"> @@ -1472,14 +1489,6 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="870"> - <caret line="57" column="1" selection-start-line="57" selection-start-column="1" selection-end-line="57" selection-end-column="1" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0"> @@ -1488,25 +1497,6 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="570" max-vertical-offset="4065"> - <caret line="152" column="39" selection-start-line="152" selection-start-column="39" selection-end-line="152" selection-end-column="39" /> - <folding> - <element signature="e#5279#5280#0" expanded="true" /> - <element signature="e#5321#5322#0" expanded="true" /> - </folding> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="1245" max-vertical-offset="4820"> - <caret line="126" column="31" selection-start-line="126" selection-start-column="31" selection-end-line="126" selection-end-column="31" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/main/java/com/glavsoft/rfb/protocol/Protocol.java"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0" vertical-offset="1593" max-vertical-offset="7056"> @@ -1515,14 +1505,6 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-42.525" vertical-offset="15173" max-vertical-offset="18062"> - <caret line="862" column="4" selection-start-line="862" selection-start-column="4" selection-end-line="862" selection-end-column="4" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/VncProxyService.java"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0"> @@ -1553,22 +1535,42 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java"> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingNetworkConnectionWorker.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0" vertical-offset="1508" max-vertical-offset="3912"> + <caret line="118" column="22" selection-start-line="118" selection-start-column="22" selection-end-line="118" selection-end-column="22" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/ConnectionParams.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.2540486" vertical-offset="6142" max-vertical-offset="9812"> - <caret line="320" column="67" selection-start-line="320" selection-start-column="67" selection-end-line="320" selection-end-column="67" /> - <folding> - <element signature="e#0#15369#0" expanded="true" /> - <element signature="imports" expanded="true" /> - <element signature="e#14822#14833#0" expanded="true" /> - </folding> + <state vertical-scroll-proportion="0.0" vertical-offset="711" max-vertical-offset="2700"> + <caret line="177" column="52" selection-start-line="177" selection-start-column="52" selection-end-line="177" selection-end-column="52" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0" vertical-offset="515" max-vertical-offset="4820"> + <caret line="93" column="51" selection-start-line="93" selection-start-column="51" selection-end-line="93" selection-end-column="51" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="840"> + <caret line="54" column="78" selection-start-line="54" selection-start-column="78" selection-end-line="54" selection-end-column="78" /> + <folding /> </state> </provider> </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.27884614" vertical-offset="957" max-vertical-offset="9686"> - <caret line="85" column="19" selection-start-line="85" selection-start-column="19" selection-end-line="85" selection-end-column="19" /> + <state vertical-scroll-proportion="-35.35" vertical-offset="7837" max-vertical-offset="9773"> + <caret line="376" column="0" selection-start-line="376" selection-start-column="0" selection-end-line="376" selection-end-column="0" /> <folding> <element signature="e#3216#3217#0" expanded="true" /> <element signature="e#3253#3254#0" expanded="true" /> @@ -1578,6 +1580,41 @@ <element signature="e#3456#3457#0" expanded="true" /> <element signature="e#3530#3531#0" expanded="true" /> <element signature="e#3586#3587#0" expanded="true" /> + <element signature="e#13163#13164#0" expanded="true" /> + <element signature="e#13217#13218#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="-0.0" vertical-offset="9394" max-vertical-offset="18106"> + <caret line="498" column="27" selection-start-line="498" selection-start-column="27" selection-end-line="498" selection-end-column="27" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="1.0226679" vertical-offset="4784" max-vertical-offset="6279"> + <caret line="292" column="52" selection-start-line="292" selection-start-column="52" selection-end-line="292" selection-end-column="52" /> + <folding> + <element signature="e#5138#5139#0" expanded="true" /> + <element signature="e#5180#5181#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.76983434" vertical-offset="8819" max-vertical-offset="9966"> + <caret line="465" column="24" selection-start-line="465" selection-start-column="24" selection-end-line="465" selection-end-column="24" /> + <folding> + <element signature="e#0#15487#0" expanded="true" /> + <element signature="imports" expanded="true" /> + <element signature="e#10921#11074#0" expanded="true" /> + <element signature="e#11073#11074#0" expanded="true" /> + <element signature="e#14940#14951#0" expanded="true" /> </folding> </state> </provider>
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Sat Aug 15 17:28:19 2015 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Sat Aug 15 18:09:55 2015 +0900 @@ -492,10 +492,12 @@ if (ni!=null) { vncInterface = ni.getName(); System.out.print("VNCNetworkInterface :" + vncInterface); - Enumeration<InetAddress> addresses = ni.getInetAddresses(); - while(addresses.hasMoreElements()) { - InetAddress adr = addresses.nextElement(); - System.out.print(" "+adr); + if(false) { + Enumeration<InetAddress> addresses = ni.getInetAddresses(); + while (addresses.hasMoreElements()) { + InetAddress adr = addresses.nextElement(); + System.out.print(" " + adr); + } } System.out.println(); }
--- a/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java Sat Aug 15 17:28:19 2015 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java Sat Aug 15 18:09:55 2015 +0900 @@ -379,6 +379,7 @@ public void newVNCConnection() { TreeRFBProto rfb = viewer.getRfb(); rfb.stopReceiverTask(); + viewer.setConnectionPresenter(this); viewer.getConnectionPresenter().addModel("ConnectionParamsModel", connectionParams); rfb.enableChildrenTransmission(); rfb.printNetworkInterface();
--- a/src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java Sat Aug 15 17:28:19 2015 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java Sat Aug 15 18:09:55 2015 +0900 @@ -145,13 +145,13 @@ } @Override - public synchronized void newVNCConnection(ConnectionPresenter presenter) { - connectionPresenter = presenter; + public ConnectionPresenter getConnectionPresenter() { + return connectionPresenter; } @Override - public ConnectionPresenter getConnectionPresenter() { - return connectionPresenter; + public void setConnectionPresenter(ConnectionPresenter connectionPresenter) { + this.connectionPresenter = connectionPresenter; } @Override
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Sat Aug 15 17:28:19 2015 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Sat Aug 15 18:09:55 2015 +0900 @@ -225,13 +225,13 @@ } @Override - public synchronized void newVNCConnection(ConnectionPresenter presenter) { - connectionPresenter = presenter; + public ConnectionPresenter getConnectionPresenter() { + return connectionPresenter; } @Override - public ConnectionPresenter getConnectionPresenter() { - return connectionPresenter; + public void setConnectionPresenter(ConnectionPresenter connectionPresenter) { + this.connectionPresenter = connectionPresenter; } @Override @@ -323,6 +323,8 @@ connectionPresenter.addModel("ConnectionParamsModel", connectionParams); connectionPresenter.setConnectionParams(connectionParams); connectionPresenter.setReconnectingId(newVNCServerId); + connectionPresenter.setIsTreeVNC(true); + connectionPresenter.setNoConnection(false); isApplet = true; this.setNoConnection(false); final Viewer v = this;
--- a/src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java Sat Aug 15 17:28:19 2015 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java Sat Aug 15 18:09:55 2015 +0900 @@ -20,8 +20,6 @@ public void run(); - public void setOpenPort(int parseInt); - public void setTerminationType(boolean b); public void setCuiVersion(boolean flag); @@ -52,7 +50,7 @@ public ArrayList<Rectangle> getScreenRectangles(); - void newVNCConnection(ConnectionPresenter presenter); + public ConnectionPresenter getConnectionPresenter(); - ConnectionPresenter getConnectionPresenter(); + public void setConnectionPresenter(ConnectionPresenter connectionPresenter); }
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java Sat Aug 15 17:28:19 2015 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java Sat Aug 15 18:09:55 2015 +0900 @@ -123,7 +123,7 @@ presenter.showMessage("Started"); // hide VNC server's view to prevent video feed back. - if (myRfb.hasViewer() && myRfb.getReconnectingId() != 0) + if (myRfb.hasViewer()) viewerWindow.setVisible(true); if(!myRfb.getCuiVersion()) presenter.successfulRfbConnection();