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 189860 Details for
Bug 338182
It should be possible to attach source during OSGI debugging
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Hack to demonstrate approach #1
clipboard.txt (text/plain), 3.00 KB, created by
Curtis Windatt
on 2011-02-25 16:35:49 EST
(
hide
)
Description:
Hack to demonstrate approach #1
Filename:
MIME Type:
Creator:
Curtis Windatt
Created:
2011-02-25 16:35:49 EST
Size:
3.00 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.pde.core >Index: src/org/eclipse/pde/internal/core/RequiredPluginsInitializer.java >=================================================================== >RCS file: /cvsroot/eclipse/pde/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/RequiredPluginsInitializer.java,v >retrieving revision 1.19 >diff -u -r1.19 RequiredPluginsInitializer.java >--- src/org/eclipse/pde/internal/core/RequiredPluginsInitializer.java 27 May 2009 20:25:23 -0000 1.19 >+++ src/org/eclipse/pde/internal/core/RequiredPluginsInitializer.java 25 Feb 2011 21:24:53 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2008 IBM Corporation and others. >+ * Copyright (c) 2000, 2011 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -11,12 +11,8 @@ > package org.eclipse.pde.internal.core; > > import org.eclipse.core.resources.IProject; >-import org.eclipse.core.runtime.CoreException; >-import org.eclipse.core.runtime.IPath; >-import org.eclipse.jdt.core.ClasspathContainerInitializer; >-import org.eclipse.jdt.core.IClasspathContainer; >-import org.eclipse.jdt.core.IJavaProject; >-import org.eclipse.jdt.core.JavaCore; >+import org.eclipse.core.runtime.*; >+import org.eclipse.jdt.core.*; > import org.eclipse.pde.core.plugin.IPluginModelBase; > import org.eclipse.pde.core.plugin.PluginRegistry; > >@@ -50,4 +46,29 @@ > public String getDescription(IPath containerPath, IJavaProject project) { > return PDECoreMessages.RequiredPluginsClasspathContainer_description; > } >+ >+ /* (non-Javadoc) >+ * @see org.eclipse.jdt.core.ClasspathContainerInitializer#getSourceAttachmentStatus(org.eclipse.core.runtime.IPath, org.eclipse.jdt.core.IJavaProject) >+ */ >+ public IStatus getSourceAttachmentStatus(IPath containerPath, IJavaProject project) { >+ // Allow custom source attachments for classpath containers (Bug 338182) >+ return Status.OK_STATUS; >+ } >+ >+ /* (non-Javadoc) >+ * @see org.eclipse.jdt.core.ClasspathContainerInitializer#canUpdateClasspathContainer(org.eclipse.core.runtime.IPath, org.eclipse.jdt.core.IJavaProject) >+ */ >+ public boolean canUpdateClasspathContainer(IPath containerPath, IJavaProject project) { >+ // The only supported update is to modify the source attachment >+ return true; >+ } >+ >+ /* (non-Javadoc) >+ * @see org.eclipse.jdt.core.ClasspathContainerInitializer#requestClasspathContainerUpdate(org.eclipse.core.runtime.IPath, org.eclipse.jdt.core.IJavaProject, org.eclipse.jdt.core.IClasspathContainer) >+ */ >+ public void requestClasspathContainerUpdate(IPath containerPath, IJavaProject project, IClasspathContainer containerSuggestion) throws CoreException { >+ // The only supported update is to modify the source attachment >+ JavaCore.setClasspathContainer(containerPath, new IJavaProject[] {project}, new IClasspathContainer[] {containerSuggestion}, null); >+ } >+ > }
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 338182
: 189860 |
189861