Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Plug-in Developer Guide
Previous Page Home Next Page

Marker Image Providers

Identifier:
org.eclipse.ui.ide.markerImageProviders

Since:
3.0 (originally added in release 2.1 as org.eclipse.ui.markerImageProviders)

Description:
The markerImageProvider extension point is the point for specifying the images for marker types in the defining plug-in.

Configuration Markup:

<!ELEMENT extension ( imageprovider*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT imageprovider EMPTY>

<!ATTLIST imageprovider

id         CDATA #REQUIRED

markertype IDREF #REQUIRED

icon       CDATA #IMPLIED

class      CDATA #IMPLIED

>

  • id - a unique name that can be used to identify this markerImageProvider.
  • markertype - The markertype is the id of the type defined in org.eclipse.core.resources.IMarker that this definition is applied to.
  • icon - If there is no class defined the icon attribute is used to define the icon that will be applied to this type of marker.
  • class - The class is the fully qualifed name of the class that will be used to look up an image. This class must implement IMarkerImageProvider.

Examples:
The following an example of the two forms of marker image providers. The first one is one where the image does not change and is declared directly. For the second one the image must be determined by an instance of IMarkerImageProvider.


  <extension
         point=
"org.eclipse.ui.ide.markerImageProviders"
>
      <imageprovider
        markertype=
"org.eclipse.core.resources.taskmarker"

            icon=
"taskicon.gif"

            id=
"myPlugin.declarativeMarkerProvider"
>
      </imageprovider>
      <imageprovider
            markertype=
"org.eclipse.core.resources.problemmarker"

            class=
"myPlugin.MyIMarkerImageProvider"

            id=
"myPlugin.implementedMarkerProvider"
>
      </imageprovider>
   </extension>

Supplied Implementation:
Image providers are currently registered for the bookmarks, tasks and problem markers.


Copyright (c) 2002, 2006 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 https://www.eclipse.org/legal/epl-v10.html


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire