Commit db0d57d8 authored by Claes Sjofors's avatar Claes Sjofors

Xtt and java, Ctrl+G on open DefGraph

parent df6ffcc2
......@@ -1276,6 +1276,13 @@ public class XttTree extends JPanel
}
String cmd;
switch ( cid) {
case Pwrs.cClass_PlantHier:
String attr = name + ".DefGraph";
CdhrString xttgraph = gdh.getObjectInfoString( attr);
if ( xttgraph.evenSts() || xttgraph.str.isEmpty()) return;
cmd = "open graph/object=" + xttgraph.str;
break;
case Pwrb.cClass_DsTrend:
case Pwrb.cClass_DsTrendCurve:
case Pwrb.cClass_PlotGroup:
......
......@@ -42,6 +42,7 @@
#include <stdlib.h>
#include "pwr.h"
#include "pwr_systemclasses.h"
#include "pwr_baseclasses.h"
#include "rt_gdh.h"
#include "rt_gdh_msg.h"
......@@ -361,6 +362,11 @@ void Xtt::activate_opengraph()
if ( cdh_tidIsCid( classid)) {
switch ( classid) {
case pwr_cClass_PlantHier:
// Open default graph
sprintf( cmd, "call meth /meth=Graph /object=%s", vname);
xnav->command( cmd);
return;
case pwr_cClass_XttMultiView:
// Open multiview
sprintf( cmd, "open mult /name=%s", vname);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment