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
18eb5a17
Commit
18eb5a17
authored
Jan 13, 2016
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jpwr_opwind.sh started with OpPlaceWeb as argument
parent
c62e0bdf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
9 deletions
+62
-9
java/jpwr/jop/src/JopOp.java
java/jpwr/jop/src/JopOp.java
+10
-5
java/jpwr/jop/src/JopOpWindowFrame.java
java/jpwr/jop/src/JopOpWindowFrame.java
+2
-2
src/exp/com/src/os_linux/jpwr_opwind.sh
src/exp/com/src/os_linux/jpwr_opwind.sh
+50
-2
No files found.
java/jpwr/jop/src/JopOp.java
View file @
18eb5a17
...
...
@@ -14,9 +14,9 @@ public class JopOp {
boolean
packFrame
=
false
;
//Construct the application
public
JopOp
()
{
public
JopOp
(
String
pwrPlace
)
{
JopOpWindowFrame
frame
=
new
JopOpWindowFrame
();
JopOpWindowFrame
frame
=
new
JopOpWindowFrame
(
pwrPlace
);
//Validate frames that have preset sizes
//Pack frames that have useful preferred size info, e.g. from their layout
if
(
packFrame
)
{
...
...
@@ -73,7 +73,12 @@ public class JopOp {
//Main method
public
static
void
main
(
String
[]
args
)
{
if
(
args
.
length
>
0
)
String
pwrPlace
=
null
;
if
(
args
.
length
<
1
)
{
System
.
out
.
println
(
"OpPlaceWeb object is missing"
);
System
.
exit
(
0
);
}
pwrPlace
=
args
[
0
];
System
.
out
.
println
(
"Arg: "
+
args
[
0
]);
try
{
UIManager
.
setLookAndFeel
(
"javax.swing.plaf.metal.MetalLookAndFeel"
);
...
...
@@ -83,7 +88,7 @@ public class JopOp {
System
.
out
.
println
(
"setLookAndFeel exception"
);
// e.printStackTrace();
}
new
JopOp
();
new
JopOp
(
pwrPlace
);
byte
[]
buff
=
new
byte
[
100
];
try
{
System
.
in
.
read
(
buff
);
...
...
java/jpwr/jop/src/JopOpWindowFrame.java
View file @
18eb5a17
...
...
@@ -62,11 +62,11 @@ public class JopOpWindowFrame extends JFrame implements GdhApplIfc {
Object
root
;
PwrtObjid
utilityObjid
;
public
JopOpWindowFrame
()
{
public
JopOpWindowFrame
(
String
pwrPlace
)
{
engine
=
new
JopEngine
(
1000
,
this
);
session
=
new
JopSession
(
engine
,
(
Object
)
this
);
root
=
(
Object
)
this
;
localPanel
=
new
JopOpWindow
(
session
,
(
Object
)
this
);
localPanel
=
new
JopOpWindow
(
session
,
(
Object
)
this
,
pwrPlace
);
init
();
pack
();
}
...
...
src/exp/com/src/os_linux/jpwr_opwind.sh
View file @
18eb5a17
#!/bin/bash
#
# Proview Open Source Process Control.
# Copyright (C) 2005-2016 SSAB EMEA AB.
#
# This file is part of Proview.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Proview. If not, see <http://www.gnu.org/licenses/>
#
# Linking Proview statically or dynamically with other modules is
# making a combined work based on Proview. Thus, the terms and
# conditions of the GNU General Public License cover the whole
# combination.
#
# In addition, as a special exception, the copyright holders of
# Proview give you permission to, from the build function in the
# Proview Configurator, combine Proview with modules generated by the
# Proview PLC Editor to a PLC program, regardless of the license
# terms of these modules. You may copy and distribute the resulting
# combined work under the terms of your choice, provided that every
# copy of the combined work is accompanied by a complete copy of
# the source code of Proview (the version used to produce the
# combined work), being distributed under the terms of the GNU
# General Public License plus this exception.
#
if
[
-z
$1
]
;
then
echo
""
echo
" jpwr_opwind.sh Start java operator environment."
echo
""
echo
" Arguments: Name of OpPlaceWeb object"
echo
""
echo
" Example"
echo
""
echo
" > jpwr_opwind.sh Nodes-DemoNode-OpPlaces-Web"
echo
""
exit
;
fi
# Get systemname from bootfile
zero
=
"0000"
...
...
@@ -9,7 +57,7 @@ bootfile=$pwrp_load/ld_boot_${nname}_${zero:0:4-${#PWR_BUS_ID}}${PWR_BUS_ID}.dat
if
[
!
-e
"
$bootfile
"
]
;
then
echo
"Unable to find bootfile:
$bootfile
"
return
;
exit
;
fi
let
i
=
0
...
...
@@ -25,4 +73,4 @@ echo $systemname
export
CLASSPATH
=
$pwr_lib
/pwr_rt.jar:
$pwr_lib
/pwr_jop.jar:
$pwr_lib
/pwr_jopg.jar:
$pwr_lib
/pwr_jopc.jar:
$pwr_lib
/pwr_bcomp.jar:
$pwr_lib
/pwr_bcompfc.jar:
$pwr_lib
/pwr_abb.jar:
$pwrp_lib
/pwrp_
$systemname
.jar
export
LD_LIBRARY_PATH
=
$pwr_exe
$jdk
/bin/java jpwr.jop.JopOp
$jdk
/bin/java jpwr.jop.JopOp
$1
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