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
be710ebb
Commit
be710ebb
authored
Mar 04, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Java trends adapted for internal trend attribute objects
parent
d2ba0c49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
java/jpwr/jop/src/JopXttTrend.java
java/jpwr/jop/src/JopXttTrend.java
+9
-9
java/jpwr/jop/src/XttTree.java
java/jpwr/jop/src/XttTree.java
+4
-4
No files found.
java/jpwr/jop/src/JopXttTrend.java
View file @
be710ebb
...
...
@@ -139,17 +139,17 @@ public class JopXttTrend implements ActionListener, JopCurveIfc, GdhApplIfc {
return
;
}
Cdhr
Objid
oret
=
engine
.
gdh
.
nameToObjid
(
trendList
[
0
]);
if
(
o
ret
.
evenSts
())
{
Cdhr
AttrRef
aret
=
engine
.
gdh
.
nameToAttrRef
(
trendList
[
0
]);
if
(
a
ret
.
evenSts
())
{
System
.
out
.
println
(
"Error in trend configuration"
);
return
;
}
Cdhr
ClassId
cret
=
engine
.
gdh
.
getObjectClass
(
oret
.
objid
);
Cdhr
TypeId
cret
=
engine
.
gdh
.
getAttrRefTid
(
aret
.
aref
);
if
(
cret
.
evenSts
())
{
System
.
out
.
println
(
"Error in trend configuration"
);
return
;
}
trend_tid
=
cret
.
class
Id
;
trend_tid
=
cret
.
type
Id
;
if
(
trend_tid
==
Pwrb
.
cClass_PlotGroup
)
{
// Plotgroup as input
...
...
@@ -163,17 +163,17 @@ public class JopXttTrend implements ActionListener, JopCurveIfc, GdhApplIfc {
}
oret
=
engine
.
gdh
.
nameToObjid
(
trend_name
[
0
]);
if
(
o
ret
.
evenSts
())
{
aret
=
engine
.
gdh
.
nameToAttrRef
(
trend_name
[
0
]);
if
(
a
ret
.
evenSts
())
{
System
.
out
.
println
(
"Error in trend configuration"
);
return
;
}
cret
=
engine
.
gdh
.
get
ObjectClass
(
oret
.
objid
);
cret
=
engine
.
gdh
.
get
AttrRefTid
(
aret
.
aref
);
if
(
cret
.
evenSts
())
{
System
.
out
.
println
(
"Error in trend configuration"
);
return
;
}
trend_tid
=
cret
.
class
Id
;
trend_tid
=
cret
.
type
Id
;
}
else
{
// DsTrend or DsTrendCurve as input
...
...
@@ -428,7 +428,7 @@ public class JopXttTrend implements ActionListener, JopCurveIfc, GdhApplIfc {
continue
;
tcp
[
tcp_i
].
Buffer
=
sret
.
str
;
CdhrAttrRef
aret
=
engine
.
gdh
.
nameToAttrRef
(
tcp
[
tcp_i
].
Buffer
);
aret
=
engine
.
gdh
.
nameToAttrRef
(
tcp
[
tcp_i
].
Buffer
);
if
(
aret
.
evenSts
())
continue
;
tcp
[
tcp_i
].
AttrRef
=
aret
.
aref
;
...
...
java/jpwr/jop/src/XttTree.java
View file @
be710ebb
...
...
@@ -1306,11 +1306,11 @@ public class XttTree extends JPanel
}
int
cid
=
0
;
Cdhr
Objid
oret
=
gdh
.
nameToObjid
(
name
);
if
(
o
ret
.
oddSts
())
{
Cdhr
ClassId
cret
=
gdh
.
getObjectClass
(
oret
.
objid
);
Cdhr
AttrRef
aret
=
gdh
.
nameToAttrRef
(
name
);
if
(
a
ret
.
oddSts
())
{
Cdhr
TypeId
cret
=
gdh
.
getAttrRefTid
(
aret
.
aref
);
if
(
cret
.
oddSts
())
cid
=
cret
.
get
Class
Id
();
cid
=
cret
.
get
Type
Id
();
}
String
cmd
;
switch
(
cid
)
{
...
...
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