def add_standard_features ( ): """ Adds all of the standard DockWindowFeature feature classes to DockWindow. """ for klass in [ ConnectFeature, ACustomFeature, DebugFeature, DockControlFeature, DragDropFeature, DropFileFeature, OptionsFeature, PopupMenuFeature, SaveFeature, SaveStateFeature, SaveStateFeature, ToolFeature ]: add_feature( klass )
def add_standard_features(): """ Adds all of the standard DockWindowFeature feature classes to DockWindow. """ for klass in [ ConnectFeature, ACustomFeature, DebugFeature, DockControlFeature, DragDropFeature, DropFileFeature, OptionsFeature, PopupMenuFeature, SaveFeature, SaveStateFeature, SaveStateFeature, ToolFeature ]: add_feature(klass)
def start(self): """ Start the plugin.""" ## FIXME: In Envisage 2, Feature was an extension point declared in # envisage.ui.workbench, and this plugin offered extensions to # Feature. It looks like that support has not yet been included in # Envisage 3, and so, I am simply adding the features when the plugin # is started (instead of declaring an extension point here). for feature in [ DragDropFeature, DropFileFeature, ConnectFeature, PopupMenuFeature, OptionsFeature, SaveStateFeature, SaveFeature, ACustomFeature, DockControlFeature, DebugFeature ]: add_feature(feature)
def start(self): """ Start the plugin.""" ## FIXME: In Envisage 2, Feature was an extension point declared in # envisage.ui.workbench, and this plugin offered extensions to # Feature. It looks like that support has not yet been included in # Envisage 3, and so, I am simply adding the features when the plugin # is started (instead of declaring an extension point here). for feature in [DragDropFeature, DropFileFeature, ConnectFeature, PopupMenuFeature, OptionsFeature, SaveStateFeature, SaveFeature, ACustomFeature, DockControlFeature, DebugFeature]: add_feature(feature)