Changeset 3368


Ignore:
Timestamp:
08/13/13 11:42:09 (11 years ago)
Author:
g.georgovassilis@mpi.nl
Message:

#269 BaseRemoteService? abstracts HTTP communication away for XML services, added facility for mocking services in unit tests, moved tests into src/test

Location:
ComponentRegistry/trunk/ComponentBrowserGui
Files:
5 deleted
17 edited
25 copied

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui

    • Property svn:ignore
      •  

        old new  
        88.flexConfig.xml
        99.metadata
         10
         11libs
         12
         13.FlexUnitSettings
  • ComponentRegistry/trunk/ComponentBrowserGui/pom.xml

    r2616 r3368  
    124124            </plugin>
    125125        </plugins>
     126        <pluginManagement>
     127                <plugins>
     128                        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
     129                        <plugin>
     130                                <groupId>org.eclipse.m2e</groupId>
     131                                <artifactId>lifecycle-mapping</artifactId>
     132                                <version>1.0.0</version>
     133                                <configuration>
     134                                        <lifecycleMappingMetadata>
     135                                                <pluginExecutions>
     136                                                        <pluginExecution>
     137                                                                <pluginExecutionFilter>
     138                                                                        <groupId>
     139                                                                                org.sonatype.flexmojos
     140                                                                        </groupId>
     141                                                                        <artifactId>
     142                                                                                flexmojos-maven-plugin
     143                                                                        </artifactId>
     144                                                                        <versionRange>
     145                                                                                [3.9,)
     146                                                                        </versionRange>
     147                                                                        <goals>
     148                                                                                <goal>compile-swf</goal>
     149                                                                                <goal>test-compile</goal>
     150                                                                        </goals>
     151                                                                </pluginExecutionFilter>
     152                                                                <action>
     153                                                                        <ignore></ignore>
     154                                                                </action>
     155                                                        </pluginExecution>
     156                                                </pluginExecutions>
     157                                        </lifecycleMappingMetadata>
     158                                </configuration>
     159                        </plugin>
     160                </plugins>
     161        </pluginManagement>
    126162    </build>
    127163
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/common/components/HelpLabelButton.as

    r2515 r3368  
    11package clarin.cmdi.componentregistry.common.components
    22{
    3         import clarin.cmdi.componentregistry.services.Config;
    4        
    5         import com.adobe.net.URI;
    6        
    73        import flash.events.MouseEvent;
    84        import flash.net.URLRequest;
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/common/components/LoginLabelButton.as

    r2515 r3368  
    88        import flash.net.navigateToURL;
    99
    10         import mx.controls.Label;
    1110
    1211        public class LoginLabelButton extends LabelButton {
     
    2726                        var req:URLRequest = new URLRequest();
    2827
    29                         var uri:URI = new URI(Config.instance.serviceRootUrl);
     28                        var uri:URI  = new URI(Config.instance.serviceRootUrl);
    3029                        uri.setQueryValue("shhaaDo", "lI");
    3130                        if (viewType) {
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/importer/FileLoadedEvent.as

    r1255 r3368  
    11package clarin.cmdi.componentregistry.importer {
    2         import clarin.cmdi.componentregistry.common.ItemDescription;
    32       
    43        import flash.events.Event;
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/BrowserService.as

    r3131 r3368  
    11package clarin.cmdi.componentregistry.services {
    2         import clarin.cmdi.componentregistry.common.ItemDescription;
     2        import com.adobe.net.URI;
    33       
    4         import com.adobe.net.URI;       
    5         import mx.collections.ArrayCollection; 
    6         import mx.rpc.events.ResultEvent;
     4        import mx.collections.ArrayCollection;
     5       
     6        import clarin.cmdi.componentregistry.common.ItemDescription;   
    77       
    88        public class BrowserService extends ComponentRegistryService {
     
    1515                public var itemDescriptions:ArrayCollection;
    1616
    17                 // Not bindable needed for lookups over the whole collections of itemDescriptions
    18                 protected var userSpace:Boolean;
    19 
    20                 public function BrowserService(restUrl:String, userSpace:Boolean) {
    21                         super(restUrl);
     17                public function BrowserService(successEvent:String, restUrl:URI, userSpace:Boolean) {
     18                        super(successEvent, restUrl);
    2219                        this.userSpace = userSpace;
    2320                }
    2421               
    25                 override protected function initServiceUrl(url:URI):void{
     22                override protected function dispatchRequest(url:URI):void {
    2623                        if (userSpace) {
    2724                                url.setQueryValue(Config.PARAM_USERSPACE, "true");
    2825                        }
     26                        super.dispatchRequest(url);
    2927                }
    3028               
    31                 /**
    32                  * Override in concrete subclasses
    33                  */
    34                 override protected function result(resultEvent:ResultEvent):void {
    35                 }
    36 
    37                
    38                                
    3929                public function findDescription(id:String):ItemDescription {                   
    4030                        for each (var item:ItemDescription in itemDescriptions) {
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/CommentListService.as

    r1896 r3368  
    11package clarin.cmdi.componentregistry.services {
    2         import clarin.cmdi.componentregistry.common.Comment;
    3         import clarin.cmdi.componentregistry.common.ItemDescription;
    4        
    52        import com.adobe.net.URI;
    63       
    74        import mx.collections.ArrayCollection;
    8         import mx.rpc.events.ResultEvent;
     5       
     6        import clarin.cmdi.componentregistry.common.Comment;
     7        import clarin.cmdi.componentregistry.common.ItemDescription;
    98       
    109        [Event(name="CommentsLoaded", type="flash.events.Event")]
    1110        public class CommentListService extends ComponentRegistryService {
    1211                public static const COMMENTS_LOADED:String = "CommentsLoaded";
    13                 ;
    14                 private var userSpace:Boolean;
    1512                private var itemDescription:ItemDescription;
    1613               
     
    2926                                url = Config.instance.getComponentCommentsPath(itemDescription.id);
    3027                        }
    31                         super(url);
     28                        super(COMMENTS_LOADED, new URI(url));
    3229                       
    3330                        this.itemDescription = itemDescription;
     
    3532                }
    3633               
    37                 override protected function initServiceUrl(url:URI):void{
    38                         if (userSpace) {
    39                                 url.setQueryValue(Config.PARAM_USERSPACE, "true");
    40                         }
    41                 }
    42                
    43                 override protected function result(resultEvent:ResultEvent):void {
    44                         var resultXml:XML = resultEvent.result as XML;
     34                override protected function handleXmlResult(resultXml:XML):void{
    4535                        var nodes:XMLList = resultXml.comment;
    4636                       
     
    5242                        }
    5343                        comments.refresh();
    54                         dispatchEvent(new Event(COMMENTS_LOADED));
    5544                }
    5645        }
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ComponentInfoService.as

    r1375 r3368  
    11package clarin.cmdi.componentregistry.services {
    22
     3        import com.adobe.net.URI;
     4       
     5        import mx.controls.Alert;
     6       
    37        import clarin.cmdi.componentregistry.common.Component;
    48        import clarin.cmdi.componentregistry.common.ComponentMD;
    59        import clarin.cmdi.componentregistry.common.ItemDescription;
    610       
    7         import com.adobe.net.URI;
    811       
    9         import flash.events.Event;
    10         import flash.events.EventDispatcher;
    11        
    12         import mx.controls.Alert;
    13         import mx.messaging.messages.HTTPRequestMessage;
    14         import mx.rpc.AsyncToken;
    15         import mx.rpc.Responder;
    16         import mx.rpc.events.FaultEvent;
    17         import mx.rpc.events.ResultEvent;
    18         import mx.rpc.http.HTTPService;
    19         import mx.utils.StringUtil;
    20 
    2112        [Event(name="ComponentLoaded", type="flash.events.Event")]
    22         public class ComponentInfoService extends EventDispatcher{
    23                 public static const COMPONENT_LOADED:String = "ComponentLoaded";
    24 
    25                 private var service:HTTPService;
     13        public class ComponentInfoService extends BaseRemoteService{
     14               
     15                public static const COMPONENT_LOADED:String="ComponentLoaded";
    2616
    2717                [Bindable]
    2818                public var component:Component;
    2919
    30 
    3120                public function ComponentInfoService() {
    32                         this.service = new HTTPService();
    33                         this.service.method = HTTPRequestMessage.GET_METHOD;
    34                         this.service.resultFormat = HTTPService.RESULT_FORMAT_E4X;
     21                        super(COMPONENT_LOADED);
    3522                }
    3623
     
    4229                                url.setQueryValue(Config.PARAM_USERSPACE, "true");
    4330                        }
    44                         service.url = url.toString();
    45                         var token:AsyncToken = this.service.send();
    46                         token.addResponder(new Responder(result, fault));
     31                        dispatchRequest(url);
    4732                }
    4833
    49                 private function result(resultEvent:ResultEvent):void {
    50                         var resultXml:XML = resultEvent.result as XML;
     34                override protected function handleXmlResult(resultXml:XML):void {
    5135                        var metaData:ComponentMD = new ComponentMD();
    5236                        metaData.name = resultXml.CMD_Component.@name;
    5337                        metaData.xml = resultXml;
    5438                        component.componentMD = metaData;
    55                         dispatchEvent(new Event(COMPONENT_LOADED));
    5639                }
    5740
    58                 public function fault(faultEvent:FaultEvent):void {
    59                         var errorMessage:String = StringUtil.substitute("Error in {0}: {1} - {2}", this, faultEvent.fault.faultString, faultEvent.fault.faultDetail);
    60                         Alert.show(errorMessage);
    61                 }
    6241        }
    6342}
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ComponentListService.as

    r3131 r3368  
    11package clarin.cmdi.componentregistry.services {
     2        import com.adobe.net.URI;
     3       
     4        import flash.events.Event;
     5       
     6        import mx.collections.ArrayCollection;
     7       
    28        import clarin.cmdi.componentregistry.browser.BrowserColumns;
    39        import clarin.cmdi.componentregistry.common.ItemDescription;
    4        
    5         import mx.collections.ArrayCollection;
    6         import mx.rpc.events.ResultEvent;
    7         import flash.events.Event;
    810       
    911        public class ComponentListService extends BrowserService {
     
    1214               
    1315                public function ComponentListService(userSpace:Boolean = false) {
    14                         super(Config.instance.componentListUrl, userSpace);
     16                        super(COMPONENTS_LOADED, new URI(Config.instance.componentListUrl), userSpace);
    1517                }
    1618               
    17                 override protected function result(resultEvent:ResultEvent):void {
    18                         var resultXml:XML = resultEvent.result as XML;
     19                override protected function handleXmlResult(resultXml:XML):void{
    1920                        var nodes:XMLList = resultXml.componentDescription;
    2021                       
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ComponentRegistryService.as

    r2525 r3368  
    33        import com.adobe.net.URI;
    44       
    5         import flash.events.Event;
    6         import flash.events.EventDispatcher;
    7        
    8         import mx.controls.Alert;
    9         import mx.messaging.messages.HTTPRequestMessage;
    10         import mx.rpc.AsyncToken;
    11         import mx.rpc.Responder;
    12         import mx.rpc.events.FaultEvent;
    13         import mx.rpc.events.ResultEvent;
    14         import mx.rpc.http.HTTPService;
    15         import mx.utils.StringUtil;
    16        
    17         public class ComponentRegistryService extends EventDispatcher {
    18                 private var service:HTTPService;
     5        public class ComponentRegistryService extends BaseRemoteService {
    196               
    20                 private var serviceUrl:String;
     7                protected var serviceUrl:URI;
     8                protected var userSpace:Boolean;
    219               
    22                 public function ComponentRegistryService(restUrl:String) {
    23                         this.serviceUrl = restUrl;
    24                         service = new HTTPService();
    25                         service.method = HTTPRequestMessage.GET_METHOD;
    26                         service.resultFormat = HTTPService.RESULT_FORMAT_E4X;
     10                public function ComponentRegistryService(successEvent:String, serviceUrl:URI) {
     11                        super(successEvent);
     12                        this.serviceUrl = serviceUrl;
    2713                }
    2814               
    29                 private function initService():void {
    30                         var url:URI = new URI(serviceUrl);
     15                override protected function dispatchRequest(url:URI):void {
    3116                        url.setQueryValue("unique", new Date().getTime().toString());
    32                         initServiceUrl(url);
    33                         service.url = url.toString();
     17                        if (userSpace) {
     18                                url.setQueryValue(Config.PARAM_USERSPACE, "true");
     19                        } else
     20                                url.setQueryValue(Config.PARAM_USERSPACE, null);
     21                        super.dispatchRequest(url);
    3422                }
    3523               
    3624                public function load():void {
    37                         initService();
    38                         var token:AsyncToken = this.service.send();
    39                         token.addResponder(new Responder(result, fault));
     25                        dispatchRequest(serviceUrl);
    4026                }
    4127               
    42                 /**
    43                  * Override in concrete subclasses
    44                  */
    45                 protected function result(resultEvent:ResultEvent):void {
    46                 }
    47                
    48                 public function fault(faultEvent:FaultEvent):void {
    49                         var errorMessage:String = StringUtil.substitute("Error in {0}: \n Fault: {1} - {2}", this, faultEvent.fault.faultString, faultEvent.fault.faultDetail);
    50                         trace(errorMessage);
    51                         Alert.show("Internal Server error cannot process the data, try reloading the application.");
    52                 }
    53                
    54                 protected function initServiceUrl(url:URI):void{
    55                 };
    5628        }
    5729}
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ElementTypesListService.as

    r2535 r3368  
    11package clarin.cmdi.componentregistry.services //trunk
    22{
    3     import flash.events.Event;
    4     import flash.events.MouseEvent;
     3   
     4    import com.adobe.net.URI;
    55   
    66    import mx.collections.ArrayCollection;
    7     import mx.rpc.events.ResultEvent;
    87       
    98        public class ElementTypesListService extends ComponentRegistryService
     
    1615                public function ElementTypesListService()
    1716                {
    18                   super(Config.getUriAllowedElementTypes());
     17                  super(ALLOWED_TYPES_LOADED, new URI(Config.getUriAllowedElementTypes()));
    1918                }
    2019               
    2120               
    22                 // called by load()
    23                 override protected function result(resultEvent:ResultEvent):void {
    24                         var resultXml:XML = resultEvent.result as XML;
     21                override protected function handleXmlResult(resultXml:XML):void{
    2522                        allowedTypes= new ArrayCollection();
    2623                        var currentValue:String;
     
    2926                                allowedTypes.addItem({label: currentValue, data: currentValue});
    3027                        }
    31                         dispatchEvent(new Event(ALLOWED_TYPES_LOADED));
    3228                }
    3329               
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/IsocatService.as

    r1591 r3368  
    22        import com.adobe.net.URI;
    33       
    4         import flash.events.EventDispatcher;
    5        
    6         import mx.controls.Alert;
    74        import mx.managers.CursorManager;
    8         import mx.messaging.messages.HTTPRequestMessage;
    9         import mx.rpc.events.FaultEvent;
    10         import mx.rpc.events.ResultEvent;
    115        import mx.rpc.http.HTTPService;
    12         import mx.utils.StringUtil;
    136
    14         public class IsocatService extends EventDispatcher {
     7        public class IsocatService extends BaseRemoteService {
    158                public static const PROFILE_LOADED:String = "ProfileLoaded";
    169                public static const TYPE_SIMPLE:String = "simple";
     
    2720
    2821                public function IsocatService() {
     22                        super(PROFILE_LOADED);
    2923                }
    3024
     
    3529                public function load(keyword:String, type:String):void {
    3630                        if (keyword) {
    37                                 createClient();
    3831                                CursorManager.setBusyCursor();
    3932                                var uri:URI = new URI(Config.instance.isocatSearchUrl);
     
    4134                                if (type)
    4235                                    uri.setQueryValue("type", type);
    43                                 service.url = uri.toString();
    44                                 service.send();
     36                                dispatchRequest(uri);
    4537                        }
    4638                }
     
    5345                }
    5446
    55                 private function createClient():void {
    56                         service = new HTTPService();
    57                         service.method = HTTPRequestMessage.GET_METHOD;
    58                         service.resultFormat = HTTPService.RESULT_FORMAT_E4X;
    59                         service.addEventListener(ResultEvent.RESULT, handleResult);
    60                         service.addEventListener(FaultEvent.FAULT, handleError);
    61                 }
    62 
    63 
    64                 private function handleResult(resultEvent:ResultEvent):void {
     47                override protected function handleXmlResult(result:XML):void {
    6548                        CursorManager.removeBusyCursor();
    66                         if (resultEvent.statusCode >= 200 && resultEvent.statusCode < 300) {
    67                                 var data:XML = new XML(resultEvent.result);
    68                                 searchResults = data.dcif::dataCategory;
    69                         } else {
    70                                 Alert.show("Unexpected error, server returned status: " + resultEvent.statusCode + "\n Message = ");
    71                         }
    72                 }
    73 
    74                 private function handleError(faultEvent:FaultEvent):void {
    75                         CursorManager.removeBusyCursor();
    76                         var errorMessage:String = StringUtil.substitute("Error in {0} status {1}: {2}", this, faultEvent.statusCode, faultEvent.fault.faultString);
    77                         Alert.show(errorMessage);
     49                        searchResults = result.dcif::dataCategory;
    7850                }
    7951
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/PingSessionService.as

    r2515 r3368  
    11package clarin.cmdi.componentregistry.services {
    22
    3         import clarin.cmdi.componentregistry.common.Credentials;
     3        import com.adobe.net.URI;
    44       
    55        import flash.events.TimerEvent;
     
    1414        import mx.rpc.http.HTTPService;
    1515        import mx.utils.StringUtil;
     16       
     17        import clarin.cmdi.componentregistry.common.Credentials;
    1618
    1719
    18         public class PingSessionService {
     20        public class PingSessionService extends BaseRemoteService{
    1921
    2022                [Bindable]
     
    2426        private static const PING_INTERVAL:int = 1000 * 60 * 5; //5 minutes
    2527                private var timer:Timer = new Timer(PING_INTERVAL, 0);
    26                 private var service:HTTPService;
    2728
    2829                /**
     
    3031                 */
    3132                function PingSessionService() {
    32                         this.service = new HTTPService();
    33                         this.service.method = HTTPRequestMessage.GET_METHOD;
    34                         this.service.resultFormat = HTTPService.RESULT_FORMAT_E4X;
     33                        super("PingOk");
    3534                }
    3635
     
    4645                private function pingSession():void {
    4746                    if (Credentials.instance.isLoggedIn()) {
    48                         service.url = Config.instance.pingSessionUrl;
    49                         var token:AsyncToken = service.send();
    50                         token.addResponder(new Responder(result, fault));
     47                                dispatchRequest(new URI(Config.instance.pingSessionUrl));
    5148                    }
    5249                }
    5350
    54                 private function result(resultEvent:ResultEvent):void {
    55                         stillActive = resultEvent.result.@stillActive == "true";
     51                override protected function handleXmlResult(resultXml:XML):void{
     52                        stillActive = resultXml.@stillActive == "true";
    5653                        if (!stillActive) {
    5754                            Alert.show("Your session has expired, please reload the application to refresh the session.");
     
    6057                }
    6158
    62                 public function fault(faultEvent:FaultEvent):void {
     59                override protected function requestCallbackFailed(faultEvent:FaultEvent):void {
    6360                        timer.stop(); // We stop to bother the user with more errors. Somethings is wrong user needs probably to reload which will start the timer again.
    64                         var errorMessage:String = StringUtil.substitute("Error in {0}: {1} - {2}", this, faultEvent.fault.faultString, faultEvent.fault.faultDetail);
    65                         Alert.show(errorMessage);
     61                        super.requestCallbackFailed(faultEvent);
    6662                }
    6763        }
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ProfileInfoService.as

    r856 r3368  
    66        import com.adobe.net.URI;
    77
    8         import flash.events.Event;
    9         import flash.events.EventDispatcher;
    10 
    118        import mx.collections.ArrayCollection;
    12         import mx.controls.Alert;
    13         import mx.messaging.messages.HTTPRequestMessage;
    14         import mx.rpc.AsyncToken;
    15         import mx.rpc.Responder;
    16         import mx.rpc.events.FaultEvent;
    17         import mx.rpc.events.ResultEvent;
    18         import mx.rpc.http.HTTPService;
    19         import mx.utils.StringUtil;
    209
    2110        [Event(name="ProfileLoaded", type="flash.events.Event")]
    22         public class ProfileInfoService extends EventDispatcher {
     11        public class ProfileInfoService extends BaseRemoteService {
    2312                public static const PROFILE_LOADED:String = "ProfileLoaded";
    24 
    25                 private var service:HTTPService;
    2613
    2714                [Bindable]
    2815                public var profile:Profile;
    2916
    30 
    3117                public function ProfileInfoService() {
    32                         this.service = new HTTPService();
    33                         this.service.method = HTTPRequestMessage.GET_METHOD;
    34                         this.service.resultFormat = HTTPService.RESULT_FORMAT_E4X;
     18                        super(PROFILE_LOADED);
    3519                }
    3620
     
    4226                                url.setQueryValue(Config.PARAM_USERSPACE, "true");
    4327                        }
    44                         service.url = url.toString();
    45                         var token:AsyncToken = this.service.send();
    46                         token.addResponder(new Responder(result, fault));
     28                        super.dispatchRequest(url);
    4729                }
    48 
    49                 private function result(resultEvent:ResultEvent):void {
    50                         var resultXml:XML = resultEvent.result as XML;
     30               
     31                override protected function handleXmlResult(resultXml:XML):void{
    5132                        var nodes:XMLList = resultXml.CMD_Component;
    52 
     33                       
    5334                        profile.nrOfComponents = nodes.length();
    5435                        profile.profileSource = resultXml;
     
    6142                        }
    6243                        this.profile.components = new ArrayCollection(tempArray);
    63                         dispatchEvent(new Event(PROFILE_LOADED));
    64                 }
    65 
    66                 public function fault(faultEvent:FaultEvent):void {
    67                         var errorMessage:String = StringUtil.substitute("Error in {0}: {1} - {2}", this, faultEvent.fault.faultString, faultEvent.fault.faultDetail);
    68                         Alert.show(errorMessage);
    6944                }
    7045        }
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ProfileListService.as

    r3131 r3368  
    44       
    55        import mx.collections.ArrayCollection;
    6         import mx.rpc.events.ResultEvent;       
    7         import flash.events.Event;
     6        import com.adobe.net.URI;
    87       
    98       
     
    1312               
    1413                public function ProfileListService(userSpace:Boolean=false) {
    15                         super(Config.instance.profileListUrl, userSpace);
     14                        super(PROFILES_LOADED, new URI(Config.instance.profileListUrl), userSpace);
    1615                }
    1716               
    18                 override protected function result(resultEvent:ResultEvent):void {
    19                         var resultXml:XML = resultEvent.result as XML;
     17                override protected function handleXmlResult(resultXml:XML):void{
    2018                        var nodes:XMLList = resultXml.profileDescription;
    2119                        var tempArray:ArrayCollection = new ArrayCollection();
     
    2826                        tempArray.refresh();
    2927                        itemDescriptions = new ArrayCollection(tempArray.toArray());
    30                         trace(itemDescriptions.length);
    31                         dispatchEvent(new Event(this.PROFILES_LOADED));
    3228                }               
    3329        }
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/SaveItemDialog.as

    r1088 r3368  
    11package clarin.cmdi.componentregistry.services {
    2         import clarin.cmdi.componentregistry.common.ItemDescription;
    3 
    4         import com.adobe.net.URI;
    52
    63        import flash.net.URLRequest;
    74        import flash.net.navigateToURL;
     5        import clarin.cmdi.componentregistry.common.ItemDescription;
     6        import com.adobe.net.URI;
    87
    98        public class SaveItemDialog {
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/main.mxml

    r2515 r3368  
    99        <mx:Script>
    1010                <![CDATA[
     11                        import com.flexspy.FlexSpy;
     12                       
     13                        import mx.controls.Button;
     14                        import mx.managers.PopUpManager;
     15                       
    1116                        import clarin.cmdi.componentregistry.common.AboutPopup;
    1217                        import clarin.cmdi.componentregistry.common.Credentials;
     
    1419                        import clarin.cmdi.componentregistry.services.Config;
    1520                        import clarin.cmdi.componentregistry.services.PingSessionService;
    16                        
    17                         import com.flexspy.FlexSpy;
    18                        
    19                         import mx.controls.Button;
    20                         import mx.managers.PopUpManager;
     21                        import clarin.cmdi.componentregistry.services.remote.ClientServiceFactoryImpl;
    2122                       
    2223                        import org.hasseg.externalMouseWheel.ExternalMouseWheelSupport;
Note: See TracChangeset for help on using the changeset viewer.