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 252343 Details for
Bug 56062
[source lookup] Duplicate source lookup should indicate full location of duplicate
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]
Platform SourceElementLabelProvider Adapter
Bug 56062 Platform SourceElementLabelProvider.patch (text/plain), 1.93 KB, created by
Sarika Sinha
on 2015-04-13 10:21:40 EDT
(
hide
)
Description:
Platform SourceElementLabelProvider Adapter
Filename:
MIME Type:
Creator:
Sarika Sinha
Created:
2015-04-13 10:21:40 EDT
Size:
1.93 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.debug.ui >diff --git ui/org/eclipse/debug/internal/ui/sourcelookup/SourceElementLabelProvider.java ui/org/eclipse/debug/internal/ui/sourcelookup/SourceElementLabelProvider.java >index e2de146..0812b73 100644 >--- ui/org/eclipse/debug/internal/ui/sourcelookup/SourceElementLabelProvider.java >+++ ui/org/eclipse/debug/internal/ui/sourcelookup/SourceElementLabelProvider.java >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2005 IBM Corporation and others. >+ * Copyright (c) 2000, 2015 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,6 +11,7 @@ > package org.eclipse.debug.internal.ui.sourcelookup; > > import org.eclipse.core.resources.IResource; >+import org.eclipse.core.runtime.IAdaptable; > import org.eclipse.jface.viewers.ILabelProvider; > import org.eclipse.jface.viewers.LabelProvider; > import org.eclipse.swt.graphics.Image; >@@ -49,6 +50,12 @@ > */ > @Override > public Image getImage(Object element) { >+ if (element instanceof IAdaptable) { >+ SourceElementLabelProvider lp = ((IAdaptable) element).getAdapter(SourceElementLabelProvider.class); >+ if (lp != null) { >+ return lp.getImage(element); >+ } >+ } > return getWorkbenchLabelProvider().getImage(element); > } > /* (non-Javadoc) >@@ -58,6 +65,11 @@ > public String getText(Object element) { > if (element instanceof IResource) { > return SourceElementWorkbenchAdapter.getQualifiedName(((IResource)element).getFullPath()); >+ } else if (element instanceof IAdaptable) { >+ SourceElementLabelProvider lp = ((IAdaptable) element).getAdapter(SourceElementLabelProvider.class); >+ if (lp != null) { >+ return lp.getText(element); >+ } > } > return getWorkbenchLabelProvider().getText(element); > }
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 56062
:
249815
|
249920
|
252111
|
252112
|
252338
| 252343