All Downloads are FREE. Search and download functionalities are using the official Maven repository.

schema.contentViewers.exsd Maven / Gradle / Ivy

There is a newer version: 3.11.0
Show newest version




      
         
      
      
         This extension point allows a plug-in to register 
viewers for specific content types. 
These viewers are used in the <samp>EditionSelectionDialog</samp> when presenting an edition of a resource or a subsection thereof. The viewer is expected to extend <samp>org.eclipse.jface.viewers.Viewer</samp>. 
However since viewers don't have a default constructor the extension point must implement the factory interface for viewers <samp>org.eclipse.compare.IViewerCreator</samp>.
      
   

   
      
         
            
         
      
      
         
            
            
         
         
            
               
                  a fully qualified identifier of the target extension point
               
            
         
         
            
               
                  an optional identifier of the extension instance
               
            
         
         
            
               
                  an optional name of the extension instance
               
               
                  
               
            
         
      
   

   
      
         
            
               
                  a unique identifier that can be used to reference the viewer
               
            
         
         
            
               
                  a fully qualified name of a class that implements a factory for the 
content viewer and implements <samp>org.eclipse.compare.IViewerCreator</samp>
               
               
                  
               
            
         
         
            
               
                  a comma separated list of file extensions e.g. "java, gif"
               
            
         
      
   

   
      
         
            A <code>contentTypeBinding</code> binds a content viewer to a content type.
         
      
      
         
            
               
                  The id of a content type defined using the <code>org.eclipse.core.contenttype.contentTypes</code> extension point.
               
               
                  
               
            
         
         
            
               
                  The id of a content viewer defined using the <code>viewer</code> element of this extension point (i.e. <code>org.eclipse.compare.contentViewers</code>)
               
               
                  
               
            
         
      
   

   
      
         
      
      
         The following is an example of a viewer for text 
files (extension "txt"): 
<p>
<pre>
<extension point = "org.eclipse.compare.contentViewers"> 
     <viewer 
         id="org.eclipse.compare.internal.TextViewer" 
         class="org.eclipse.compare.internal.TextViewerCreator" 
         extensions="txt" 
    /> 
</extension> 
</pre>
</p>
      
   

   
      
         
      
      
         The contributed class must implement <code>org.eclipse.compare.IViewerCreator</code>
      
   


   
      
         
      
      
         The Compare UI plugin defines content viewers for 
text and images.
      
   

   
      
         
      
      
         Copyright (c) 2000, 2008 IBM Corporation and others.<br>
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 <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
      
   






© 2015 - 2024 Weber Informatics LLC | Privacy Policy