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
51748cef
Commit
51748cef
authored
Feb 11, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WebGraph object searched for also in one herarchiy level below WebHandler
parent
e24aa4a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
13 deletions
+28
-13
java/jpwr/jop/src/JopOpWindow.java
java/jpwr/jop/src/JopOpWindow.java
+28
-13
No files found.
java/jpwr/jop/src/JopOpWindow.java
View file @
51748cef
...
@@ -196,20 +196,19 @@ public class JopOpWindow extends JPanel {
...
@@ -196,20 +196,19 @@ public class JopOpWindow extends JPanel {
switch
(
retCid
.
classId
)
{
switch
(
retCid
.
classId
)
{
case
Pwrb
.
cClass_WebGraph
:
case
Pwrb
.
cClass_WebGraph
:
sret
=
en
.
gdh
.
objidToName
(
oret
.
objid
,
Cdh
.
mName_volumeStrict
);
addWebGraphButton
(
oret
.
objid
);
if
(
sret
.
evenSts
())
return
;
break
;
case
Pwrs
.
cClass_PlantHier
:
s
=
sret
.
str
+
".Name"
;
case
Pwrs
.
cClass_NodeHier
:
sretName
=
en
.
gdh
.
getObjectInfoString
(
s
);
for
(
CdhrObjid
oret2
=
en
.
gdh
.
getChild
(
oret
.
objid
);
oret2
.
oddSts
();
s
=
sret
.
str
+
".Text"
;
oret2
=
en
.
gdh
.
getNextSibling
(
oret2
.
objid
))
{
sretText
=
en
.
gdh
.
getObjectInfoString
(
s
);
CdhrClassId
cret2
=
en
.
gdh
.
getObjectClass
(
oret2
.
objid
);
if
(
cret2
.
oddSts
()
&&
cret2
.
getClassId
()
==
Pwrb
.
cClass_WebGraph
)
addWebGraphButton
(
oret2
.
objid
);
button
=
new
OpWindButton
(
session
,
sretName
.
str
,
sretText
.
str
,
}
OpWindButton
.
WEBGRAPH
);
this
.
add
(
button
);
break
;
break
;
default
:
;
}
}
oret
=
en
.
gdh
.
getNextSibling
(
oret
.
objid
);
oret
=
en
.
gdh
.
getNextSibling
(
oret
.
objid
);
}
}
...
@@ -250,6 +249,22 @@ public class JopOpWindow extends JPanel {
...
@@ -250,6 +249,22 @@ public class JopOpWindow extends JPanel {
}
}
}
}
void
addWebGraphButton
(
PwrtObjid
oid
)
{
CdhrString
sret
=
en
.
gdh
.
objidToName
(
oid
,
Cdh
.
mName_volumeStrict
);
if
(
sret
.
evenSts
())
return
;
String
s
=
sret
.
str
+
".Name"
;
CdhrString
sretName
=
en
.
gdh
.
getObjectInfoString
(
s
);
s
=
sret
.
str
+
".Text"
;
CdhrString
sretText
=
en
.
gdh
.
getObjectInfoString
(
s
);
OpWindButton
button
=
new
OpWindButton
(
session
,
sretName
.
str
,
sretText
.
str
,
OpWindButton
.
WEBGRAPH
);
this
.
add
(
button
);
}
class
OpWindButton
extends
JButton
{
class
OpWindButton
extends
JButton
{
public
static
final
int
WEBGRAPH
=
1
;
public
static
final
int
WEBGRAPH
=
1
;
public
static
final
int
WEBLINK
=
2
;
public
static
final
int
WEBLINK
=
2
;
...
...
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