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

schema.preferenceTransfer.exsd Maven / Gradle / Ivy

There is a newer version: 3.207.0
Show newest version




      
         
      
      
         The workbench provides support for maintaining preferences.
The purpose of this extension point is to allow plug-ins to add
specific support for saving and loading of specific groups of preferences.
Typically this is used for operations such as Import and Export.
      
   

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

   
      
         
            A transfer is an element used for specifying a group of preferences that can be exported together.
         
      
      
         
            
            
         
         
            
               
                  a unique name that will be used to identify this transfer
               
            
         
         
            
               
                  a translatable name that will be used in UI when listing this item
               
               
                  
               
            
         
         
            
               
                  a relative name of the icon that will be used when displaying the transfer
               
            
         
      
   

   
      
         
            
         
         
            An optional subelement whose body should represent a short description
of the transfer engine functionality.
         
      
   

   
      
         
            a subelement which represents a <tt>org.eclipse.core.runtime.preferences.IPreferenceFilter</tt>.  It specifies 1 or more mappings from a scope <tt>org.eclipse.core.runtime.preferences.IScope</tt> to 0 or more nodes. 0 or more keys are specified per node.  The rules for export and import behaviour for a filter can be found in the specifications in <tt>org.eclipse.core.runtime.preferences.IPreferenceFilter</tt>.
         
      
      
         
            
         
         
            
               
                  an attribute specifying the name of the scope to map the provided nodes and keys to.
Generally the scopes defined in org.eclipse.core.runtime.preferences and org.eclipse.core.resources are used. They are 
configuration (org.eclipse.core.runtime.preferences.ConfigurationScope.SCOPE)
instance (org.eclipse.core.runtime.preferences.InstanceScope.SCOPE)
default (org.eclipse.core.runtime.preferences.DefaultScope.SCOPE)
default (org.eclipse.core.resources.ProjectScope.SCOPE)
               
            
         
      
   

   
      
         
            a subelement specifing the nodes and keys that are to be transferred for a given scope
         
      
      
         
            
         
         
            
               
                  an attribute specifing the preference node within the given scope to be transferred. This preference node will correspond to the bundle id of the plug-in that defines the preference.
               
            
         
      
   

   
      
         
            
               
                  Specifies the preference key to be transferred. Specifying the key attribute without specifying a matching node will result in a runtime error.
               
            
         
         
            
               
                  If match is set to "prefix", all keys on the preference node that start with the specified name will be transferred. If the match type is not specified, only keys equal to the name will be included. Added in 3.6.
               
            
            
               
                  
                  
               
            
         
      
   

   
      
         
            A settings transfer is the definition of a transfer of internal state from one workbench to another. Added in 3.3.
         
      
      
         
            
         
         
            
               
                  The human readable name of the transfer.
               
               
                  
               
            
         
         
            
               
                  The id of the transfer.
               
            
         
         
            
               
                  The subclass of <code>org.eclipse.ui.preferences.SettingsTransfer</code> that specifies this transfer.
               
               
                  
               
            
         
         
            
               
                  The help context for the transfer. See IWorkbench#getHelpSystem().
               
            
         
      
   

   
      
         
      
      
         3.1
      
   

   
      
         
      
      
         <p>
 Example that export all transfers, exports all nodes for specified scopes.
</p>
<p>
<pre>
   <extension
         point="org.eclipse.ui.preferenceTransfer">
       <transfer
            icon="XYZ.png"
            name="Export All Transfer Test"
            id="org.eclipse.ui.tests.all">
            <mapping scope="instance"/>
      <mapping scope="configuration"/>
            <mapping scope="project"/>
   <description>
             Export all tranfer, exports all nodes for specified scopes
      </description>
    </transfer>
   </extension>
</pre>
</p>
<p>
   Bare Bones Transfer only provides required info and no more.  
</p>
<p>
<pre>
   <extension
         point="org.eclipse.ui.preferenceTransfer">
       <transfer
            name="Bare Bones Transfer Test"
            id="org.eclipse.ui.tests.all">
            <mapping scope="instance"/>
    </transfer>
   </extension>
</pre>
</p>
<p>
   Example that exports many combinations of keys and nodes 
</p>
<p>
<pre>
   <extension
         point="org.eclipse.ui.preferenceTransfer">
       <transfer
            icon="XYZ.png"
            name="Export many preferences"
            id="org.eclipse.ui.tests.all">
            <mapping scope="instance">
                <entry node="org.eclipse.ui">
                   <key name="DOCK_PERSPECTIVE_BAR"/>
                </entry>
                <entry node="org.eclipse.ui.workbench">
                   <key name="RUN_IN_BACKGROUND"/>
                   <key name="OPEN_" match="prefix"/>
                </entry>   
                <entry node="org.eclipse.ui.ide"/>
                <entry node="org.eclipse.core.resources"/>
            </mapping>
      <mapping scope="configuration"/>
      <description>
              Export many combinations of keys and nodes
        </description>
    </transfer>
   </extension>
</pre>
</p>
      
   



   
      
         
      
      
         Copyright (c) 2005, 2009 IBM Corporation and others.<br>

This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0 which accompanies
this distribution, and is available at <a 
href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-v20.html</a>/

SPDX-License-Identifier: EPL-2.0
      
   






© 2015 - 2025 Weber Informatics LLC | Privacy Policy