Project JEDI - Issue Tracker - JEDI VCL
Viewing Issue Advanced Details
3697 00 JVCL Components minor always 2006-05-10 11:52 2006-06-07 03:40
Frenk3  
obones  
normal  
resolved 3.20  
fixed  
none    
none 3.30  
0003697: TJvPluginManager.Plugins[0].FileName does return invalid file name
TJvPluginManager.Plugins returns invalid FileName ("CustomPlugin" for all
plugins). For internal use I modified a method

function AddCustomPlugin(PlugIn: TJvPlugIn ): Boolean
to
function AddCustomPlugin(PlugIn: TJvPlugIn; FileName : string): Boolean
and added
function TJvPluginManager.AddCustomPlugin(PlugIn: TJvPlugIn; FileName :
string ): Boolean;
var
  PlgInfo: TPluginInfo;
  Counter: Integer;
begin
  Result := False;
  try
// Result := PlugIn.Initialize(Self, Application, 'CustomPlugin');
// error!
    Result := PlugIn.Initialize(Self, Application, FileName);
    if not Result then

also added to procedure

procedure TJvPluginManager.LoadPlugin(FileName: string; PlgKind:
TPluginKind);

      // initialize the plugin and add to list
      if AddCustomPlugin(PlugIn, FileName) then
I attached the unit with fixes (modified by Frenk)
? file icon JvPluginManager.pas [^] (16,290 bytes) 2006-05-10 11:52
Issue History
2006-05-10 11:52 Frenk3 New Issue
2006-05-10 11:52 Frenk3 File Added: JvPluginManager.pas
2006-05-21 09:36 obones Note Added: 0009334
2006-05-21 09:36 obones Status new => feedback
2006-06-07 03:40 obones Status feedback => resolved
2006-06-07 03:40 obones Resolution open => fixed
2006-06-07 03:40 obones Assigned To => obones
2006-06-07 03:40 obones Note Added: 0009405

Notes
(0009334)
obones   
2006-05-21 09:36   
Can you provide a diff file instead ?
(0009405)
obones   
2006-06-07 03:40   
A slight variation of this is now in CVS.