Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-1271

Constructor of generated class extending BaseControlPanelEntry is misplaced

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0 M2
    • Fix Version/s: 2.0.0
    • Labels:
      None
    • Environment:
      Eclipse Kepler SR1

      Description

      If you add a new portlet (MVC) using the "New Liferay Portlet"-wizard and select "Add to Control Panel" a class is generated. This class looks like the following:

      FirstPortletControlPanelEntry.java
      package com.test;
      
      import com.liferay.portal.model.Portlet;
      import com.liferay.portal.security.permission.PermissionChecker;
      import com.liferay.portlet.BaseControlPanelEntry;
      
      /**
       * Control panel entry class FirstPortletControlPanelEntry
       */
             
          /**
           * @see com.liferay.util.bridges.mvc.MVCPortlet#com.liferay.util.bridges.mvc.MVCPortlet()
           */
          public FirstPortletControlPanelEntry() {
              super();
          }
      
      public class FirstPortletControlPanelEntry extends BaseControlPanelEntry {
      
          @Override
          public boolean isVisible(PermissionChecker permissionChecker, Portlet portlet)
                  throws Exception {
              return false;
          }
      
      }
      

        Attachments

          Activity

            People

            Assignee:
            simon.jiang Simon Jiang
            Reporter:
            haupt Christian Haupt (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 24 weeks ago

                Packages

                Version Package
                2.0.0