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 11522 Details for
Bug 65464
[Problems] (regression) Not possible to add contributions to ProblemMarker or ConcreteMarker without referencing internal classes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch for ConcreteMarker.java
ConcreteMarker.java.patch (text/plain), 1.45 KB, created by
Gunnar Wagenknecht
on 2004-06-03 03:05:33 EDT
(
hide
)
Description:
Patch for ConcreteMarker.java
Filename:
MIME Type:
Creator:
Gunnar Wagenknecht
Created:
2004-06-03 03:05:33 EDT
Size:
1.45 KB
patch
obsolete
>Index: ConcreteMarker.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ConcreteMarker.java,v >retrieving revision 1.1 >diff -u -r1.1 ConcreteMarker.java >--- ConcreteMarker.java 9 Dec 2003 14:17:24 -0000 1.1 >+++ ConcreteMarker.java 3 Jun 2004 07:02:41 -0000 >@@ -13,6 +13,7 @@ > import org.eclipse.core.resources.IMarker; > import org.eclipse.core.resources.IResource; > import org.eclipse.core.runtime.CoreException; >+import org.eclipse.core.runtime.IAdaptable; > > /** > * This is a concrete class that stores the same type of information as the IMarkers >@@ -21,7 +22,7 @@ > * in the problems view). This marker class stores the fields in the most efficient form > * for sorting and display, but necessarily removes some generality from IMarker. > */ >-public class ConcreteMarker { >+public class ConcreteMarker implements IAdaptable { > > private String description; > private String resourceName; >@@ -97,4 +98,17 @@ > public int hashCode() { > return getMarker().hashCode(); > } >+ >+ >+ /* (non-Javadoc) >+ * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class) >+ */ >+ public Object getAdapter(Class adapter) { >+ >+ // should adapt to IMarker to allow object contributions (bug 65464) >+ if(IMarker.class == adapter) >+ return getMarker(); >+ >+ return 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 65464
: 11522 |
11626