Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
0a9ee57b
Commit
0a9ee57b
authored
Jun 18, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in languageselection
parent
4571e455
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
18 deletions
+58
-18
java/jpwr/jop/src/XttTree.java
java/jpwr/jop/src/XttTree.java
+29
-9
src/jpwr/jop/src/XttTree.java
src/jpwr/jop/src/XttTree.java
+29
-9
No files found.
java/jpwr/jop/src/XttTree.java
View file @
0a9ee57b
...
...
@@ -137,7 +137,7 @@ public class XttTree extends JPanel
public
XttTree
(
JopSession
session
,
URL
url
,
Object
root
)
{
Logg
.
text_lbl
=
this
.
labelMessage
;
Logg
.
logg
(
"ver 1.9.
5
"
,
0
);
Logg
.
logg
(
"ver 1.9.
6
"
,
0
);
this
.
session
=
session
;
this
.
root
=
root
;
...
...
@@ -261,7 +261,10 @@ public class XttTree extends JPanel
tNodeRoot
=
new
DefaultMutableTreeNode
(
xttObj
);
xttObj
.
treeNode
=
tNodeRoot
;
xttObj
.
init
(
false
);
xttObj
.
refObj
.
objAttr
.
treeModel
=
this
.
treeModel
;
if
(
xttObj
.
refObj
!=
null
)
{
xttObj
.
refObj
.
objAttr
.
treeModel
=
this
.
treeModel
;
}
rootNode
.
add
(
tNodeRoot
);
if
(
gdhr
.
hasChildren
)
{
...
...
@@ -1020,9 +1023,9 @@ public class XttTree extends JPanel
this
.
newMethod
(
openObject
,
ADDOBJECTINFO
,
"ADDOBJECTINFO"
,
true
,
0
,
"ctrl A"
);
this
.
newMethod
(
openObject
,
ADDOBJECTINFO
,
"ADDOBJECTINFO"
,
false
,
-
1
,
"shift RIGHT"
);
this
.
newMethod
(
"COLLAPSENODE"
,
COLLAPSENODE
,
"COLLAPSENODE"
,
false
,
-
1
,
"LEFT"
);
this
.
newMethod
(
changeValue
,
CHANGEVALUE
,
"CHANGEVALUE"
,
true
,
0
,
"ctrl Q"
);
this
.
newMethod
(
openPlc
,
OPENPLC
,
"OPENPLC"
,
true
,
0
,
"ctrl L"
);
this
.
newMethod
(
showCross
,
SHOWCROSS
,
"SHOWCROSS"
,
true
,
0
,
"ctrl R"
);
this
.
newMethod
(
changeValue
,
CHANGEVALUE
,
"CHANGEVALUE"
,
true
,
0
,
"ctrl Q"
);
this
.
newMethod
(
debug
,
DEBUG
,
"DEBUG"
,
true
,
0
,
"ctrl RIGHT"
);
this
.
newMethod
(
find
,
FIND
,
"FIND"
,
false
,
0
,
"ctrl F"
);
this
.
newMethod
(
swedish
,
LAN_SW
,
"LAN_SW"
,
false
,
1
,
null
);
...
...
@@ -1277,9 +1280,9 @@ public class XttTree extends JPanel
JMenu
menuFunctions
=
menuBar
.
getMenu
(
0
);
JMenu
menuLan
=
menuBar
.
getMenu
(
1
);
menuFunctions
.
setText
(
functions
);
menuFunctions
.
getItem
(
0
).
setText
(
open
Plc
);
menuFunctions
.
getItem
(
1
).
setText
(
showCross
);
menuFunctions
.
getItem
(
2
).
setText
(
openObject
);
menuFunctions
.
getItem
(
0
).
setText
(
open
Object
);
menuFunctions
.
getItem
(
1
).
setText
(
openPlc
);
menuFunctions
.
getItem
(
2
).
setText
(
showCross
);
menuFunctions
.
getItem
(
3
).
setText
(
changeValue
);
menuFunctions
.
getItem
(
4
).
setText
(
debug
);
menuFunctions
.
getItem
(
5
).
setText
(
find
);
...
...
@@ -1288,9 +1291,9 @@ public class XttTree extends JPanel
menuLan
.
getItem
(
1
).
setText
(
english
);
MenuElement
[]
menuElements
=
popup
.
getSubElements
();
((
JMenuItem
)(
menuElements
[
0
])).
setText
(
open
Plc
);
((
JMenuItem
)(
menuElements
[
1
])).
setText
(
showCross
);
((
JMenuItem
)(
menuElements
[
2
])).
setText
(
openObject
);
((
JMenuItem
)(
menuElements
[
0
])).
setText
(
open
Object
);
((
JMenuItem
)(
menuElements
[
1
])).
setText
(
openPlc
);
((
JMenuItem
)(
menuElements
[
2
])).
setText
(
showCross
);
((
JMenuItem
)(
menuElements
[
3
])).
setText
(
changeValue
);
((
JMenuItem
)(
menuElements
[
4
])).
setText
(
debug
);
}
...
...
@@ -1658,3 +1661,20 @@ public class XttTree extends JPanel
}
}
src/jpwr/jop/src/XttTree.java
View file @
0a9ee57b
...
...
@@ -137,7 +137,7 @@ public class XttTree extends JPanel
public
XttTree
(
JopSession
session
,
URL
url
,
Object
root
)
{
Logg
.
text_lbl
=
this
.
labelMessage
;
Logg
.
logg
(
"ver 1.9.
5
"
,
0
);
Logg
.
logg
(
"ver 1.9.
6
"
,
0
);
this
.
session
=
session
;
this
.
root
=
root
;
...
...
@@ -261,7 +261,10 @@ public class XttTree extends JPanel
tNodeRoot
=
new
DefaultMutableTreeNode
(
xttObj
);
xttObj
.
treeNode
=
tNodeRoot
;
xttObj
.
init
(
false
);
xttObj
.
refObj
.
objAttr
.
treeModel
=
this
.
treeModel
;
if
(
xttObj
.
refObj
!=
null
)
{
xttObj
.
refObj
.
objAttr
.
treeModel
=
this
.
treeModel
;
}
rootNode
.
add
(
tNodeRoot
);
if
(
gdhr
.
hasChildren
)
{
...
...
@@ -1020,9 +1023,9 @@ public class XttTree extends JPanel
this
.
newMethod
(
openObject
,
ADDOBJECTINFO
,
"ADDOBJECTINFO"
,
true
,
0
,
"ctrl A"
);
this
.
newMethod
(
openObject
,
ADDOBJECTINFO
,
"ADDOBJECTINFO"
,
false
,
-
1
,
"shift RIGHT"
);
this
.
newMethod
(
"COLLAPSENODE"
,
COLLAPSENODE
,
"COLLAPSENODE"
,
false
,
-
1
,
"LEFT"
);
this
.
newMethod
(
changeValue
,
CHANGEVALUE
,
"CHANGEVALUE"
,
true
,
0
,
"ctrl Q"
);
this
.
newMethod
(
openPlc
,
OPENPLC
,
"OPENPLC"
,
true
,
0
,
"ctrl L"
);
this
.
newMethod
(
showCross
,
SHOWCROSS
,
"SHOWCROSS"
,
true
,
0
,
"ctrl R"
);
this
.
newMethod
(
changeValue
,
CHANGEVALUE
,
"CHANGEVALUE"
,
true
,
0
,
"ctrl Q"
);
this
.
newMethod
(
debug
,
DEBUG
,
"DEBUG"
,
true
,
0
,
"ctrl RIGHT"
);
this
.
newMethod
(
find
,
FIND
,
"FIND"
,
false
,
0
,
"ctrl F"
);
this
.
newMethod
(
swedish
,
LAN_SW
,
"LAN_SW"
,
false
,
1
,
null
);
...
...
@@ -1277,9 +1280,9 @@ public class XttTree extends JPanel
JMenu
menuFunctions
=
menuBar
.
getMenu
(
0
);
JMenu
menuLan
=
menuBar
.
getMenu
(
1
);
menuFunctions
.
setText
(
functions
);
menuFunctions
.
getItem
(
0
).
setText
(
open
Plc
);
menuFunctions
.
getItem
(
1
).
setText
(
showCross
);
menuFunctions
.
getItem
(
2
).
setText
(
openObject
);
menuFunctions
.
getItem
(
0
).
setText
(
open
Object
);
menuFunctions
.
getItem
(
1
).
setText
(
openPlc
);
menuFunctions
.
getItem
(
2
).
setText
(
showCross
);
menuFunctions
.
getItem
(
3
).
setText
(
changeValue
);
menuFunctions
.
getItem
(
4
).
setText
(
debug
);
menuFunctions
.
getItem
(
5
).
setText
(
find
);
...
...
@@ -1288,9 +1291,9 @@ public class XttTree extends JPanel
menuLan
.
getItem
(
1
).
setText
(
english
);
MenuElement
[]
menuElements
=
popup
.
getSubElements
();
((
JMenuItem
)(
menuElements
[
0
])).
setText
(
open
Plc
);
((
JMenuItem
)(
menuElements
[
1
])).
setText
(
showCross
);
((
JMenuItem
)(
menuElements
[
2
])).
setText
(
openObject
);
((
JMenuItem
)(
menuElements
[
0
])).
setText
(
open
Object
);
((
JMenuItem
)(
menuElements
[
1
])).
setText
(
openPlc
);
((
JMenuItem
)(
menuElements
[
2
])).
setText
(
showCross
);
((
JMenuItem
)(
menuElements
[
3
])).
setText
(
changeValue
);
((
JMenuItem
)(
menuElements
[
4
])).
setText
(
debug
);
}
...
...
@@ -1658,3 +1661,20 @@ public class XttTree extends JPanel
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment