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
936b2767
Commit
936b2767
authored
Apr 03, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Andorid add, command 'open graph/object' added
parent
6cf7278a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
1 deletion
+44
-1
java/aapp/pwrxtt/src/MainActivity.java
java/aapp/pwrxtt/src/MainActivity.java
+44
-1
No files found.
java/aapp/pwrxtt/src/MainActivity.java
View file @
936b2767
...
...
@@ -893,6 +893,7 @@ public class MainActivity extends Activity implements PlowAppl, GraphApplIfc, Gd
public
static
final
int
LOGIN
=
22
;
public
static
final
int
CLASS_HELP
=
23
;
public
static
final
int
FLOW_CLASSHELP
=
24
;
public
static
final
int
OPEN_GRAPH_OBJECT
=
25
;
@Override
protected
Void
doInBackground
(
GdhTaskArg
...
arg
)
{
...
...
@@ -1253,6 +1254,42 @@ public class MainActivity extends Activity implements PlowAppl, GraphApplIfc, Gd
new
ReaderTask
().
execute
(
new
ReaderTaskArg
(
ReaderTask
.
GROW_READ
,
fname
,
rName
.
str
));
break
;
}
case
OPEN_GRAPH_OBJECT:
{
String
objectStr
=
(
String
)
arg
[
0
].
item
;
String
objectName
;
// Replace * by node object
if
(
objectStr
.
charAt
(
0
)
==
'*'
)
{
CdhrObjid
cdhr_node
=
gdh
.
getNodeObject
(
0
);
if
(
cdhr_node
.
evenSts
())
break
;
CdhrString
cdhr_nodestr
=
gdh
.
objidToName
(
cdhr_node
.
objid
,
Cdh
.
mName_volumeStrict
);
objectName
=
cdhr_nodestr
.
str
+
objectStr
.
substring
(
1
);
}
else
objectName
=
objectStr
;
String
attrName
=
objectName
+
".Action"
;
CdhrString
cdhr
=
gdh
.
getObjectInfoString
(
attrName
);
if
(
cdhr
.
evenSts
())
{
System
.
out
.
println
(
"Object name error"
);
break
;
}
int
idx
=
cdhr
.
str
.
lastIndexOf
(
".pwg"
);
if
(
idx
==
-
1
)
break
;
String
fname
=
cdhr
.
str
;
attrName
=
objectName
+
".Object"
;
cdhr
=
gdh
.
getObjectInfoString
(
attrName
);
String
instance
=
null
;
if
(
cdhr
.
oddSts
()
&&
!
cdhr
.
str
.
equals
(
""
))
instance
=
cdhr
.
str
;
new
ReaderTask
().
execute
(
new
ReaderTaskArg
(
ReaderTask
.
GROW_READ
,
fname
,
instance
));
break
;
}
case
EVENTHANDLER:
{
GdhEventArg
event
=
(
GdhEventArg
)
arg
[
0
].
item
;
try
{
...
...
@@ -2151,7 +2188,13 @@ System.out.println("MainActivity TimerTask " + currentCmn.type());
String
graphName
=
null
;
String
instanceValue
=
null
;
boolean
classGraph
=
false
;
String
objectValue
=
null
;
if
(
cli
.
qualifierFound
(
"/OBJECT"
))
{
objectValue
=
cli
.
getQualValue
(
"/OBJECT"
);
new
GdhTask
().
execute
(
new
GdhTaskArg
(
GdhTask
.
OPEN_GRAPH_OBJECT
,
objectValue
));
return
1
;
}
if
(
cli
.
qualifierFound
(
"/INSTANCE"
))
{
instanceValue
=
cli
.
getQualValue
(
"/INSTANCE"
);
classGraph
=
cli
.
qualifierFound
(
"/CLASSGRAPH"
);
...
...
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