Class EMFCompareContentMergeViewerResourceBundle

java.lang.Object
java.util.ResourceBundle
org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.EMFCompareContentMergeViewerResourceBundle

public class EMFCompareContentMergeViewerResourceBundle
extends java.util.ResourceBundle
This resource bundle wraps the resource bundle of an EMF Compare content merge viewer to default to the resource bundle of the Eclipse Compare TextMergeViewer for any non-defined keys. The TextMergeViewer already defines the label, tooltip and image for the following actions:
  • CopyLeftToRight
  • CopyRightToLeft
  • CopyDiffLeftToRight
  • CopyDiffRightToLeft
  • NextDiff
  • PrevDiff
  • NextChange
  • PrevChange
  • EnableAncestor
  • IgnoreAncestor
  • SwitchLeftAndRight (added in Oxygen)
Specifically, this class avoids the problem of re-defining the images which may change between versions, e.g., the change from gif to png done in Oxygen.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.util.ResourceBundle

    java.util.ResourceBundle.Control
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.util.ResourceBundle fallbackMergeViewerResources  
    protected java.util.ResourceBundle mergeViewerResources  

    Fields inherited from class java.util.ResourceBundle

    parent
  • Constructor Summary

    Constructors 
    Constructor Description
    EMFCompareContentMergeViewerResourceBundle​(java.util.ResourceBundle bundle)  
  • Method Summary

    Modifier and Type Method Description
    java.util.Enumeration<java.lang.String> getKeys()  
    protected java.lang.Object handleGetObject​(java.lang.String key)  

    Methods inherited from class java.util.ResourceBundle

    clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • handleGetObject

      protected java.lang.Object handleGetObject​(java.lang.String key)
      Specified by:
      handleGetObject in class java.util.ResourceBundle
    • getKeys

      public java.util.Enumeration<java.lang.String> getKeys()
      Specified by:
      getKeys in class java.util.ResourceBundle