Changeset 416 for gssim_ui


Ignore:
Timestamp:
08/20/12 11:50:08 (13 years ago)
Author:
mcichenski
Message:

changes to archive

Location:
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/GSSimStudio.mxml

    r395 r416  
    3636                         
    3737                        [Bindable] 
    38                         public var showDebug : Boolean = true; 
     38                        public var showDebug : Boolean = false; 
    3939                         
    4040                        /** 
     
    8989        </mx:ViewStack> 
    9090         
    91         <mx:ColorPicker selectedColor="0xEBE9E1" id="backgroundColorPicker" y="288"/> 
     91        <mx:ColorPicker selectedColor="0xEBE9E1" id="backgroundColorPicker" y="288" visible="false" includeInLayout="false"/> 
    9292         
    9393        <components:RollOutMenu width="100%" height="100%" selectable="true" y="256" id="languageMenu"> 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/GSSimStudioConfig.mxml

    r395 r416  
    77                                xmlns:vine="org.vinetoolkit.vine.*" 
    88                                creationComplete="initApp();" 
    9                                 backgroundColor="#EBE9E1" 
    109                                preloader="gssim.gssimstudio.editor.script.preloader.CustomPreloader" 
    1110                                xmlns:components="gssim.gssimstudio.editor.gssim.components.*"> 
     
    7877                <mx:TextArea id="property_value" text="{model.value}" width="100%" height="100%" /> 
    7978                <mx:Button label="{resourceManager.getString('Common', 'Change')}" click="{service.saveProperty(property_combo.text, property_value.text);}" /> 
    80                 <mx:TextArea text="{model.error}" width="100%"/> 
     79                <mx:TextArea text="{model.error}" width="100%" height="100%"/> 
    8180                 
    8281                <components:RollOutMenu width="100%" height="100%" selectable="true" id="languageMenu"> 
     
    8483                        <components:IconToggleButton skinClass="gssim.gssimstudio.editor.gssim.skins.IconToggleButtonSkin" click="changeLocale('pl_PL')" id="plLocale" height="32" width="32" toolTip="{resourceManager.getString('Common', 'Polish')}" iconUp="assets/icon/pl_PL.png"/> 
    8584                </components:RollOutMenu> 
    86                  
    87                 <mx:ColorPicker selectedColor="0xEBE9E1" id="backgroundColorPicker"/> 
    88                  
    8985        </mx:VBox> 
    9086         
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/gssim/editors/experiment/ExperimentPropertiesPanel.mxml

    r209 r416  
    5656                                if (workloadSelectedCB.selected) 
    5757                                { 
     58                                        var iterW : int = 0; 
    5859                                        for each (var workload : Object in parentApplication.experimentEditor.workspaceWorkloadsFileList) 
    5960                                        { 
    6061                                                var inner : ExperimentProperties = exp.clone(); 
    6162                                                inner.setWorkloadFile(workload.fileName); 
     63                                                inner.name += "_" + iterW; 
    6264                                                list.addItem(inner); 
    6365                                        } 
     
    7981                                                        else innerR = propR.clone(); 
    8082                                                        innerR.setResourceFile(resource.fileName); 
     83                                                        innerR.name += "_" + iterR; 
    8184                                                        if (iterR != 0) innerListR.addItem(innerR); 
    8285                                                } 
     
    97100                                                        else innerT = propT.clone(); 
    98101                                                        innerT.setTopologyFile(topology.fileName); 
     102                                                        innerT.name += "_" + iterT; 
    99103                                                        if (iterT != 0) innerListT.addItem(innerT); 
    100104                                                } 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/gssim/editors/experiment/FileManager.mxml

    r377 r416  
    188188                                                                        <mx:Component> 
    189189                                                                                <mx:HBox paddingLeft="4" horizontalGap="0" verticalGap="0"> 
    190                                                                                         <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Add')}" toolTip="{resourceManager.getString('ExperimentEditor', 'AddFileTooltip')}" click="outerDocument.addItemToWorkspace(outerDocument.workloadFilesDG, parentApplication.experimentEditor.workspaceWorkloadsFileList)" height="30" width="33"/> 
    191                                                                                         <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeFileItem(outerDocument.workloadFilesDG)" height="30" width="33"/> 
    192                                                                                         <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Download')}" toolTip="{resourceManager.getString('ExperimentEditor', 'DownloadTooltip')}" click="outerDocument.itemDownload(outerDocument.workloadFilesDG)" height="30" width="33"/> 
     190                                                                                        <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Add')}" toolTip="{resourceManager.getString('ExperimentEditor', 'AddFileTooltip')}" click="outerDocument.addItemToWorkspace(outerDocument.workloadFilesDG, parentApplication.experimentEditor.workspaceWorkloadsFileList)" height="30"/> 
     191                                                                                        <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeFileItem(outerDocument.workloadFilesDG)" height="30"/> 
     192                                                                                        <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Download')}" toolTip="{resourceManager.getString('ExperimentEditor', 'DownloadTooltip')}" click="outerDocument.itemDownload(outerDocument.workloadFilesDG)" height="30"/> 
    193193                                                                                </mx:HBox> 
    194194                                                                        </mx:Component> 
     
    210210                                                                        <mx:Component> 
    211211                                                                                <mx:HBox paddingLeft="4" horizontalGap="0" verticalGap="0"> 
    212                                                                                         <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Add')}" toolTip="{resourceManager.getString('ExperimentEditor', 'AddFileTooltip')}" click="outerDocument.addItemToWorkspace(outerDocument.resourceFilesDG, parentApplication.experimentEditor.workspaceResourcesFileList)" height="30" width="33"/> 
    213                                                                                         <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeFileItem(outerDocument.resourceFilesDG)" height="30" width="33"/> 
    214                                                                                         <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Download')}" toolTip="{resourceManager.getString('ExperimentEditor', 'DownloadTooltip')}" click="outerDocument.itemDownload(outerDocument.resourceFilesDG)" height="30" width="33"/> 
     212                                                                                        <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Add')}" toolTip="{resourceManager.getString('ExperimentEditor', 'AddFileTooltip')}" click="outerDocument.addItemToWorkspace(outerDocument.resourceFilesDG, parentApplication.experimentEditor.workspaceResourcesFileList)" height="30"/> 
     213                                                                                        <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeFileItem(outerDocument.resourceFilesDG)" height="30"/> 
     214                                                                                        <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Download')}" toolTip="{resourceManager.getString('ExperimentEditor', 'DownloadTooltip')}" click="outerDocument.itemDownload(outerDocument.resourceFilesDG)" height="30"/> 
    215215                                                                                </mx:HBox> 
    216216                                                                        </mx:Component> 
     
    231231                                                                        <mx:Component> 
    232232                                                                                <mx:HBox paddingLeft="4" horizontalGap="0" verticalGap="0"> 
    233                                                                                         <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Add')}" toolTip="{resourceManager.getString('ExperimentEditor', 'AddFileTooltip')}" click="outerDocument.addItemToWorkspace(outerDocument.topologyFilesDG, parentApplication.experimentEditor.workspaceTopologiesFileList)" height="30" width="33"/> 
    234                                                                                         <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeFileItem(outerDocument.topologyFilesDG)" height="30" width="33"/> 
    235                                                                                         <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Download')}" toolTip="{resourceManager.getString('ExperimentEditor', 'DownloadTooltip')}" click="outerDocument.itemDownload(outerDocument.topologyFilesDG)" height="30" width="33"/> 
     233                                                                                        <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Add')}" toolTip="{resourceManager.getString('ExperimentEditor', 'AddFileTooltip')}" click="outerDocument.addItemToWorkspace(outerDocument.topologyFilesDG, parentApplication.experimentEditor.workspaceTopologiesFileList)" height="30"/> 
     234                                                                                        <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeFileItem(outerDocument.topologyFilesDG)" height="30"/> 
     235                                                                                        <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Download')}" toolTip="{resourceManager.getString('ExperimentEditor', 'DownloadTooltip')}" click="outerDocument.itemDownload(outerDocument.topologyFilesDG)" height="30"/> 
    236236                                                                                </mx:HBox> 
    237237                                                                        </mx:Component> 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/views/ArchiveViewer.mxml

    r389 r416  
    7878                        } 
    7979                         
     80                        private function experimentsRemoved(event : ResultEvent) : void 
     81                        { 
     82                                Alert.show(resourceManager.getString("ArchiveViewer", "ExperimentsRemovedMessage")); 
     83                        } 
     84                         
    8085                        public function addExperimentsToExperimentEditor() : void 
    8186                        { 
    8287                                var array:ArrayCollection = getSelectedExperimentsPKs(); 
    8388                                parentApplication.addModelUpdatedSingleCallbacks(parentApplication.service.getExperimentConfiguration(array), configurationsLoaded); 
     89                        } 
     90                         
     91                        public function removeAll() : void 
     92                        { 
     93                                var array:ArrayCollection = getSelectedExperimentsPKs(); 
     94                                parentApplication.addModelUpdatedSingleCallbacks(parentApplication.service.deleteExperiments(array), experimentsRemoved); 
    8495                        } 
    8596                         
     
    133144                                        parentApplication.service.changeExperimentsMetaexperiment(getSelectedExperimentsPKs(), moveToFolderInput.text); 
    134145                                } 
     146                                showMoveToFolderPrompt(false); 
     147                        } 
     148                         
     149                        public function showMoveToFolderPrompt(show : Boolean = true) : void 
     150                        { 
     151                                moveToFolderPrompt.visible = show; 
     152                                moveToFolderPrompt.includeInLayout = show; 
    135153                        } 
    136154                         
     
    243261                        <s:Button label="{resourceManager.getString('ArchiveViewer', 'Refresh')}" click="getExperiments()"/> 
    244262                         
    245                         <!-- 
    246                         <mx:TabNavigator paddingLeft="5" creationPolicy="all" width="100%"> 
    247                                 <mx:VBox label="Allocations" width="100%"> 
    248                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.allocationList}" rowHeight="35" id="allocationsDataGrid" width="100%" > 
    249                                                 <mx:columns> 
    250                                                         <mx:DataGridColumn dataField="PK" headerText="PK"/> 
    251                                                         <mx:DataGridColumn dataField="taskId" headerText="Task ID"/> 
    252                                                         <mx:DataGridColumn dataField="unitId" headerText="Unit ID"/> 
    253                                                         <mx:DataGridColumn dataField="begin" headerText="begin"/> 
    254                                                         <mx:DataGridColumn dataField="end" headerText="end"/> 
    255                                                 </mx:columns> 
    256                                         </mx:DataGrid> 
    257                                         <s:Button label="Get allocations from DB" click="{parentApplication.service.getAllocationsFromDb(null, null)}"/> 
    258                                 </mx:VBox>       
    259                                  
    260                                 <mx:VBox label="Allocation details" width="100%"> 
    261                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.allocationDetailsList}" rowHeight="35" id="allocationDetailsDataGrid" width="100%" > 
    262                                                 <mx:columns> 
    263                                                         <mx:DataGridColumn dataField="fkAllocationId" headerText="Allocation Id"/> 
    264                                                         <mx:DataGridColumn dataField="name" headerText="Name"/> 
    265                                                         <mx:DataGridColumn dataField="value" headerText="Value"/> 
    266                                                 </mx:columns> 
    267                                         </mx:DataGrid> 
    268                                         <s:Button label="Get allocation details from DB" click="{parentApplication.service.getAllocationDetailsFromDb(null)}"/> 
    269                                 </mx:VBox>       
    270                                  
    271                                 <mx:VBox label="Configuration" width="100%"> 
    272                                         <mx:TextArea id="net" text="{parentApplication.gsSimStudioModel.extendedConfiguration.networkTopology}" width="100%" height="100%" editable="false"/> 
    273                                         <s:Button label="Get configuration with id 2 from DB" click="{parentApplication.service.getExtendedConfigurationFromDb(2); ln.enabled=true;}"/> 
    274                                         <s:Button label="Load the configuration to Network Editor" click="{loadNetwork();}" enabled="false" id="ln"/> 
    275                                 </mx:VBox> 
    276                          
    277                                 <mx:VBox label="{resourceManager.getString('ArchiveViewer', 'Experiments')}" width="100%"> 
    278                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.experimentList}" rowHeight="35" id="experimentsDataGrid" width="100%" > 
    279                                                 <mx:columns> 
    280                                                         <mx:DataGridColumn dataField="PK" headerText="{resourceManager.getString('ArchiveViewer', 'ID')}"/> 
    281                                                         <mx:DataGridColumn dataField="status" headerText="{resourceManager.getString('ArchiveViewer', 'Status')}"/> 
    282                                                         <mx:DataGridColumn dataField="commissionDate" headerText="{resourceManager.getString('ArchiveViewer', 'Description')}"/> 
    283                                                 </mx:columns> 
    284                                         </mx:DataGrid> 
    285                                         <s:Button label="Get experiments from DB" click="{parentApplication.service.getExperimentsFromDb(null, null, null)}"/> 
    286                                 </mx:VBox> 
    287                          
    288                                 <mx:VBox label="Experiment stats" width="100%"> 
    289                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.experimentStatsList}" rowHeight="35" id="experimentStatsDataGrid" width="100%" > 
    290                                                 <mx:columns> 
    291                                                         <mx:DataGridColumn dataField="id" headerText="Experiment Id"/> 
    292                                                         <mx:DataGridColumn dataField="name" headerText="Name"/> 
    293                                                         <mx:DataGridColumn dataField="value" headerText="Value"/> 
    294                                                 </mx:columns> 
    295                                         </mx:DataGrid> 
    296                                         <s:Button label="Get experiment stats from DB" click="{parentApplication.service.getExperimentStatsFromDb(null)}"/> 
    297                                 </mx:VBox>       
    298                                  
    299                                 <mx:VBox label="Queues" width="100%"> 
    300                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.queuesList}" rowHeight="35" id="queuesDataGrid" width="100%" > 
    301                                                 <mx:columns> 
    302                                                         <mx:DataGridColumn dataField="fkResourceId" headerText="Resource Id"/> 
    303                                                         <mx:DataGridColumn dataField="name" headerText="Name"/> 
    304                                                         <mx:DataGridColumn dataField="avgLength" headerText="Avg length"/> 
    305                                                 </mx:columns> 
    306                                         </mx:DataGrid> 
    307                                         <s:Button label="Get queues from DB" click="{parentApplication.service.getQueuesFromDb(null)}"/> 
    308                                 </mx:VBox>       
    309                                  
    310                                  
    311                                 <mx:VBox label="Reservations" width="100%"> 
    312                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.reservationList}" rowHeight="35" id="reservationsDataGrid" width="100%" > 
    313                                                 <mx:columns> 
    314                                                         <mx:DataGridColumn dataField="PK" headerText="PK"/> 
    315                                                         <mx:DataGridColumn dataField="taskId" headerText="Task Id"/> 
    316                                                         <mx:DataGridColumn dataField="unitId" headerText="Unit Id"/> 
    317                                                         <mx:DataGridColumn dataField="begin" headerText="Begin"/> 
    318                                                         <mx:DataGridColumn dataField="end" headerText="End"/>                                                    
    319                                                 </mx:columns> 
    320                                         </mx:DataGrid> 
    321                                         <s:Button label="Get reservations from DB" click="{parentApplication.service.getReservationsFromDb(null, null)}"/> 
    322                                 </mx:VBox>               
    323                                  
    324                                 <mx:VBox label="Reservation details" width="100%"> 
    325                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.reservationDetailsList}" rowHeight="35" id="reservationDetailsDataGrid" width="100%" > 
    326                                                 <mx:columns> 
    327                                                         <mx:DataGridColumn dataField="fkReservationId" headerText="Reservation Id"/> 
    328                                                         <mx:DataGridColumn dataField="name" headerText="Name"/> 
    329                                                         <mx:DataGridColumn dataField="value" headerText="Value"/>                                                
    330                                                 </mx:columns> 
    331                                         </mx:DataGrid> 
    332                                         <s:Button label="Get reservations from DB" click="{parentApplication.service.getReservationDetailsFromDb(null)}"/> 
    333                                 </mx:VBox>                                                               
    334                                  
    335                                 <mx:VBox label="Resources" width="100%"> 
    336                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.resourceList}" rowHeight="35" id="resourcesDataGrid" width="100%" > 
    337                                                 <mx:columns> 
    338                                                         <mx:DataGridColumn dataField="PK" headerText="PK"/> 
    339                                                         <mx:DataGridColumn dataField="expId" headerText="Experiment Id"/> 
    340                                                         <mx:DataGridColumn dataField="name" headerText="Name"/> 
    341                                                         <mx:DataGridColumn dataField="type" headerText="Type"/> 
    342                                                         <mx:DataGridColumn dataField="allocationLoad" headerText="Allocation load"/>                             
    343                                                         <mx:DataGridColumn dataField="reservationLoad" headerText="Reservation load"/> 
    344                                                 </mx:columns> 
    345                                         </mx:DataGrid> 
    346                                         <s:Button label="Get resources from DB" click="{parentApplication.service.getResourcesFromDb(null, null, null)}"/> 
    347                                 </mx:VBox>                                                               
    348                          
    349                                 <mx:VBox label="Resource alloctaion timeline" width="100%"> 
    350                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.resourceAllTimelineList}" rowHeight="35" id="resourceAllTimelinesDetailsDataGrid" width="100%" > 
    351                                                 <mx:columns> 
    352                                                         <mx:DataGridColumn dataField="fkResourceId" headerText="Resource Id"/> 
    353                                                         <mx:DataGridColumn dataField="timestamp" headerText="Timestamp"/> 
    354                                                         <mx:DataGridColumn dataField="usage" headerText="Usage"/>                                                
    355                                                 </mx:columns> 
    356                                         </mx:DataGrid> 
    357                                         <s:Button label="Get resource allocation timeline from DB" click="{parentApplication.service.getResourceAllTimelineFromDb(null, null, null)}"/> 
    358                                 </mx:VBox>                       
    359                          
    360                                 <mx:VBox label="Resource energy timeline" width="100%"> 
    361                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.resourceEnTimelineList}" rowHeight="35" id="resourceEnTimelinesDetailsDataGrid" width="100%" > 
    362                                                 <mx:columns> 
    363                                                         <mx:DataGridColumn dataField="fkResourceId" headerText="Resource Id"/> 
    364                                                         <mx:DataGridColumn dataField="timestamp" headerText="Timestamp"/> 
    365                                                         <mx:DataGridColumn dataField="usage" headerText="Usage"/>                                                
    366                                                 </mx:columns> 
    367                                         </mx:DataGrid> 
    368                                         <s:Button label="Get resource energy timeline from DB" click="{parentApplication.service.getResourceEnTimelineFromDb(null, null, null)}"/> 
    369                                 </mx:VBox>                                                                               
    370                                  
    371                                 <mx:VBox label="Tasks" width="100%"> 
    372                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.taskList}" rowHeight="35" id="tasksDataGrid" width="100%" > 
    373                                                 <mx:columns> 
    374                                                         <mx:DataGridColumn dataField="PK" headerText="PK"/>                                              
    375                                                         <mx:DataGridColumn dataField="expId" headerText="Experiment Id"/> 
    376                                                         <mx:DataGridColumn dataField="jobId" headerText="Job Id"/> 
    377                                                         <mx:DataGridColumn dataField="taskId" headerText="Task Id"/> 
    378                                                         <mx:DataGridColumn dataField="procSetId" headerText="Proceess set Id"/> 
    379                                                         <mx:DataGridColumn dataField="parentId" headerText="Parent Id"/> 
    380                                                         <mx:DataGridColumn dataField="execStartDate" headerText="Exec start date"/> 
    381                                                         <mx:DataGridColumn dataField="execFinishDate" headerText="Exec finish date"/> 
    382                                                         <mx:DataGridColumn dataField="execEndDate" headerText="Exec end date"/> 
    383                                                         <mx:DataGridColumn dataField="gbSubmitDate" headerText="Gb submit date"/> 
    384                                                         <mx:DataGridColumn dataField="lbSubmitDate" headerText="Lb Submit Date"/> 
    385                                                         <mx:DataGridColumn dataField="completionTime" headerText="Completion Time"/> 
    386                                                         <mx:DataGridColumn dataField="execStartTime" headerText="Exec start time"/> 
    387                                                         <mx:DataGridColumn dataField="executionTime" headerText="Execution time"/> 
    388                                                         <mx:DataGridColumn dataField="startTime" headerText="Start time"/> 
    389                                                         <mx:DataGridColumn dataField="readyTime" headerText="Ready time"/> 
    390                                                         <mx:DataGridColumn dataField="flowTime" headerText="Flow time"/> 
    391                                                         <mx:DataGridColumn dataField="waitingTime" headerText="Waiting time"/> 
    392                                                         <mx:DataGridColumn dataField="gqWaitingTime" headerText="Gq waiting time"/> 
    393                                                         <mx:DataGridColumn dataField="lateness" headerText="Lateness"/> 
    394                                                         <mx:DataGridColumn dataField="tardiness" headerText="Tardiness"/> 
    395                                                         <mx:DataGridColumn dataField="makespan" headerText="Makespan"/>                                                  
    396                                                 </mx:columns> 
    397                                         </mx:DataGrid> 
    398                                         <s:Button label="Get tasks from DB" click="{parentApplication.service.getTasksFromDb(null, null, null, null, null)}"/> 
    399                                 </mx:VBox>                                                                                       
    400                                  
    401                                 <mx:VBox label="Text properties" width="100%"> 
    402                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.textPropertyList}" rowHeight="35" id="textPropertiesDataGrid" width="100%" > 
    403                                                 <mx:columns> 
    404                                                         <mx:DataGridColumn dataField="configId" headerText="Configuration Id"/> 
    405                                                         <mx:DataGridColumn dataField="name" headerText="Name"/> 
    406                                                         <mx:DataGridColumn dataField="value" headerText="Value"/>                                                
    407                                                 </mx:columns> 
    408                                         </mx:DataGrid> 
    409                                         <s:Button label="Get text properties from DB" click="{parentApplication.service.getTextPropertiesFromDb(null)}"/> 
    410                                 </mx:VBox>                               
    411                                  
    412                                 <mx:VBox label="Units" width="100%"> 
    413                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.unitList}" rowHeight="35" id="unitsDataGrid" width="100%" > 
    414                                                 <mx:columns> 
    415                                                         <mx:DataGridColumn dataField="PK" headerText="PK"/> 
    416                                                         <mx:DataGridColumn dataField="resourceId" headerText="Resource Id"/> 
    417                                                         <mx:DataGridColumn dataField="name" headerText="Name"/> 
    418                                                         <mx:DataGridColumn dataField="type" headerText="Type"/> 
    419                                                         <mx:DataGridColumn dataField="allocationLoad" headerText="Allocation load"/>                             
    420                                                         <mx:DataGridColumn dataField="reservationLoad" headerText="Reservation load"/> 
    421                                                 </mx:columns> 
    422                                         </mx:DataGrid> 
    423                                         <s:Button label="Get reservations from DB" click="{parentApplication.service.getUnitsFromDb(null, null, null)}"/> 
    424                                 </mx:VBox>       
    425                                  
    426                                 <mx:VBox label="Unit alloctaion timeline" width="100%"> 
    427                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.unitAllTimelineList}" rowHeight="35" id="unitAllTimelinesDetailsDataGrid" width="100%" > 
    428                                                 <mx:columns> 
    429                                                         <mx:DataGridColumn dataField="fkUnitId" headerText="Unit Id"/> 
    430                                                         <mx:DataGridColumn dataField="timestamp" headerText="Timestamp"/> 
    431                                                         <mx:DataGridColumn dataField="usage" headerText="Usage"/>                                                
    432                                                 </mx:columns> 
    433                                         </mx:DataGrid> 
    434                                         <s:Button label="Get unit allocation timeline from DB" click="{parentApplication.service.getUnitAllTimelineFromDb(null, null, null)}"/> 
    435                                 </mx:VBox>       
    436  
    437                                 <mx:VBox label="Unit details" width="100%"> 
    438                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.unitDetailsList}" rowHeight="35" id="unitDetailsDataGrid" width="100%" > 
    439                                                 <mx:columns> 
    440                                                         <mx:DataGridColumn dataField="fkUnitId" headerText="Unit Id"/> 
    441                                                         <mx:DataGridColumn dataField="name" headerText="Name"/> 
    442                                                         <mx:DataGridColumn dataField="value" headerText="Value"/>                                                
    443                                                 </mx:columns> 
    444                                         </mx:DataGrid> 
    445                                         <s:Button label="Get units from DB" click="{parentApplication.service.getUnitDetailsFromDb(null)}"/> 
    446                                 </mx:VBox>                                                               
    447                                  
    448                                 <mx:VBox label="Unit energy timeline" width="100%"> 
    449                                         <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.unitEnTimelineList}" rowHeight="35" id="unitEnTimelinesDetailsDataGrid" width="100%" > 
    450                                                 <mx:columns> 
    451                                                         <mx:DataGridColumn dataField="fkUnitId" headerText="Unit Id"/> 
    452                                                         <mx:DataGridColumn dataField="timestamp" headerText="Timestamp"/> 
    453                                                         <mx:DataGridColumn dataField="usage" headerText="Usage"/>                                                
    454                                                 </mx:columns> 
    455                                         </mx:DataGrid> 
    456                                         <s:Button label="Get unit energy timeline from DB" click="{parentApplication.service.getUnitEnTimelineFromDb(null, null, null)}"/> 
    457                                 </mx:VBox>                                                                               
    458                                  
    459                         </mx:TabNavigator> 
    460                         --> 
    461                          
    462                         <mx:Button id="accumulatedStatsWindow" click="showAccumulatedStatsWindow()" label="View stats"/> 
    463263                        <s:Group> 
    464264                                <s:Rect width="100%" height="100%"> 
     
    473273                                        <s:Label text="{resourceManager.getString('ArchiveViewer', 'WithSelected')}"/> 
    474274                                        <mx:HBox> 
    475                                                 <mx:ComboBox id="moveToFolderInput" width="150" restrict="0-9a-zA-Z" dataProvider="{parentApplication.gsSimStudioModel.metaexperimentList}" editable="true" /> 
    476                                                 <mx:Button id="moveToFolderButton" click="moveToFolder()" label="{resourceManager.getString('ArchiveViewer', 'Move')}"/> 
     275                                                 
     276                                                <mx:Button id="moveToFolderButton" click="showMoveToFolderPrompt()" label="{resourceManager.getString('ArchiveViewer', 'Move')}"/> 
     277                                                <mx:Button click="addExperimentsToExperimentEditor()" label="{resourceManager.getString('ArchiveViewer', 'RunAgain')}"/> 
     278                                                <mx:Button click="removeAll()" label="{resourceManager.getString('ArchiveViewer', 'RemoveAll')}"/> 
     279                                                <mx:Button id="accumulatedStatsWindow" click="showAccumulatedStatsWindow()" label="{resourceManager.getString('ArchiveViewer', 'GroupStatistics')}"/> 
    477280                                        </mx:HBox> 
    478                                         <mx:Button click="addExperimentsToExperimentEditor()" label="{resourceManager.getString('ArchiveViewer', 'RunAgain')}"/> 
     281                                        <mx:HBox id="moveToFolderPrompt"> 
     282                                                <mx:VBox> 
     283                                                        <mx:Label text="{resourceManager.getString('ArchiveViewer', 'NewName')}" /> 
     284                                                        <mx:HBox> 
     285                                                                <mx:ComboBox id="moveToFolderInput" width="150" restrict="0-9a-zA-Z" dataProvider="{parentApplication.gsSimStudioModel.metaexperimentList}" editable="true" /> 
     286                                                                <mx:Button click="moveToFolder()" label="{resourceManager.getString('ArchiveViewer', 'OK')}"/> 
     287                                                                <mx:Button click="showMoveToFolderPrompt(false)" label="{resourceManager.getString('ArchiveViewer', 'Cancel')}"/> 
     288                                                        </mx:HBox> 
     289                                                </mx:VBox> 
     290                                        </mx:HBox> 
    479291                                </mx:VBox> 
    480292                        </s:Group> 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/GSSimStudio.java

    r415 r416  
    749749         
    750750        @BlazeDsMethod() 
     751        public GSSimStudioModel deleteExperiments(List PKs) { 
     752                GSSimStudioModel model = getModel(); 
     753                Connection connection = null; 
     754                try { 
     755                        connection = factory().createDBConnection(dbAddress, dbUser, 
     756                                        dbPassword); 
     757                         
     758                        ExperimentDAO experimentDAO = factory.createExperiment(); 
     759                        for (int i = 0; i < PKs.size(); i++) { 
     760                                deleteExperiment(experimentDAO, (Integer) PKs.get(i)); 
     761                        } 
     762                        connection.commit(); 
     763                         
     764                } catch (SQLException e) { 
     765                        setSqlError("Experiments", model, e); 
     766                } catch (InstantiationException e) { 
     767                        setDbConnectionError(model, e);          
     768                } catch (IllegalAccessException e) { 
     769                        setDbConnectionError(model, e);  
     770                } catch (ClassNotFoundException e) { 
     771                        setDbConnectionError(model, e);  
     772                } catch (Exception e) { 
     773                        setError("Unexpected error occured", model, e);  
     774                } finally { 
     775                        closeConnection(connection, model); 
     776                } 
     777                 
     778                return getExperimentsFromDb(model, null, null, null); 
     779        } 
     780         
     781        @BlazeDsMethod() 
    751782        public GSSimStudioModel updateExperiment(Integer PK, Integer userID, Integer configID, String name, Timestamp commissionDate, String description, String status, Integer metaexpID) { 
    752783                GSSimStudioModel model = getModel(); 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/locale/en_US/ArchiveViewer.properties

    r63 r416  
    1010Status=Status 
    1111Refresh=Refresh 
     12 
     13OK=Confirm 
     14Cancel=Cancel 
     15NewName=Fill in the name of new folder or pick one from the list: 
    1216 
    1317Basic=Basic info 
     
    2327WithSelected=Selected experiments 
    2428ExperimentsAddedMessage=Selected experiments have been added to Experiment Editor and can be runned again. 
     29ExperimentsRemovedMessage=Selected experiments have been removed. 
     30 
     31GroupStatistics=Group statistics 
     32RemoveAll=Delete 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/locale/pl_PL/ArchiveViewer.properties

    r63 r416  
    1212Refresh=OdświeÅŒ 
    1313 
     14OK=Zatwierdź 
     15Cancel=Anuluj 
     16NewName=Podaj nowÄ 
     17 nazwę folderu lub wybierz jednÄ 
     18 z istniejÄ 
     19cych: 
     20 
    1421Basic=Informacje podstawowe 
    1522Resource=Wykres zasobów 
     
    2431WithSelected=Zaznaczone eksperymenty 
    2532ExperimentsAddedMessage=Dodano zaznaczone eksperymenty do Edytora Eksperymentów, moÅŒna je ponownie uruchomić z poziomu tego edytora. 
     33ExperimentsRemovedMessage=Pomyślnie usunięto zaznaczone eksperymenty. 
     34 
     35GroupStatistics=Statystyki zbiorcze 
     36RemoveAll=Usuń 
Note: See TracChangeset for help on using the changeset viewer.