default tenon action link
9965
def action_link(title, link, icon, options = {})
      icon_tag = content_tag(:i, '', class: "fa fa-#{icon} fa-fw")
      default_options = { title: title, data: { tooltip: title } }
      link_to icon_tag, link, default_options.deep_merge(options)
    end
627461
def add_action_view(self, name, url, actions, **kwargs):
        
        view = ActionsView(name, url=url, self_var=self, **kwargs)
        if isinstance(actions, dict):
            for group, actions in actions.iteritems():
                view.actions.extend(load_actions(actions, group=group or None))
        else:
            view.actions.extend(load_actions(actions))
        self.add_view(view)
        return view
1326348
def template_click_option(include_build=True):
    
    return click.option('--template', '-t',
                        default=_TEMPLATE_OPTION_DEFAULT_VALUE,
                        type=click.Path(),
                        envvar="SAM_TEMPLATE_FILE",
                        callback=partial(get_or_default_template_file_name, include_build=include_build),
                        show_default=True,
                        help="AWS SAM template file")
1015288
def action_bar(show_action_bar, opts={})
        @action_bar_options = ({show:true, back: true, icon: false}).merge(opts).merge({show: show_action_bar})
      end
428536
protected function initialRedirectUrl() {

        $defaultUrl = '/'. $this->controller->id . '/' . $this->controller->defaultAction;

        if (isset($this->controller->module->id) && !$this->controller->module instanceof Application) {
            $defaultUrl = '/' . $this->controller->module->id . $defaultUrl;
        }

        if ( empty( $this->successUrl ) ) {
            $this->successUrl = $defaultUrl;
        }

        if ( empty( $this->failedUrl ) ) {
            $this->failedUrl = $defaultUrl;
        }

    }
492858
@Override
    public R visitModule(ModuleElement e, P p) {
        return defaultAction(e, p);
    }
251400
public function defaultAction(ElementButton $defaultAction)
    {
        $defaultAction->type(ElementButton::TYPE_WEB_URL);
        $this->default_action = $defaultAction->toArray();

        return $this;
    }
1280518
def __add_action(self, relative_directory, action):
        
        generator_action_container = self.__actions.retrieve_element_or_default(relative_directory, None)

        if generator_action_container is None:
            generator_action_container = GeneratorActionContainer()
            generator_action_container.add_generator_action(action)
            self.__actions.add_element(location=relative_directory, element=generator_action_container)
        else:
            generator_action_container.add_generator_action(action)
175304
private I_CmsContextMenuItem findDefaultAction(Collection<I_CmsContextMenuItem> items) {

        I_CmsContextMenuItem result = null;
        int resultRank = -1;
        for (I_CmsContextMenuItem menuItem : items) {
            if ((menuItem instanceof CmsContextMenuActionItem)
                && (((CmsContextMenuActionItem)menuItem).getWorkplaceAction() instanceof I_CmsDefaultAction)) {
                I_CmsDefaultAction action = (I_CmsDefaultAction)((CmsContextMenuActionItem)menuItem).getWorkplaceAction();
                if (getVisibility(menuItem).isActive()) {
                    if (result == null) {
                        result = menuItem;
                        resultRank = action.getDefaultActionRank(m_context);
                    } else {
                        int rank = action.getDefaultActionRank(m_context);
                        if (rank > resultRank) {
                            result = menuItem;
                            resultRank = rank;
                        }
                    }
                }
            }
        }
        return result;
    }
134094
@Override
    public R visitParam(ParamTree node, P p) {
        return defaultAction(node, p);
    }
841355
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
	public ActionMode.Callback getCustomSelectionActionModeCallback (){
		if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
			return mInputView.getCustomSelectionActionModeCallback();

		return null;
	}
882568
@Override
    protected String defaultActionHtmlStart() {

        StringBuffer result = new StringBuffer(2048);
        result.append(htmlStart(null));
        result.append(getList().listJs());
        result.append(CmsListExplorerColumn.getExplorerStyleDef());
        result.append("<script language='JavaScript'>\n");
        result.append(new CmsExplorer(getJsp()).getInitializationHeader());
        result.append("\ntop.updateWindowStore();\n");
        result.append("top.displayHead(top.win.head, 0, 1);\n}\n");
        result.append("</script>");
        result.append(bodyStart("dialog", "onload='initialize();'"));
        result.append(dialogStart());
        result.append(dialogContentStart(getParamTitle()));
        return result.toString();
    }
1033272
@Override
    public R visitVersion(VersionTree node, P p) {
        return defaultAction(node, p);
    }
798680
def default_working_dir():
    
    import nameset.virtualchain_hooks as virtualchain_hooks
    return os.path.expanduser('~/.{}'.format(virtualchain_hooks.get_virtual_chain_name()))
200264
@Override
    public R visitThrows(ThrowsTree node, P p) {
        return defaultAction(node, p);
    }
303312
@Override
    public R visitIndex(IndexTree node, P p) {
        return defaultAction(node, p);
    }
324585
def build_default_link(self):
        ''''''
        attrs = {}
        attrs["rel"] = "stylesheet"
        attrs["href"] ="{}?{:x}".format(
            os.path.join(settings.STATIC_URL, self.filepath).replace(os.path.sep, '/'),
            self.version_id,
        )
        attrs.update(self.options['link_attrs'])
        attrs["data-context"] = self.provider_run.uid       # can't be overridden
        return '<link{} />'.format(flatatt(attrs))