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
b6b87d72
Commit
b6b87d72
authored
Jul 08, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Method CircuitDiagram added
parent
57a6248b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
2 deletions
+54
-2
java/jpwr/jop/src/JopMethodsMenu.java
java/jpwr/jop/src/JopMethodsMenu.java
+27
-1
src/jpwr/jop/src/JopMethodsMenu.java
src/jpwr/jop/src/JopMethodsMenu.java
+27
-1
No files found.
java/jpwr/jop/src/JopMethodsMenu.java
View file @
b6b87d72
...
...
@@ -74,6 +74,11 @@ public class JopMethodsMenu implements ActionListener, PopupMenuListener,
popup
.
add
(
item
=
new
JMenuItem
(
"Class Help"
));
item
.
addActionListener
(
this
);
}
if
(
circuitDiagramFilter
())
{
popup
.
add
(
item
=
new
JMenuItem
(
"Circuit Diagram"
));
item
.
addActionListener
(
this
);
}
popup
.
addPopupMenuListener
(
this
);
popup
.
show
(
invoker
,
x
,
y
);
session
.
getEngine
().
add
(
this
);
...
...
@@ -106,6 +111,9 @@ public class JopMethodsMenu implements ActionListener, PopupMenuListener,
else
if
(
event
.
getActionCommand
().
equals
(
"Class Help"
))
{
classHelp
();
}
else
if
(
event
.
getActionCommand
().
equals
(
"Circuit Diagram"
))
{
circuitDiagram
();
}
}
//
...
...
@@ -229,7 +237,7 @@ public class JopMethodsMenu implements ActionListener, PopupMenuListener,
if
(
instanceRet
.
oddSts
()
&&
!
instanceRet
.
str
.
equals
(
""
))
instance
=
instanceRet
.
str
;
session
.
openGraphFrame
(
action
,
instance
,
false
);
session
.
openGraphFrame
(
action
,
instance
,
false
,
false
);
}
public
boolean
helpFilter
()
{
...
...
@@ -267,6 +275,24 @@ public class JopMethodsMenu implements ActionListener, PopupMenuListener,
session
.
executeCommand
(
cmd
);
}
public
boolean
circuitDiagramFilter
()
{
String
attr
=
object
+
".CircuitDiagram"
;
CdhrString
sret
=
gdh
.
getObjectInfoString
(
attr
);
if
(
sret
.
evenSts
()
||
sret
.
str
.
equals
(
""
))
return
false
;
return
true
;
}
public
void
circuitDiagram
()
{
String
attr
=
object
+
".CircuitDiagram"
;
CdhrString
sret
=
gdh
.
getObjectInfoString
(
attr
);
if
(
sret
.
evenSts
())
return
;
String
cmd
=
"open url \""
+
sret
.
str
+
"\""
;
System
.
out
.
println
(
"circuitDiagram: "
+
cmd
);
session
.
executeCommand
(
cmd
);
}
public
boolean
classHelpFilter
()
{
return
true
;
}
...
...
src/jpwr/jop/src/JopMethodsMenu.java
View file @
b6b87d72
...
...
@@ -74,6 +74,11 @@ public class JopMethodsMenu implements ActionListener, PopupMenuListener,
popup
.
add
(
item
=
new
JMenuItem
(
"Class Help"
));
item
.
addActionListener
(
this
);
}
if
(
circuitDiagramFilter
())
{
popup
.
add
(
item
=
new
JMenuItem
(
"Circuit Diagram"
));
item
.
addActionListener
(
this
);
}
popup
.
addPopupMenuListener
(
this
);
popup
.
show
(
invoker
,
x
,
y
);
session
.
getEngine
().
add
(
this
);
...
...
@@ -106,6 +111,9 @@ public class JopMethodsMenu implements ActionListener, PopupMenuListener,
else
if
(
event
.
getActionCommand
().
equals
(
"Class Help"
))
{
classHelp
();
}
else
if
(
event
.
getActionCommand
().
equals
(
"Circuit Diagram"
))
{
circuitDiagram
();
}
}
//
...
...
@@ -229,7 +237,7 @@ public class JopMethodsMenu implements ActionListener, PopupMenuListener,
if
(
instanceRet
.
oddSts
()
&&
!
instanceRet
.
str
.
equals
(
""
))
instance
=
instanceRet
.
str
;
session
.
openGraphFrame
(
action
,
instance
,
false
);
session
.
openGraphFrame
(
action
,
instance
,
false
,
false
);
}
public
boolean
helpFilter
()
{
...
...
@@ -267,6 +275,24 @@ public class JopMethodsMenu implements ActionListener, PopupMenuListener,
session
.
executeCommand
(
cmd
);
}
public
boolean
circuitDiagramFilter
()
{
String
attr
=
object
+
".CircuitDiagram"
;
CdhrString
sret
=
gdh
.
getObjectInfoString
(
attr
);
if
(
sret
.
evenSts
()
||
sret
.
str
.
equals
(
""
))
return
false
;
return
true
;
}
public
void
circuitDiagram
()
{
String
attr
=
object
+
".CircuitDiagram"
;
CdhrString
sret
=
gdh
.
getObjectInfoString
(
attr
);
if
(
sret
.
evenSts
())
return
;
String
cmd
=
"open url \""
+
sret
.
str
+
"\""
;
System
.
out
.
println
(
"circuitDiagram: "
+
cmd
);
session
.
executeCommand
(
cmd
);
}
public
boolean
classHelpFilter
()
{
return
true
;
}
...
...
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