Example usage for com.liferay.portal.kernel.theme PortletDisplay isShowEditDefaultsIcon

List of usage examples for com.liferay.portal.kernel.theme PortletDisplay isShowEditDefaultsIcon

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.theme PortletDisplay isShowEditDefaultsIcon.

Prototype

public boolean isShowEditDefaultsIcon() 

Source Link

Usage

From source file:com.liferay.portlet.configuration.icon.edit.defaults.internal.EditDefaultsPortletConfigurationIcon.java

License:Open Source License

@Override
public boolean isShow(PortletRequest portletRequest) {
    ThemeDisplay themeDisplay = (ThemeDisplay) portletRequest.getAttribute(WebKeys.THEME_DISPLAY);

    PortletDisplay portletDisplay = themeDisplay.getPortletDisplay();

    return portletDisplay.isShowEditDefaultsIcon();
}