Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Apparently the text box in Esri's Extension manager doesn't wrap text (10.0 SP2).

enter image description here

As a workaround, I'm trying to insert newline characters into the xml file, but haven't found anything that works.

Here's the xml:

<Extensions>
  <Extension id="AmberGIS_ExtensionMgrAddin_ExtMgrExtension" class="ExtMgrExtension" productName="Extension State Manager" showInExtensionDialog="true" autoLoad="true">
    <Description>Lets you specify extensions that will be \n turned off automatically when document closes.</Description>
  </Extension>
</Extensions>

Does anyone know how to put a newline character into the add-in xml config file?

share|improve this question

2 Answers 2

up vote 8 down vote accepted

I should have searched SO first, I would have found this answer.

This seems to work:

<Extensions>
  <Extension id="AmberGIS_ExtensionMgrAddin_ExtMgrExtension" class="ExtMgrExtension" productName="Extension State Manager" showInExtensionDialog="true" autoLoad="true">
    <Description>Lets you specify extensions that will be &#13;&#10; turned off automatically when document closes.</Description>
  </Extension>
</Extensions>
share|improve this answer
3  
Shame on you Kirk!!! –  Dan Patterson Jul 29 '11 at 21:51
    
Kirk to the rescue! Glad I found this thread it was driving me nuts not getting the text to wrap onto a new line. –  Hornbydd Apr 3 at 17:46

The extension description can also be set as a public property and coded directly using:

ESRI.ArcGIS.esriSystem.IExtensionConfig.Description

I've found this useful for linking the description to ongoing updates (e.g. new versions) so that I don't have to go back and edit it each time.

EDIT: Note - this will not work for the new add-ins, which must be edited within the XML metadata.

share|improve this answer
1  
Does that work with add-in extensions too? I don't see anything I can override in ESRI.ArcGIS.Desktop.AddIns.Extension –  Kirk Kuykendall Jul 29 '11 at 22:16
    
After reading this: help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/… it appears that for the new add-ins you have to manage this type of this using the XML. Good to know - I have to port some older extensions over to add-ins soon. –  Nick Ochoski Jul 29 '11 at 22:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.