Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 39192 Details for
Bug 137975
[Polish item] Add a preference to disable globally the javadoc attachments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_137975.txt (text/plain), 4.61 KB, created by
Olivier Thomann
on 2006-04-21 13:35:32 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-04-21 13:35:32 EDT
Size:
4.61 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/JavaCorePreferenceInitializer.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaCorePreferenceInitializer.java,v >retrieving revision 1.34 >diff -u -r1.34 JavaCorePreferenceInitializer.java >--- model/org/eclipse/jdt/internal/core/JavaCorePreferenceInitializer.java 29 Mar 2006 03:08:48 -0000 1.34 >+++ model/org/eclipse/jdt/internal/core/JavaCorePreferenceInitializer.java 21 Apr 2006 17:23:43 -0000 >@@ -90,6 +90,9 @@ > // Time out for parameter names > defaultOptionsMap.put(JavaCore.TIMEOUT_FOR_PARAMETER_NAME_FROM_ATTACHED_JAVADOC, "50"); //$NON-NLS-1$ > >+ // enable external javadoc attachment >+ defaultOptionsMap.put(JavaCore.ENABLE_EXTERNAL_JAVADOC_ATTACHMENTS, JavaCore.ENABLED); >+ > // Store default values to default preferences > IEclipsePreferences defaultPreferences = ((IScopeContext) new DefaultScope()).getNode(JavaCore.PLUGIN_ID); > for (Iterator iter = defaultOptionsMap.entrySet().iterator(); iter.hasNext();) { >Index: model/org/eclipse/jdt/internal/core/BinaryType.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java,v >retrieving revision 1.144 >diff -u -r1.144 BinaryType.java >--- model/org/eclipse/jdt/internal/core/BinaryType.java 6 Apr 2006 01:47:51 -0000 1.144 >+++ model/org/eclipse/jdt/internal/core/BinaryType.java 21 Apr 2006 17:23:43 -0000 >@@ -1059,6 +1059,12 @@ > if (baseLocation == null) { > return null; > } >+ if ("http".equals(baseLocation.getProtocol())) { //$NON-NLS-1$ >+ String option = this.getJavaProject().getOption(JavaCore.ENABLE_EXTERNAL_JAVADOC_ATTACHMENTS, true); >+ if (JavaCore.DISABLED.equals(option)) { >+ return null; >+ } >+ } > StringBuffer pathBuffer = new StringBuffer(baseLocation.toExternalForm()); > > if (!(pathBuffer.charAt(pathBuffer.length() - 1) == '/')) { >Index: model/org/eclipse/jdt/internal/core/JavaModelManager.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelManager.java,v >retrieving revision 1.335 >diff -u -r1.335 JavaModelManager.java >--- model/org/eclipse/jdt/internal/core/JavaModelManager.java 6 Apr 2006 15:22:52 -0000 1.335 >+++ model/org/eclipse/jdt/internal/core/JavaModelManager.java 21 Apr 2006 17:23:43 -0000 >@@ -1477,6 +1477,9 @@ > > // Time out for parameter names > defaultOptionsMap.put(JavaCore.TIMEOUT_FOR_PARAMETER_NAME_FROM_ATTACHED_JAVADOC, "50"); //$NON-NLS-1$ >+ >+ // enable external javadoc attachment >+ defaultOptionsMap.put(JavaCore.ENABLE_EXTERNAL_JAVADOC_ATTACHMENTS, JavaCore.ENABLED); > > return new Hashtable(defaultOptionsMap); > } >Index: model/org/eclipse/jdt/core/JavaCore.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java,v >retrieving revision 1.539 >diff -u -r1.539 JavaCore.java >--- model/org/eclipse/jdt/core/JavaCore.java 6 Apr 2006 15:22:52 -0000 1.539 >+++ model/org/eclipse/jdt/core/JavaCore.java 21 Apr 2006 17:23:43 -0000 >@@ -935,7 +935,12 @@ > */ > public static final String TIMEOUT_FOR_PARAMETER_NAME_FROM_ATTACHED_JAVADOC = PLUGIN_ID + ".timeoutForParameterNameFromAttachedJavadoc"; //$NON-NLS-1$ > >- >+ /** >+ * Possible configurable option ID. >+ * @see #getDefaultOptions() >+ * @since 3.2 >+ */ >+ public static final String ENABLE_EXTERNAL_JAVADOC_ATTACHMENTS = PLUGIN_ID + ".enable.external.javadoc.attachments"; //$NON-NLS-1$ > // *************** Possible values for configurable options. ******************** > > /** >@@ -2386,6 +2391,14 @@ > * - possible values: "<n>", where n is an integer greater than or equal to 0 > * - default: "50" > * >+ * JAVACORE / Enabling the external javadoc attachment. >+ * When disabled, external javadoc attachment are not used to retrieve the javadoc of java elements. >+ * External javadoc attachment are using the http protocol. Other protocols like file or jar would be ignored >+ * by this option. >+ * - option id: "org.eclipse.jdt.core.enable.external.javadoc.attachments" >+ * - possible values: { "enabled", "disabled" } >+ * - default: "enabled" >+ * > * FORMATTER / Inserting New Line Before Opening Brace > * When Insert, a new line is inserted before an opening brace, otherwise nothing > * is inserted
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 137975
:
39192
|
39287