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

schema.contexts.exsd Maven / Gradle / Ivy

The newest version!




      
         
      
      
         <p>
The <code>org.eclipse.ui.contexts</code> extension point is used to declare contexts and associated elements.
</p>
      
   

   
      
         
            
         
         
            
               
                  An optional identifier of the extension instance.
               
            
         
         
            
               
                  An optional name of the extension instance.
               
               
                  
               
            
         
         
            
               
                  A fully qualified identifier of the target extension point.
               
            
         
      
   

   
      
         
            This element is used to define contexts. If more than one of these elements exist with the same <code>id</code> attribute, only the last declared element (in order of reading the registry) is considered valid.
         
      
      
         
            
               
                  A translatable short description of this context for display in the UI.
               
               
                  
               
            
         
         
            
               
                  The unique identifier of this context.
               
            
         
         
            
               
                  The translatable name of this context for display in the UI.
               
               
                  
               
            
         
         
            
               
                  The unique identifier of the parent of this context.
               
               
                  
               
            
         
      
   

   
      
         
      
      
3.0
      
   

   
      
         
      
      
         <p>
The <code>plugin.xml</code> file in the <code>org.eclipse.ui</code> plugin makes use of the <code>org.eclipse.ui.contexts</code> extension point.
</p>
      
   

   
      
         
      
      
         <p>
In general, it is preferrably to declare all contexts statically (in <code>plugin.xml</code>).  This is so that users can use them in key bindings.  However, it is possible to declare contexts at run-time.  To do this, retrieve the <code>org.eclipse.ui.commands.IContextService</code> from a workbench component, call <code>getContext(contextId)</code> and then call <code>Context#define(...)</code>.
Contexts defined programmatically must be cleaned up by the plugin if it is unloaded.
</p>
      
   



   
      
         
      
      
         Copyright (c) 2000, 2007 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 - 2025 Weber Informatics LLC | Privacy Policy