Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gmf-dev] [GMF - API CHANGE] Bugzilla 113812: Deprecating DiagramResourceManager.


Description:
Deprecating org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramResourceManager.  This is in conjunction with the changes made to the AbstractUIResourceManager deprecations.  Resources will be accessed more similar to how it is in other Eclipse code.


New API Availability:
This afternoon in the GMF repository.

Old API Removal:

Dec. 26, 2005, unless clients request more time.


Tracking:        
               
Bugzilla 113812

Clients Taken Care of:      
 
GMF

Other Clients' Action:

Migrate all references to DiagramResourceManager as indicated below:
getI18NString("a.b.c");
getString("a.b.c");
DiagramUIMessages.a_b_c
* If the string you want is no longer available here (I cleaned up a few that weren't used in the diagram layer), find it in the messages.properties file and copy it to your plugin.
getImage(DiagramResourceManager.THE_IMAGE);
createImage(DiagramResourceManager.THE_IMAGE);
getImage(DiagramResourceManager.THE_IMAGE);
createImageDescriptor(DiagramResourceManager.THE_IMAGE);
Use org.eclipse.gmf.runtime.diagram.ui.l10n.SharedImages:

Only the following images are now public (based on what was used in Aurora):
SharedImages.get(SharedImages.IMG_ERROR)
SharedImages.get(SharedImages.IMG_TEXT)
SharedImages.get(SharedImages.IMG_NOTE)

Only the following image descriptors are now public (based on what was used in Aurora):
SharedImages.DESC_ERROR
SharedImages.DESC_TEXT
SharedImages.DESC_NOTE
SharedImages.DESC_NOTE_ATTACHMENT

If the image you want is not available, copy the icon to your plugin and manage it yourself, or if you think it should be available publicly in the diagram layer, let me know.
getFont() Now internal.  No external clients that I am aware of.
getColor(x) org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry.getColor(x)


Let me know if you have any questions.

Thanks,

Cherie

Back to the top