@@ -13,7 +13,7 @@ interface
1313 TDPMProjectNotifier = class (TInterfacedObject,IOTAProjectNotifier, IOTAModuleNotifier,IOTANotifier )
1414 private
1515 FLogger : IDPMIDELogger;
16- FIDENotifier : IDPMIDENotifier ;
16+ FIDENotifier : IInterface ;
1717 FFileName : string;
1818 FProject : IOTAProject;
1919 FCurrentPlatform : string;
@@ -30,12 +30,13 @@ TDPMProjectNotifier = class(TInterfacedObject,IOTAProjectNotifier, IOTAModuleN
3030 procedure ModuleRenamed (const NewName: string);
3131 procedure IOTAProjectNotifier.ModuleRenamed = ModuleRenamedA;
3232 public
33- constructor Create(const logger : IDPMIDELogger; const ideNotifier : IDPMIDENotifier ; const fileName : string; const project : IOTAProject);
33+ constructor Create(const logger : IDPMIDELogger; const ideNotifier : IInterface ; const fileName : string; const project : IOTAProject);
3434 end ;
3535implementation
3636
3737uses
38- System.SysUtils;
38+ System.SysUtils,
39+ DPM.IDE.IDENotifier;
3940
4041{ TDPMProjectNotifier }
4142
@@ -54,9 +55,7 @@ function TDPMProjectNotifier.CheckOverwrite: Boolean;
5455 result := true;
5556end ;
5657
57- constructor TDPMProjectNotifier.Create(const logger: IDPMIDELogger; const ideNotifier : IDPMIDENotifier; const fileName : string; const project : IOTAProject);
58- var
59- activeProject : IOTAProject;
58+ constructor TDPMProjectNotifier.Create(const logger: IDPMIDELogger; const ideNotifier : IInterface; const fileName : string; const project : IOTAProject);
6059begin
6160 FLogger := logger;
6261 FIDENotifier := ideNotifier;
@@ -76,7 +75,7 @@ procedure TDPMProjectNotifier.Modified;
7675 if FCurrentPlatform <> FProject.CurrentPlatform then
7776 begin
7877 FCurrentPlatform := FProject.CurrentPlatform;
79- FIDENotifier.ProjectActivePlatformChanged(FCurrentPlatform);
78+ ( FIDENotifier as IDPMIDENotifier) .ProjectActivePlatformChanged(FCurrentPlatform);
8079 end ;
8180end ;
8281
@@ -102,7 +101,7 @@ procedure TDPMProjectNotifier.ModuleRenamed(const NewName: string);
102101begin
103102 oldFileName := FFileName;
104103 FFileName := NewName;
105- FIDENotifier.ProjectRenamed(oldFileName, newName);
104+ ( FIDENotifier as IDPMIDENotifier) .ProjectRenamed(oldFileName, newName);
106105end ;
107106
108107end .
0 commit comments