Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
StarUML Evológica Plugin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
evologica
StarUML Evológica Plugin
Commits
8209f16a
Commit
8209f16a
authored
Nov 24, 2020
by
Sandro Camata Santana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajustes
parent
29d6d4f7
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
189 additions
and
146 deletions
+189
-146
ituExplorerV2.dfm
EvoUMLPlugin/src/ituExplorerV2.dfm
+154
-139
ituExplorerV2.pas
EvoUMLPlugin/src/ituExplorerV2.pas
+35
-7
No files found.
EvoUMLPlugin/src/ituExplorerV2.dfm
View file @
8209f16a
This diff is collapsed.
Click to expand it.
EvoUMLPlugin/src/ituExplorerV2.pas
View file @
8209f16a
...
@@ -2224,17 +2224,39 @@ begin
...
@@ -2224,17 +2224,39 @@ begin
end
;
end
;
procedure
TExplorerV2
.
memOQLQuery2DragDrop
(
Sender
,
Source
:
TObject
;
X
,
Y
:
Integer
);
procedure
TExplorerV2
.
memOQLQuery2DragDrop
(
Sender
,
Source
:
TObject
;
X
,
Y
:
Integer
);
function
FromClause
(
piNode
:
TTreeNode
;
var
poPath
:
string
):
string
;
function
IsRoot
(
piNode
:
TTreeNode
):
Boolean
;
begin
begin
if
piNode
.
Level
=
1
if
(
piNode
.
Level
>
1
)
then
begin
if
((
TObject
(
piNode
.
Data
)
is
acClassTicket
)
and
(
piNode
.
ImageIndex
=
6
))
then
Result
:=
IsRoot
(
piNode
.
Parent
)
else
Result
:=
False
;
end
else
Result
:=
True
;
end
;
function
FromClause
(
piNode
:
TTreeNode
;
piCast
:
String
;
var
poPath
:
string
):
string
;
begin
if
IsRoot
(
piNode
)
//((piNode.Level = 1) or ((TObject(piNode.Data) is acClassTicket) and (piNode.ImageIndex = 6)))
then
begin
then
begin
poPath
:=
acClassTicket
(
piNode
.
Data
).
PersistentObjectClassName
;
poPath
:=
acClassTicket
(
piNode
.
Data
).
PersistentObjectClassName
;
result
:=
poPath
;
result
:=
poPath
;
end
end
else
begin
else
begin
result
:=
FromClause
(
piNode
.
Parent
,
poPath
);
if
((
TObject
(
piNode
.
Data
)
is
acClassTicket
)
and
(
piNode
.
ImageIndex
=
6
))
then
begin
if
piCast
<>
''
then
result
:=
FromClause
(
piNode
.
Parent
,
piCast
,
poPath
)
else
result
:=
FromClause
(
piNode
.
Parent
,
acClassTicket
(
piNode
.
Data
).
PersistentObjectClassName
,
poPath
);
end
else
begin
result
:=
FromClause
(
piNode
.
Parent
,
''
,
poPath
);
poPath
:=
poPath
+
'.'
+
copy
(
piNode
.
Text
,
1
,
pred
(
pos
(
':'
,
piNode
.
Text
)));
poPath
:=
poPath
+
'.'
+
copy
(
piNode
.
Text
,
1
,
pred
(
pos
(
':'
,
piNode
.
Text
)));
result
:=
result
+
', '
+
#
13
#
10
+
' '
+
poPath
;
if
piCast
<>
''
then
result
:=
result
+
', '
+
#
13
#
10
+
' '
+
'('
+
piCast
+
')'
+
poPath
else
result
:=
result
+
', '
+
#
13
#
10
+
' '
+
poPath
;
end
;
end
;
end
;
end
;
end
;
var
lCaption
:
string
;
var
lCaption
:
string
;
...
@@ -2260,7 +2282,7 @@ begin
...
@@ -2260,7 +2282,7 @@ begin
if
GetKeyState
(
VK_CONTROL
)
<
0
if
GetKeyState
(
VK_CONTROL
)
<
0
then
begin
then
begin
lCaption
:=
(
TObject
(
lNode
.
Parent
.
data
)
as
acClassTicket
).
PersistentObjectClassName
;
lCaption
:=
(
TObject
(
lNode
.
Parent
.
data
)
as
acClassTicket
).
PersistentObjectClassName
;
lFrom
:=
FromClause
(
lNode
.
Parent
,
lPath
);
lFrom
:=
FromClause
(
lNode
.
Parent
,
''
,
lPath
);
lSelect
:=
copy
(
lPath
,
1
,
pred
(
pos
(
'.'
,
lPath
)));
lSelect
:=
copy
(
lPath
,
1
,
pred
(
pos
(
'.'
,
lPath
)));
if
lSelect
=
''
then
lSelect
:=
lPath
;
if
lSelect
=
''
then
lSelect
:=
lPath
;
SynEditOQL
.
SelText
:=
#
13
#
10
+
SynEditOQL
.
SelText
:=
#
13
#
10
+
...
@@ -2347,16 +2369,22 @@ begin
...
@@ -2347,16 +2369,22 @@ begin
end
;
end
;
end
;
end
;
end
;
end
;
fLastExecErrorFlag
:=
False
;
sbStatusBar
.
Panels
[
0
].
Text
:=
''
;
sbStatusBar
.
Panels
[
1
].
Text
:=
''
;
sbStatusBar
.
Panels
[
2
].
Text
:=
''
;
if
actResultsPanel
.
Checked
then
actResultsPanel
.
Execute
;
except
except
on
e
:
Exception
do
on
e
:
Exception
do
begin
begin
if
not
actResultsPanel
.
Checked
then
actResultsPanel
.
Execut
e
;
fLastExecErrorFlag
:=
Tru
e
;
memErrorText
.
Text
:=
e
.
Message
;
memErrorText
.
Text
:=
e
.
Message
;
pcResults
.
ActivePageIndex
:=
1
;
pcResults
.
ActivePageIndex
:=
1
;
pcEditor
.
ActivePageIndex
:=
0
;
pcEditor
.
ActivePageIndex
:=
0
;
sbStatusBar
.
Panels
[
0
].
Text
:=
'OQL translation to SQL failed.'
;
sbStatusBar
.
Panels
[
0
].
Text
:=
'OQL translation to SQL failed.'
;
sbStatusBar
.
Panels
[
1
].
Text
:=
''
;
sbStatusBar
.
Panels
[
1
].
Text
:=
''
;
sbStatusBar
.
Panels
[
2
].
Text
:=
''
;
sbStatusBar
.
Panels
[
2
].
Text
:=
''
;
if
not
actResultsPanel
.
Checked
then
actResultsPanel
.
Execute
;
end
;
end
;
end
;
end
;
end
end
...
...
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