mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 09:40:28 +02:00
* Two corrections when omitting package/module name in element name
git-svn-id: trunk@31807 -
This commit is contained in:
parent
fe55286e6f
commit
090ff678ae
@ -33,7 +33,7 @@
|
|||||||
<RunParams>
|
<RunParams>
|
||||||
<local>
|
<local>
|
||||||
<FormatVersion Value="1"/>
|
<FormatVersion Value="1"/>
|
||||||
<CommandLineParams Value="--element=rtl.system.writeln /home/michael/docs/system.xml"/>
|
<CommandLineParams Value="--element=system.writeln /home/michael/docs/system.xml"/>
|
||||||
<LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
|
<LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
|
||||||
</local>
|
</local>
|
||||||
</RunParams>
|
</RunParams>
|
||||||
|
@ -222,7 +222,7 @@ ResourceString
|
|||||||
SErrNoModuleForElement = 'No module found to insert element "%s"';
|
SErrNoModuleForElement = 'No module found to insert element "%s"';
|
||||||
//SErrNoNodeForElement = 'No node found for element "%s"';
|
//SErrNoNodeForElement = 'No node found for element "%s"';
|
||||||
SErrUnknownDomElement = 'Unknwon DOM element as parent for selected element: "%s"';
|
SErrUnknownDomElement = 'Unknwon DOM element as parent for selected element: "%s"';
|
||||||
SStartNodeNotFound = 'Start element "%d" could not be found';
|
SStartNodeNotFound = 'Start element "%s" could not be found';
|
||||||
|
|
||||||
//SSaveFileTitle = 'Enter filename to save to';
|
//SSaveFileTitle = 'Enter filename to save to';
|
||||||
//SOpenFileTitle = 'Select file to open';
|
//SOpenFileTitle = 'Select file to open';
|
||||||
|
@ -280,7 +280,7 @@ begin
|
|||||||
// if not found, assume first part is modulename in first package.
|
// if not found, assume first part is modulename in first package.
|
||||||
if (PE=Nil) then
|
if (PE=Nil) then
|
||||||
begin
|
begin
|
||||||
PE:=FindElementNode(FDocument.DocumentElement,'package',PN);
|
PE:=FindElementNode(FDocument.DocumentElement,'package','');
|
||||||
N:=ElementName;
|
N:=ElementName;
|
||||||
end;
|
end;
|
||||||
if (PE=Nil) then // No package node !
|
if (PE=Nil) then // No package node !
|
||||||
@ -291,7 +291,7 @@ begin
|
|||||||
// if not found, assume elementname is element in first module.
|
// if not found, assume elementname is element in first module.
|
||||||
if (ME=Nil) then
|
if (ME=Nil) then
|
||||||
begin
|
begin
|
||||||
ME:=FindElementNode(PE,'module',PN);
|
ME:=FindElementNode(PE,'module','');
|
||||||
N:=ElementName;
|
N:=ElementName;
|
||||||
end;
|
end;
|
||||||
if (ME=Nil) then // No module node !
|
if (ME=Nil) then // No module node !
|
||||||
|
Loading…
Reference in New Issue
Block a user