diff -r 94e67bed460d -r ccbe7ffdd867 src/share/classes/com/sun/tools/doclets/internal/toolkit/util/IndexBuilder.java --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/IndexBuilder.java Fri Feb 22 18:19:51 2013 +0000 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/IndexBuilder.java Sun Feb 24 11:36:58 2013 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -63,6 +63,11 @@ */ private boolean classesOnly; + /** + * Indicates javafx mode. + */ + private boolean javafx; + // make ProgramElementDoc[] when new toArray is available protected final Object[] elements; @@ -115,6 +120,7 @@ } this.noDeprecated = noDeprecated; this.classesOnly = classesOnly; + this.javafx = configuration.javafx; buildIndexMap(configuration.root); Set set = indexmap.keySet(); elements = set.toArray(); @@ -209,6 +215,12 @@ * Should this doc element be added to the index map? */ protected boolean shouldAddToIndexMap(Doc element) { + if (javafx) { + if (element.tags("treatAsPrivate").length > 0) { + return false; + } + } + if (element instanceof PackageDoc) // Do not add to index map if -nodeprecated option is set and the // package is marked as deprecated.