CURA-4557 setting up plugin

This commit is contained in:
Jack Ha 2018-03-15 14:33:31 +01:00
parent d0609e97e4
commit 50f9548da0
3 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,23 @@
# Copyright (c) 2017 Ultimaker B.V.
# This example is released under the terms of the AGPLv3 or higher.
from . import ModelChecker
## Defines additional metadata for the plug-in.
#
# Some types of plug-ins require additional metadata, such as which file types
# they are able to read or the name of the tool they define. In the case of
# the "Extension" type plug-in, there is no additional metadata though.
def getMetaData():
return {}
## Lets Uranium know that this plug-in exists.
#
# This is called when starting the application to find out which plug-ins
# exist and what their types are. We need to return a dictionary mapping from
# strings representing plug-in types (in this case "extension") to objects
# that inherit from PluginObject.
#
# \param app The application that the plug-in needs to register with.
def register(app):
return {"extension": ModelChecker.ModelChecker()}