1 /* |
1 /* |
2 * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
44 if (instance == null) |
44 if (instance == null) |
45 instance = new JavadocMemberEnter(context); |
45 instance = new JavadocMemberEnter(context); |
46 return (JavadocMemberEnter)instance; |
46 return (JavadocMemberEnter)instance; |
47 } |
47 } |
48 |
48 |
49 public static void preRegister(final Context context) { |
49 public static void preRegister(Context context) { |
50 context.put(memberEnterKey, new Context.Factory<MemberEnter>() { |
50 context.put(memberEnterKey, new Context.Factory<MemberEnter>() { |
51 public MemberEnter make() { |
51 public MemberEnter make(Context c) { |
52 return new JavadocMemberEnter(context); |
52 return new JavadocMemberEnter(c); |
53 } |
53 } |
54 }); |
54 }); |
55 } |
55 } |
56 |
56 |
57 final DocEnv docenv; |
57 final DocEnv docenv; |