Bug 120337 In the style list, style name is not alphabetic.
In the style list, style name is not alphabetic. Steps: 1.Create some style: PageBreak, FormatNumber, FormatString, Border, Box, TextBlock (style Name) 2.Drag a label into the layout 3.Open the Property Editor View 4.Select "General" tab, click Style drop list Actual Resutls: 1.style name is not alphabetic. Expected Results: 1.style name is alphabetic.
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/AlphabeticallyComparator.java
/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation. All rights reserved. This program and
 * the accompanying materials are made available under the terms of the Eclipse
 * Public License v1.0 which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: Actuate Corporation - initial API and implementation
 ******************************************************************************/
package org.eclipse.birt.report.designer.util;
import java.text.Collator;
import java.util.Comparator;
import org.eclipse.birt.report.model.api.DesignElementHandle;
import org.eclipse.birt.report.model.api.metadata.IChoice;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.StructuredViewer;
/**
 * A text based comparator is used to reorder the elements.
 * 
 * @see IStructuredContentProvider
 * @see StructuredViewer
 */
public class AlphabeticallyComparator implements Comparator