Bug 126184 [misc] Outline of binary type does not show children in source order
I20060131-1200 The Outline of a binary type with source attachment always shows the type's children in fields/methods/types order. I would expect them to be in source declaration order if the outline is not in alphabetic mode. Unfortunately, IType#getChildren() makes no guarantees about the order. To fix this problem, either the outline would have to sort the children manually by source position, or jdt.core would have to provide them in source order.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
public String[] getShowInTargetIds() {
					return new String[] { JavaUI.ID_PACKAGES };
				}
			};
		}
		if (key == IShowInTarget.class) {
			return getShowInTarget();
		}
		return null;
	}
	/**
	 * Convenience method to add the action installed under the given actionID to the
	 * specified group of the menu.
	 *
	 * @param menu		the menu manager
	 * @param group		the group to which to add the action
	 * @param actionID	the ID of the new action
	 */
	protected void addAction(IMenuManager menu, String group, String actionID) {
		IAction action= getAction(actionID);
		if (action != null) {
			if (action instanceof IUpdate)
				((IUpdate) action).update();
			if (action.isEnabled()) {
		 		IMenuManager subMenu= menu.findMenuUsingPath(group);
		 		if (subMenu != null)
		 			subMenu.add(action);
		 		else
		 			menu.appendToGroup(group, action);
			}