'Switch to plugin
This method is called when pressing plugin\'s shortcut key'

def switch_to_plugin(self):

    if (not self.ismaximized):
        self.dockwidget.show()
    if (not self.toggle_view_action.isChecked()):
        self.toggle_view_action.setChecked(True)
    self.visibility_changed(True)
