first try for v18
This commit is contained in:
@@ -30,7 +30,7 @@ namespace ProjectFilesystemPlugin {
|
|||||||
// Delete members
|
// Delete members
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ProjectFilesystemPluginPlugin::initialize(const QStringList &arguments, QString *errorString)
|
Utils::Result<> ProjectFilesystemPluginPlugin::initialize(const QStringList &arguments)
|
||||||
{
|
{
|
||||||
// Register objects in the plugin manager's object pool
|
// Register objects in the plugin manager's object pool
|
||||||
// Load settings
|
// Load settings
|
||||||
@@ -40,7 +40,6 @@ namespace ProjectFilesystemPlugin {
|
|||||||
// depends on have initialized their members.
|
// depends on have initialized their members.
|
||||||
|
|
||||||
Q_UNUSED(arguments)
|
Q_UNUSED(arguments)
|
||||||
Q_UNUSED(errorString)
|
|
||||||
|
|
||||||
/*auto action = new QAction(tr("ProjectFilesystemPlugin Action"), this);
|
/*auto action = new QAction(tr("ProjectFilesystemPlugin Action"), this);
|
||||||
Core::Command *cmd = Core::ActionManager::registerAction(action, Constants::ACTION_ID,
|
Core::Command *cmd = Core::ActionManager::registerAction(action, Constants::ACTION_ID,
|
||||||
@@ -57,12 +56,12 @@ namespace ProjectFilesystemPlugin {
|
|||||||
//addAutoReleasedObject(new ProjectFSWidgetFactory());
|
//addAutoReleasedObject(new ProjectFSWidgetFactory());
|
||||||
(new ProjectFSWidgetFactory())->setParent(this);
|
(new ProjectFSWidgetFactory())->setParent(this);
|
||||||
|
|
||||||
return true;
|
return Utils::ResultOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectFilesystemPluginPlugin::extensionsInitialized()
|
void ProjectFilesystemPluginPlugin::extensionsInitialized()
|
||||||
{
|
{
|
||||||
Utils::globalMacroExpander()->registerPrefix("ProjectFilesystem", "Project filesystem plugin", [](QString v) -> QString {return v;} );
|
Utils::globalMacroExpander()->registerPrefix("ProjectFilesystem", "ProjectFilesystem", "Project filesystem plugin", [](QString v) -> QString {return v;} );
|
||||||
Utils::globalMacroExpander()->registerFileVariables("ProjectFilesystem", "Selected item",
|
Utils::globalMacroExpander()->registerFileVariables("ProjectFilesystem", "Selected item",
|
||||||
[]() -> Utils::FilePath { return Utils::FilePath::fromString(projectfs_menu_target.absoluteFilePath());}, true);
|
[]() -> Utils::FilePath { return Utils::FilePath::fromString(projectfs_menu_target.absoluteFilePath());}, true);
|
||||||
// Retrieve objects from the plugin manager's object pool
|
// Retrieve objects from the plugin manager's object pool
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace ProjectFilesystemPlugin {
|
|||||||
ProjectFilesystemPluginPlugin();
|
ProjectFilesystemPluginPlugin();
|
||||||
~ProjectFilesystemPluginPlugin();
|
~ProjectFilesystemPluginPlugin();
|
||||||
|
|
||||||
bool initialize(const QStringList &arguments, QString *errorString) override;
|
Utils::Result<> initialize(const QStringList &arguments) override;
|
||||||
void extensionsInitialized() override;
|
void extensionsInitialized() override;
|
||||||
ShutdownFlag aboutToShutdown() override;
|
ShutdownFlag aboutToShutdown() override;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user