> > I didn't find any doc on this and the lazarus source uses > PkgBoss to open a > > package. PackageIntf was already in use for the TPkgOpenFlag enum. > > I added an example: > http://wiki.lazarus.freepascal.org/Extending_the_IDE#Open_a_pa ckage_file_.28lpk.29
I think there is a typo in the example: var p: TIDEPackage; ... Pkg:=PackageEditingInterface.FindPackageWithName(ExtractFilenameOnly(LPKFile name)); P != Pkg. It's probably also worth mentioning that PackageIntf is in the package IDEIntf. > > > > > So I have added IDE as > > > dependency to my package. > > > > I knew that this package would cause trouble. > > This package is only for testing IDE features - for the IDE > > developers. Nothing in the ide package is supported and can > > change at any time. I will add a check, so that no package > > can be installed that uses the ide.lpk. > The IDE now forbids to install it. Thanks, Ludo -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
