Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-360

Use <reference> for the enablement of the Mobile commands visibility

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Titanium Studio 1.0
    • Component/s: None
    • Labels:
      None

      Description

      This kind of code appears in our mobile plugin.xml many times:

       
               <command	
                     commandId="com.appcelerator.titanium.mobile.command.install.blackberry"	
                     style="push">	
                  <visibleWhen	
                        checkEnabled="false">		
                     <iterate	
                           ifEmpty="false">	
                        <and>	
                           <test	
                                 property="org.eclipse.core.resources.projectNature"	
                                 value="com.appcelerator.titanium.mobile.nature">	
                           </test>	
                           <test	
                                 property="com.appcelerator.titanium.core.project.isBlackBerryDeployTarget"	
                                 value="true">	
                           </test>	
                        </and>	
                     </iterate>	
                  </visibleWhen>	
               </command>

      We need to replace the test with the use of a <refernce> so it can be re-used across the xml.

        Attachments

          Activity

            People

            • Assignee:
              mxia Michael Xia
              Reporter:
              sgibly Shalom Gibly
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: