Package org.pentaho.reporting.designer.core.actions.elements

Examples of org.pentaho.reporting.designer.core.actions.elements.MorphAction


        firstElement = false;
      }

      try
      {
        final MorphAction action = new MorphAction(data.create());
        action.setReportDesignerContext(context);
        morphMenu.add(new JMenuItem(action));
      }
      catch (InstantiationException e)
      {
        UncaughtExceptionsModel.getInstance().addException(e);
View Full Code Here


          firstElement = false;
        }

        try
        {
          final MorphAction action = new MorphAction(data.create());
          action.setReportDesignerContext(context);
          morphMenu.add(new JMenuItem(action));
        }
        catch (InstantiationException e)
        {
          UncaughtExceptionsModel.getInstance().addException(e);
        }
      }

    }

    final JMenu insertElementsMenu = context.getXulDesignerFrame().getMenuById("insert-elements-menu");// NON-NLS
    if (insertElementsMenu != null)
    {
      final ElementMetaData[] datas = ElementTypeRegistry.getInstance().getAllElementTypes();
      Arrays.sort(datas, new GroupedMetaDataComparator());
      Object grouping = null;
      boolean firstElement = true;
      for (int i = 0; i < datas.length; i++)
      {
        final ElementMetaData data = datas[i];
        if (data.isHidden())
        {
          continue;
        }

        final String currentGrouping = data.getGrouping(Locale.getDefault());
        if (firstElement == false)
        {
          if (ObjectUtilities.equal(currentGrouping, grouping) == false)
          {
            grouping = currentGrouping;
            insertElementsMenu.addSeparator();
          }
        }
        else
        {
          grouping = currentGrouping;
          firstElement = false;
        }
        final InsertElementAction action = new InsertElementAction(data);
        action.setReportDesignerContext(context);
        insertElementsMenu.add(new JMenuItem(action));
      }
    }

    final JMenu insertDataSourcesMenu = context.getXulDesignerFrame().getMenuById("insert-datasources-menu");// NON-NLS
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.actions.elements.MorphAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.