Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 075E911710 for ; Fri, 10 May 2013 17:08:57 +0000 (UTC) Received: (qmail 89403 invoked by uid 500); 10 May 2013 17:08:56 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 89377 invoked by uid 500); 10 May 2013 17:08:56 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 89367 invoked by uid 99); 10 May 2013 17:08:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 17:08:56 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FRT_ADOBE2,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of carlos.rovira@gmail.com designates 209.85.212.172 as permitted sender) Received: from [209.85.212.172] (HELO mail-wi0-f172.google.com) (209.85.212.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 17:08:50 +0000 Received: by mail-wi0-f172.google.com with SMTP id hm14so859730wib.5 for ; Fri, 10 May 2013 10:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=/9xL9Xt+Qu3KU85DeP/WSPulcvaVWyc/Jy/3hqse6rc=; b=By43OoNEFmdYea/EQFzSy2YlkfOBZYTA7oxwV5DvSn13irlN+OC8M5qZRXE9zE0E0p PUhqB9aG7oZWkI+0twps9jCtxmez687SrPRtK0dC1cAq9apuAGPz8KCI0b6fYfOyhlB2 G5zLfc9+N6KmcOMLJvG6JTegBIvvHgE7ZDFbYdoAi6qNjyAM5uzGKFSSUc1kd9o1rYED iOuix+Kch5f7ZQ1XcDltyuaQohpH8MgCm8SQ7uHTHfwKnGozNIDh+Ljr6aVoR7zsBvII 4gTq/xLLSZMzhkUO8y4Aj9D5CgzoY68k8rZL3zvt5p0IHF6rLOYGtRoAwVTXrmLo5PNq /apA== MIME-Version: 1.0 X-Received: by 10.180.198.175 with SMTP id jd15mr5261186wic.28.1368205710055; Fri, 10 May 2013 10:08:30 -0700 (PDT) Sender: carlos.rovira@gmail.com Received: by 10.180.184.112 with HTTP; Fri, 10 May 2013 10:08:29 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 May 2013 19:08:29 +0200 X-Google-Sender-Auth: wGVclX5OoUJtjtw82C3nebXcVD4 Message-ID: Subject: Re: [OT] Set default prefix for a custom MXML namespace in Flash Builder 4.7? From: Carlos Rovira To: dev@flex.apache.org Content-Type: multipart/alternative; boundary=047d7b62495653df2a04dc6037b4 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b62495653df2a04dc6037b4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Fred, I tried what you said, and change all my libraries to match waht you said, rebuild all, closed FB and relaunch (since this kind of things are cached), but no luck my namespaces are: library://ns.codeoscopic.com/riality with prefix "r" library://ns.codeoscopic.com/riality/swiz with prefix "rs" tried to change to: library://rs.codeoscopic.com/riality/swiz and library://r.codeoscopic.com/riality but had no luck :( I think this is a regression in Flash Builder 4.7, since this was working in 4.6 Thanks for your sugestion :) C. 2013/5/10 Fr=E9d=E9ric THOMAS > Did you try to declare your NS like http://my.domain/mylib/ns instead of > http://my.domain/ns/mylib, IIRC it works like that. > > -Fred > > -----Message d'origine----- From: Cosma Colanicchia > Sent: Friday, May 10, 2013 6:12 PM > To: dev@flex.apache.org > Subject: Re: [OT] Set default prefix for a custom MXML namespace in Flash > Builder 4.7? > > > You type "<" and the name of a component, let's say MyCustomComponent, th= at > is in the library with a namespace manifest. > > FB will add, in the root element of the mxml, a declaration > (xmlns:ns=3D"") and apply that prefix (" ") > > There's no way, AFAK, to associate to each uri a preferred prefix, to avo= id > fixing the ns, ns1 ecc. generated prefixes. > > > > 2013/5/10 Alex Harui > > I guess I still don't understand the steps. What are you typing and how >> is >> FB responding? >> >> >> On 5/10/13 8:37 AM, "Cosma Colanicchia" wrote: >> >> > I am creating an swc library that includes a namespace manifest, using >> the >> > documented COMPC compiler API. >> > >> > When referencing and using a library with a manifest, the first time y= ou >> > use a component in a MXML document FB will autodeclare the namespace u= ri >> > for you, using a prefix like "ns", "ns1", ecc. >> > >> > I was searching for a way to tell FB that, for the namespace uri " >> > http://my.domain/ns/mylib" I'd like to use the prefix, >> without >> > declaring it in advance or correcting the declaration after each first >> > usage on new MXML documents (like FB already does for standard mx/s/fx >> > namespaces). >> > >> > >> > >> > >> > 2013/5/10 Alex Harui >> > >> >> None of us worked on FB, so we don't know how it works. I'm not clea= r >> what >> >> the steps you are using to reproduce this issue is. Are you just >> >> typing >> >> xmlns in an MXML file or is it the auto-complete suggestions or >> something >> >> else? >> >> >> >> >> >> On 5/10/13 5:04 AM, "Carlos Rovira" >> wrote: >> >> >> >>> Hi Cosma, >> >>> >> >>> very interesting, I have the same issue with my as3 libraries. My >> defined >> >>> library namespace is "r" but FB throws "ns" >> >>> >> >>> I couldn't get this to work again since FB4.7 >> >>> >> >>> Maybe Alex, Carol or Peter could point what's happening and if >> something >> >>> could be done to fixit or is something >> >>> that only a patch in FB could solve. >> >>> >> >>> >> >>> >> >>> 2013/5/10 Cosma Colanicchia >> >>> >> >>>> I have a SWC library declaring a custom namespace, when I use it I'= d >> >> like >> >>>> to have FB suggest a custom prefix declaration in MXML. >> >>>> >> >>>> Currently, FB is able to provide the default "s", "fx" and "mx" >> prefixes >> >>>> automatically, any other is declared as "ns", "ns1" and so on. >> >>>> >> >>>> In previous version there was an undocumented way using a design.xm= l >> to >> >> set >> >>>> a default in the swc library itself, but was probably part of the >> design >> >>>> view feature and doesn't work anymore in FB 4.7 (see [1] for >>>> >> details). >> >>>> >> >>>> Documentation of FB 4.7 [2] about the file template customization >> >> describes >> >>>> an ${xmlns} token (for new MXML components) that should be gather >> >>>> info >> >> from >> >>>> some namespace preferences, but I can't find any such preferences >> >> settings. >> >>>> >> >>>> I also found that the only place in Flash Builder folders with >> >> references >> >>>> these prefixes settings in clear text is the plugin.xml file of >> >>>> the com.adobe.flexide.mxml.core_4.**7.0.349722 plugin , in the >> >>>> "com.adobe.flexbuilder.**codemodel.**mxmlNamespaceRegistry" >> extension, I >> >> tried >> >>>> adding additional MXMLNamespace nodes specifiny the prefix and uri, >> >> with no >> >>>> effects (SDK contains the namespaces uri in various XML files, but = I >> >> found >> >>>> no traces of the default prefixes). >> >>>> >> >>>> Anyone had luck? Am I the only one trying to use custom prefix? :) >> >>>> >> >>>> >> >>>> [1] >> >>>> >> >>>> >> >> >> http://stackoverflow.com/**questions/6453919/how-can-i-** >> make-flashbuilder-use-a- >> >>>> custom-namespace-prefix/**6456120#6456120 >> >>>> >> >>>> [2] >> >>>> >> >>>> >> >> >> http://help.adobe.com/en_US/**flashbuilder/using/** >> WSe4e4b720da9dedb5344c6f711358 >> >>>> acdda1d-7fff.html#**WSe4e4b720da9dedb56fd3caca12e6**bb494bb-7fee >> >>>> >> >>> >> >>> >> >> >> >> -- >> >> Alex Harui >> >> Flex SDK Team >> >> Adobe Systems, Inc. >> >> http://blogs.adobe.com/aharui >> >> >> >> >> >> -- >> Alex Harui >> Flex SDK Team >> Adobe Systems, Inc. >> http://blogs.adobe.com/aharui >> >> >> > --=20 Carlos Rovira Director de Tecnolog=EDa M: +34 607 22 60 05 F: +34 912 94 80 80 http://www.codeoscopic.com http://www.directwriter.es http://www.avant2.es --047d7b62495653df2a04dc6037b4--