Bug 22615 [Dialogs] Native ProgressBar look does not match look of AnimatedProgress
On MacOS X the Windows look of the AnimatedProgress does not match the Aqua look of the native ProgressBar. So clients using the wrapper ProgressIndicator get either the correct Aqua look or the Windows look (which offends real Mac users :-) BTW: On MacOS X the native ProgressBar already provides the functionality of the AnimatedProgress so on MacOS X the ProgressIndicator could just avoid switching to the AnimatedProgress.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ProgressIndicator.java
package org.eclipse.jface.dialogs;
/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */
import org.eclipse.jface.util.Assert;
import org.eclipse.swt.*;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.custom.AnimatedProgress;
import org.eclipse.swt.custom.StackLayout;
/**
 * A control for showing progress feedback for a long running operation.
 * In contrast to the native SWT ProgressBar control
 * this control supports a so called "ANIMATED" mode
 * where we don't have to know the total amount of work in advance
 * and no <code>worked</code> method needs to be called.
 */
public class ProgressIndicator extends Composite {