Bug 55827 [Contributions] Need to remove refs to Platform.getDebugOption from JFace
build I20040323 Standalone JFace applications are currently broken due to several refs to Platform.getDebugOption in JFace, which is only available if Eclipse is running. Should have static flags for the various debug options in JFace, and initialize them from the Workbench.
bundles/org.eclipse.jface/src/org/eclipse/jface/action/CoolBarManager.java
IContributionItem[] currentItems = getItems();
        for (int i = 0; i < currentItems.length; i++) {
            IContributionItem currentItem = currentItems[i];
            
            
            if (currentItem == null) {
                continue;
            }
            
            String secondId = currentItem.getId();
            if (firstId.equals(secondId)) {
                if ("true".equalsIgnoreCase(Platform 
                        .getDebugOption("org.eclipse.jface/trace/toolbarDisposal"))) { 
                    System.out.println("Trying to add a duplicate item."); 
                    new Exception().printStackTrace(System.out);
                    System.out.println("DONE --------------------------"); 
                }
                return false;
            }
        }
        
        return true;
    }
    /**
     * Positions the list iterator to the end of all the separators. Calling
     * <code>next()</code> the iterator should return the immediate object
     * following the last separator.
     * 
     * @param iterator
     *            the list iterator.