Home

DES GUI Front-end - E-Prints Complutense

image

Contents

1. sienta tantae ta ta tanta ta aant ta aetatis ta aatis aas Figure NNN Figure 79 Data view sort by Window ENEE Figure 80 Data view hide show columns EEN ligureo1 Data view ACID MEU Figure 82 Data view about us windOW cnica Me NNN Figure 84 Add TJOFeIgH Key sara Figure go Add candidate ve Figure 86 Add functional dependency rettet tarn tantas 1 Figure 87 Add integrity constraint eret teta ttn 1 EE 1 Figure 89 Create view windouw ENEE 1 Figure e 1 Figure 91 View node popup menu indicaciones 1 Figure e 1 Figure 93 SQL and Datalog text nodes erret rrt tartara 1 PIURA SOON NE SX 1 ee CONC RE 1 Figure 96 Status DAF issiiriessisrsisrsisnsiirasnirinassannnaiasirasiaoaiaaianiaoi asaina aiian ahinan aariaa 1 00 00 01 02 03 03 04 05 05 06 07 User s Manual 16 AC DE O Ce A CONFIGURABLE IDE Informatica 1 SYSTEM REQUISITES 1 1 USER ACIDE a Configurable IDE does require neither special system configurations nor special system requirements because the executable file is attached in its distribution making the execution of ACIDE A Configurable IDE easy and comfortable to the users ACIDE A Configurable IDE is cross platform and has been tested on MS Windows XP Vista 7 Ubuntu Linux 10 04 1 Ubuntu Linux 12 04 and MacOSX Snow Leopard Executables for all of these operating systems are provided The only mandat
2. A CON DE 3 6 HELP MENU Contains the following menu items Figure 46 Help menu Next the previous menu options are further explained 3 6 1 SHOW HELP Links directly to the present document 3 6 2 ABOUT US Displays the following window with some extra information about the application Operating System OS Independent Java License GNU General Public License GPL Category Integrated Development Environments IDE Version 0 11 Web http acide sourceforge net Developers Fernando S enz P rez Team Director Diego Cardiel Freire Delfin Rup rez Ca as Miguel Martin L zaro Javier Salcedo G mez Pablo Guti rrez Garc a Pardo Elena Tejeiro P rez de greda Andr s Vicente del Cura Figure 47 About us window User s Manual 72 bar id Facuitad C O E S de A CONFIGURABLE IDE Inform tica 3 7 INSERTED SUBMENUS As explained in chapters 3 5 8 and 13 5 1 user can insert new submenus in the tool bar Then inside these submenus new inserted submenus and menu items can be defined For each inserted submenu the attributes are e Name the name of the submenu e Visible define if the submenu is visible or not in the application e Erasable define if the submenu is a default submenu not erasable or not is erasable The value of this attribute can not be edited e List list of all the submenus and menu items that the submenu contains e Image for submenus the value of this attr
3. Eclipse and start the edition fast and simple 1 3 EXECUTING ACIDE User has to unpack the distribution archive file into the directory he wants to instal ACIDE A Configurable IDE which will be referred to as the distribution directory from now Since it is a portable application it needs to be started from its distribution directory which means that the start up directory of the shortcut must be the distribution directory To execute ACIDE A Configurable IDE on the different SOs user only has to run the des_acide jar file to open an instance of the application preconfigured to work with DES At Windows the user only have to do double click in the file He also can create a Script or an alias for executing the file at the distribution root typing Java g r des acide jar or to avoid that shell depends on executable javaw jJar des acide jar Linux and Linux the user can create a script or an alias for executing the file des_acide jar at the distribution root typing java jar des acide jar User s Manual 18 ACIDE SJT A CONFIGURABLE IDE Informatica 2 INTRODUCING ACIDE ACIDE A Configurable IDE is a cross platform open source Integrated Development Environment IDE It has been developed by different teams of students coursing Computing Systems and directed by Fernando Saenz P rez Next ACIDE A Configurable IDE features will be further explained 2 1 TECHNOLOGY The implementation of the a
4. acide configuration menu AcideMenuItemsConfiguration La etiqueta ra z dentro de estos documentos XML corresponde con la clase AcideMenultemsConfiguration que se encarga de la gesti n interna de la Sistemas Inform ticos 2012 2013 68 ACIDE A CONFIGURABLE IDE configuraci n del menu dentro de Acide A Configurable IDE Esta clase contiene un atributo itemsManager que contiene las entradas de men que existen en dicha configuraci n B sicamente lo que hace este objeto es gestionar la lista de componentes de menu que insertemos en el documento de la siguiente forma lt itemsManager mo gu e E lt J Liot Sl lst lt itemsManager gt Anidados dentro de la ltima etiqueta ist se introduce una lista de elementos con el orden de aparici n deseado dentro de la barra de menu Estos elementos son o bien items de menu como por ejemplo Nuevo Archivo o bien entradas de menu por ejemplo la entrada Archivo La estructura de un item de ment es la siguiente lt acide configuration menu AcideMenultemConfiguration gt command gt lt command parameter E parameter name gt lt name gt erasable erasable image image acide configuration menu AcideMenuItemConfiguration lt lt lt lt J visible WS visible gt lt lt lt La funci n de cada elemento es la siguiente e command almacena el comando que ejecutar el item de men cua
5. ee Configuraci n de barra de MENUS eee eene rennen tinte nentes 67 UA ser 67 9 2 2 Configuraci n mediante la aplicaci n uu cesses 71 9 2 3 Funcionamiento de la nueva configuraci n esent 73 9 2 4 Comandos de los tems de men 74 GE Ge de ICOMOS m dp inner Sed 74 93 Ventanas de b squeda y reemplazamiento eene 76 9 3 1 Nuevas funcionalidades eese nennen retener tete tenant intesa nns 77 9 3 1 1 Bot n CT TEE UN 77 9 3 1 2 B squedas y reemplazamientos recientes serene 78 93 593 Barra de procrear te s IPM MU lE 79 Sos OCS TOP OS pue HERE EADEM DEG MEUM MEE 80 9 3 2 Funcionalidades mejoradas o arregladas sss 80 9 3 2 1 B squeda y reemplazamiento con expresiones regulares 81 9 3 2 2 B squeda con F3 y Shift F3 en CditOres seein 81 ov A Ane DUIS E 82 9 4 ur COPIA e a o 83 9 4 1 TT SE 9 4 2 Historial de comandos persistente eese retener nn nnntntntnnnnnns 83 E e DAS CADO EE 04 9 5 Editor e Tele e E 85 9 6 rede NNN 86 Sistemas Inform ticos 2012 2013 5 AC DE O Ce A CONFIGURABLE IDE Informatica 9 7 Ampliaci n del manual de usuario eese rones 87 9 8 Tateas de caracter Se Cl E 89 9 8 1 Adaptaci n a LINUX y MacOS uacmiaianeiniossiadacad
6. green circle and the rest with a grey circle Figure 49 Project browser panel The popup menu of each file and folder is as follow New Project Open Project Save Project Add Opened Files New file Add File s Remove file Delete File Set File as Compilable Unset File as Compilable Set File as Main File Unset File as Main File Add Folder Remove Folder SE 9090 Xr Ut Berk Figure 50 Project browser popup menu All these options have been explained before on Chapter 3 3 User s Manual 75 ACIDE A CONFIGURABLE IDE Facultad de Inform tica 5 FILE EDITOR PANEL In the file editor panel are displayed all the opened files by tabs Each tab is named by the name of the file it contains aggregates dl H aggregates ra E aggregates sq D bom d D family d E family ra x family sql E relop dl x 0 J c of d Co WE S Aggregates Datalog Formulation E employee Name Department Salary employee anderson accounting 1200 employee andrews accounting 1200 employee arlingon accounting 1000 employee nolan null null employee norton null null employee randall resources 800 employee Sanders sales null employee silver sales 1000 employee smith sales 1000 employee steel sales 1020 employee sullivan sales null Number of employees total employees T Figure 51 File editor panel When a file is mod
7. 8 2 2 CLOSE It will close the connection with the database 8 2 3 REFRESH It will refresh the database node User s Manual 83 Facultad ACIDE A CONFIGURABLE IDE Inform tica 8 2 4 EXECUTE QUERY It will displays a window with a text field to input queries in SQL in the database Figure 62 Execute query When user clicks on OK button the results are showed on the Data View Data View will be further explained in Chapter 8 4 5 Expanding this node there will be three folders below it tables views and integrity constraints Figure 63 Expanding database node User s Manual 84 ACIDE BET A CONFIGURABLE IDE Inform tica 8 3 TABLES NODE The childrens of this node will be all the tables of this database Its popup menu ls Create Table with Datalog Create Table in Design View Create Table with SOL E Paste Figure 64 Tables node popup menu 8 3 1 CREATE TABLE WITH DATALOG This option is only enabled if the panel is connected with DES The user can create a table with a Datalog command in a window similar to the window of Execute query action Chapter 8 2 4 8 3 2 CREATE TABLE WITH DESIGN VIEW With this option the user can create a new table usign a design table with four columns to choose name of the field type primary key and not null D Design View new table Figure 65 New table With the new rows can be inserted in the design table If you w
8. A Configurable IDE y aplicarla a la rejilla de datos o Se deben admitir los mismos atajos de teclado son diferentes para cada idioma e Ordenaci n o Al pulsar por primera vez sobre el nombre de un campo se debe ordenar en sentido creciente el primer registro mostrado con el menor valor para ese campo Al pulsar sucesivamente sobre el mismo campo se debe cambiar el sentido del orden de creciente a decreciente y viceversa o Nota Sistemas Inform ticos 2012 2013 42 ACIDE or A CONFIGURABLE IDE 74 Inform tica A rellenar por primera vez la rejilla con los registros procedentes de la base de datos no se debe aplicar ning n tipo de ordenaci n e Filtro o Filtro por contenido Al seleccionar el contenido de un campo se puede filtrar por ese valor con la entrada Filtrar por contenido Fllter by content del menu contextual de la celda o Filtro excluyendo el contenido Al seleccionar el contenido de un campo se puede filtrar por aquellos registros que no contengan ese contenido con la entrada Filtrar excluyendo el contenido Filter excluding content o Quitar filtro Entrada en el men contextual en la barra de nombres de campo Quitar filtro Discard filter o Notas Al rellenar por primera vez la rejilla con los registros procedentes de la base de datos no se debe aplicar ning n tipo de filtro Si hay un filtro aplicado se debe anotar en la barra de estado de la ventana Datos con el texto Filtrado Filt
9. 3 3 13 E eeaeee 35 3 3 14 one 36 3 3 14 1 Compilation based on Extension esee nennen nennt teneras 36 3 3 14 2 Compilation based on Marked files for compilation 37 3 3 15 EXC CUO PrO GE 39 3 3 16 Sieten UC 40 3 3 17 Unsetcompilable le inn n 40 3 3 18 BO GVA Eeer 40 3 3 19 Unset main UE 40 3 4 Mal Bed E 41 S MEM D m o E E 41 92 OWS T EE EE E A 41 SNE 41 944 Data base VM veiene 41 3 5 TN 42 D RON 42 SS Es Jeu lE OL ME 42 O 9 L2 DO CUISINE EE 43 ood Mody NNN 43 User s Manual 4 AC DE O Ce A CONFIGURABLE IDE Inform tica 3 5 1 3 1 Reserved words configuration esent ntn nennen nnne nnns 44 Gelee Delmiters COMM BUT ATION ye casco nom Ucet nii imu motio Re 45 55 133 Remarks eer EC Te e ass cicuta ustienipi risu nanai dato ads 46 p DENN 47 552 Grammar ie An E 49 Saal New prama E 49 0 59 22 Lodd 21 000 000 PP 51 i oh Avo MN TT 51 Dd AT DG E 52 DOUG Say SOT AIM AAS uocem ERR E GINE os 52 DOG TN 52 NT o OE ESE erect re cee ee eet 53 3 5 4 File editor COMMS oran 54 3 5 4 1 File editor display options configuration eee 55 GE Mas 6019 1 5 EE EE EN 55 GS EENID IE EEE 55 3 5 4 4 Maximum line number to send to console esses 56 3 5 4 5 Send to console confirmation esee eene neret nnne nnns 56 oiu
10. ACIDE A CONFIGURABLE IDE entradas de men incluidas por defecto en ACIDE A Configurable IDE y definir otras totalmente nuevas similares a los botones de la barra de herramientas Las tareas detalladas son las siguientes e Extender las implementaciones del manager para poder realizar las acciones de la Vista Dise o A adir y eliminar columnas O o Cambiar nombres y tipos de las columnas o Cambiar las restricciones clave primaria y no nulos o Recuperar el estado anterior de la tabla si se produce un error o No permitir modificar los esquemas de tablas no vac as e Implementar la nueva configuraci n de los menus Para ello se han llevado a cabo las siguientes tareas o Definici n de una estructura para los nuevos archivos de configuraci n de menus o Definici n de las clases que gestionar n la informaci n extraible de los documentos de configuraci n de menus o Creaci n de m todos que creen el menu por defecto para salvaguardar el correcto comportamiento de la aplicaci n en caso de que los documentos de configuraci n est n mal definidos o Creaci n de la nueva ventana de configuraci n de menus o Definici n del manager de iconos a adidos que copia dentro del directorio de la aplicaci n las im genes que han sido definidas como iconos de componentes de menu e Modificar la ventana de configuraci n de consola a adiendo un nuevo campo para introducir los par metros del comando e Permitir
11. Alcance Direcci n 5 Texto seleccionado a Adelante a Documento actual Atr s Todos los documetos abiertos Todo Figura 25 Ventana de busqueda Sistemas Informaticos 2012 2013 76 ACIDE BET A CONFIGURABLE IDE Inform tica d g seen ie Escriba texto para el reemplazo Opciones Coincidir may sculas y min sculas Expresiones regulares C Palabras completas Alcance Direcci n Texto seleccionado Adelante Documento actual Atr s Todos los documetos abiertos j Todo PTE Figura 26 Ventana de reemplazamiento 9 3 1 NUEVAS FUNCIONALIDADES En primer lugar vamos a exponer las nuevas funcionalidades a adidas a estas ventanas durante este curso A nuestro juicio eran funcionalidades muy necesarias por lo que se les concedi prioridad dentro de la planificaci n para que su realizaci n fuera posible 9 3 1 1 BOT N ESPECIAL Como se puede observar en Figura 25 e Figura 26 se ha a adido un nuevo bot n llamado Especial para cada campo de texto tanto el de b squeda como el de reemplazamiento La funcionalidad de este nuevo bot n es dar a elegir al usuario entre dos caracteres especiales t y p para la b squeda de tabulaciones y saltos de p rrafo respectivamente Sistemas Inform ticos 2012 2013 77 SN Facultad C O E S de A CONFIGURABLE IDE Informatica t Add tab special character Option p Add paragraph s
12. ESSFPR ESSINTLOG S ESSMDS d ESSMDSPRS Yer 199 ESSOPRID ESSPARLOG CHAR G NOT NULL ESSPAYCNF CHAR i NOT NULL ESSPAYREO DATE 7 NOT NULL Must be numbers or NOYR ESSPAYTRY CHAR 1 NOT NULL ESSPRALOG NUMBER 8 NOT NULL New or old account or Both ESSPRATYP CHAR 1 NOT NULL Sequence ID of parameter value ESSPRC NUMBER 4 1 NOT NULL Status of parameter value ESSPRDCOD DATE 7 NOT NULL Interest rate in percent ESSPRERES DATE 7 NULL Time of update ESSPRS Sort order Separate columns with comma VARCHAR2 64 NULL Date of transactions or NULL for GIbEdt ESSPRSBAS NUMBER 8 NULL Verification ESSPRSREP VidEdt AccTy ID ESSPRSSMP ESSRCO ESSREPCOD ESSRPT ESSSEL ESSSELDBU RE 1 mmm mmm Figura 3 Captura de pantalla de TOra Sistemas Inform ticos 2012 2013 15 A CONFIGURABLE IDE Entre el periodo acaecido entre versiones anteriores y sta ha aparecido en el mercado un proyecto con caracteristicas similares a ACIDE llamado ASPIDE 18 que tambi n hemos tomado como referencia ag tg geng H GAD Ga 9s e ds visualaspworkspace USEDE divdb myname mypasswd gt BA GraphColouring o Eg HammtonianPatn Kg Travel amp gencyRoutes DN visualaspproject gt H travelMapping al gt F travelConfig typ gt By UnityBank E flight rel Id PromX ToY Company ROM dbAirports airportUser airportPasswd USE codeshare rel Companyl Company2 FlightId RON dbCommercial commUser commPasswd MAPTO c
13. Inform tica 3 ABSTRACT This project of Computing Systems consists of the implementation of some new versions of a previous project called ACIDE A Configurable IDE made in various phases as project of Computing Systems At first it was implemented by Diego Cardiel Freire Juan Jos Ortiz S nchez and Delf n Rup rez Cafias during the 2006 2007 academic year The following version was made during the 2007 2008 academic year by Miguel Mart n L zaro The most recent version until this was implemented by Javier Salcedo G mez during 2010 2011 academic year This project always was supervised by Fernando S enz P rez ACIDE is an integrated development environment which can be configured and used for different programming languages More details about this project can be consulted in the written papers 1 2 and 3 of Chapter 15 Referencias The previous version of this project presented a standardized source code and a confinable and useful performance in general about projects management and working with different programming languages In this new version we have worked in the connection of the application with ODBC and the program Datalog Educational System DES 4 a Prolog based implementation of deductive database system Then this version consists on a DES GUI Front End Also several errors have been repaired and we have added new functionalities to older versions like the new menu configuration text sear
14. consola cuando se traslade all el foco La ventana se acoplar debajo del Explorador de proyectos de ACIDE A Configurable IDE Si el Explorador de proyectos est cerrado Si la ventana Bases de datos no est visible la presentaci n ser como antes con el explorador de proyectos abierto Con el explorador de proyectos cerrado Sistemas Inform ticos 2012 2013 29 ACIDE BET A CONFIGURABLE IDE Informatica En lugar de la vista plana para la ventana Bases de datos en 22 se debe usar una vista en arbol con nodos desplegables similar a la del Explorador de proyectos de ACIDE A Configurable IDE o el arbol del catalogo de MySQL Workbench Figura 7 Cada nivel del arbol se debe poder expandir o colapsar Su nodo raiz debe ser Databases y sus hijos inmediatos los nombres de las bases de datos conectadas con DES Cada base de datos tiene como hijos inmediatos Tablas Tables Vistas Views y Restricciones de integridad Integrity constraints Por ejemplo Y Databases gt Test Tables e s b string varchar 20 a number integer o Columns a number integer b string varchar 20 o PK b o FK sla gt t a o FD a gt b o IC t X X 0 X 10 t X s X X Views e v a number integer b string varchar 20 o Columns a number integer b sstring varchar 20 o SQL Text SELECT ALL FROM t NATURAL INNER JOIN s o Datalog Text V
15. e Permitir la definici n de diferentes zonas en la barra de herramientas para agrupar a los comandos por intenci n como por ejemplo carga listado o flags e Permitir habilitar o deshabilitar el parseado de las variables de ACIDE A Configurable IDE e A adir autom ticamente la extensi n a los archivos que se guarden por ejemplo los proyectos Esto se implementaria definiendo en la configuraci n l xica una extensi n de archivo Cuando se aplica una configuraci n l xica a un editor de archivo al guardarlo se le asocia directamente y si no la tiene asociada se le pide al usuario e Permitir definir un archivo para el log de la consola Sobre este archivo se debe volcar la entrada y la salida de la consola e En la configuraci n de la consola se debe dejar activado por defecto el eco de comando e Permitir definir los pares de delimitadores en lugar de estar predefinidos par ntesis llaves corchetes Habr a que a adir un frame denominado Configuraci n de delimitadores en la configuraci n del l xico e A adir comentarios multil nea en la ventana de configuraci n de l xico e Mostrar ordenados alfab ticamente primero las carpetas y despu s los archivos del proyecto o poder ordenarlos manualmente arrastrando los nombres de un sitio a otro e Permitir localizar la aplicaci n a otros idiomas simplemente a adiendo un nuevo fichero de configuraci n de idioma Permitir definir los atajos del teclado en estos fi
16. ximo n mero de l neas para enviar a la consola Idioma i E Confirmaci n del env o a la consola r Figura 32 Confirmaci n del env o a la consola Sistemas Inform ticos 2012 2013 85 ACIDE A CONFIGURABLE IDE Facultad de Inform tica 9 6 BARRA DE HERRAMIENTAS Al igual que ocurr a con el panel de los editores de archivo en la barra de herramientas no se han realizado tantas tareas como en otros aspectos de la aplicaci n El trabajo en esta secci n se realiz durante la primera y segunda iteraci n Las nuevas funcionalidades a destacar son A adido bot n para enviar contenido de archivo a la consola Como se ha comentado antes ya exist a la funcionalidad que enviaba el contenido completo del editor de archivo activo a la consola Esta acci n se realizaba a trav s del men contextual del editor de archivos Con el nuevo bot n a adido esta acci n es m s f cilmente accesible ya que est a la vista del usuario en la barra de herramientas cb Ac d Figura 33 Bot n para enviar el contenido del archivo a la consola Aplicaci n de cambios a la configuraci n de la barra de herramientas En versiones anteriores de la aplicaci n el usuario modificaba la barra de herramientas en la ventana correspondiente y al aceptar los cambios estos se ve an reflejados durante el trabajo en esa sesi n Sin embargo en una nueva sesi n de trabajo los cambios antes introducidos se hab an perdido
17. 1 Figura 15 Vista de datos Tambi n se ha creado otra vista para la modificaci n del esquema de aquellas tablas o vistas que se encuentren vac as A esta ltima vista se puede acceder a trav s de la entrada del ment contextual Vista de Diseno Sistemas Inform ticos 2012 2013 60 A CONFIGURABLE IDE Figura 16 Vista de dise o A continuaci n se comenta de forma detallada la implementaci n de estas funcionalidades 9 1 1 ESQUEMA DE LAS BASES DE DATOS Las distintas bases de datos se representar n mediante una estructura jer rquica en la que se mostrar n las diferentes tablas vistas y restricciones correspondientes a la base de datos seleccionada S E Bases de datos E 8 des 5 09 Tablas EF 23 employee name string varchar department s BM Columnas Q name string varchar Q department string varchar 9 salary number integer S 5d parking name string varchar lot string varcha S E Columnas EI name string varchar lot string varchar Er ds a string varchar b number integer mE Columnas Zm a string varchar mim Figura 17 Esquema de las bases de datos Sistemas Inform ticos 2012 2013 61 ACIDE A CONFIGURABLE IDE La estructura de paquetes en la que se reparte esta funcionalidad se detalla a continuacion e acide gui databasePanel contiene la clase AcideDataBasePanel encargada de la gesti n del rbol esquem tico de las bases de datos o acide
18. 1 D Cardiel Freire J J Ortiz S nchez y D Rup rez Cafias ACIDE A Configurable IDE Universidad Complutense de Madrid 2007 2 M Mart n L zaro ACIDE 0 2 a configurable integrated development environment Universidad Complutense de Madrid 2008 3 J Salcedo G mez ACIDE A Configurable IDE DES GUI Front end Universidad Complutense de Madrid 2011 4 P gina oficial de DES http www fdi ucm es profesor fernan des index html 5 P gina oficial de Crimson Editor http www crimsoneditor com 6 P gina oficial de JEdit http www jedit org 7 P gina oficial de JBuilder http www borland com jbuilder 8 P gina oficial de JCreator http www jcreator com 9 P gina oficial de C Builder http www borland com cppbuilder 10 P gina oficial de Eclipse http www eclipse org 11 Pagina oficial de Visual Studio Shell http msdn microsoft com en us library vstudio bb685691 aspx 12 Pagina oficial de WinEdt http www winedt com 13 Pagina oficial de NetBeans http netbeans org 14 Pagina oficial de MS Access http office microsoft com es es access 15 P gina oficial de Oracle http www oracle com 16 P gina oficial de Postgres www postgresql org 17 P gina oficial de TOra http torasql com 18 P gina oficial de ASP IDE http www mat unical it ricca aspide 19 Pagina oficial de Google Drive https drive google com 20 Pagina oficial de Google Code http code goo
19. 11 tt search engine will find gat get got Note that the search engine don t find goot this is because the dot represents a single character and only one 14 2 2 THE BACKSLASH A It is used to tag the next character in the search expression so that it acquires a special meaning or stop having him The backslash is never used by itself but in combination with other characters Used for example in combination with the point this has not its normal meaning and behaves as a literal character In the same way placing a backslash followed by any of the special characters discussed below these do not have special meaning and become literal search characters As mentioned previously the backslash can also give special meaning to characters that do not Below is a list of some of these combinations e Nt represents a tab e Ar represents the carriage return or return to top the place where the line starts again e An represents the new line character through which a line begins Remember that in Windows is needed a combination of r n to start a new line while Unix uses only n and classic Mac OS uses only r e a represents a bell or beep that occurs when you print this character e Ne represents the Esc or Escape e Vi represents a page break e v represents a vertical tab e x is used to represent ASCII or ANSII code e Nu is used to represent UNICODE characters with its code
20. EEE 18 1 3 FREUDE 18 2 Moena A E 19 2 1 Tec 00 0 19 2 2 The Main CGN p 19 25 BT p 21 2 4 EN 21 VANN 22 3 1 PI TMQ EE 22 Meg IN 22 D L2 OP E 22 NN 22 3 1 4 Open EEE 23 lo Oo TE 23 3 1 6 Close all files aaa cine 23 ML AVC TANG 23 Sd avete dS omisi duin iones 23 3 1 9 Dave all files os 23 User s Manual 2 ACIDE DE A CONFIGURABLE IDE 3 1 10 Bee ai m 23 3 1 11 Fv 23 3 2 ICH E 5 OD EEE EE EE 25 LUN 25 AA e EE P 25 Ihos CODY 25 e a T E EEE A 25 SW MC E 26 Ee e 26 lla O CO 26 5 SN 26 A A e Ee 28 3 3 EE EE 32 Sola NOF PRO OCU EE 32 Ss Dl 0 00 0 o EE 33 NNN 34 NENNE 34 e SNEP eege 34 O DAVE ues 34 Sahle NEW OCC TE 34 3 3 8 Add all opened files s srsesrarerearsvsrerversesnsrors vsesvarnrenssenranesrnesnnrorsarsesesrnrenesenteresenennsrensernenn 34 SS EE e er E 34 User s Manual ACIDE DIET A CONFIGURABLE IDE 3 3 10 Remove ME T 34 3 3 11 Delete ME 34 SNP MEME e e here EE 35
21. File Edit Project View Configuration Help DES JD BD ip onst process isting dbschema pdg strata aboish listet dearet cd Is pwd log nolog verbose noverbose builtins help Acrobat Reader lt DES3 3 e vd egates d aggregates d EJ aggregates ra E aggregates sql H bom d E femiy di ES family ra E family sql E reop d EJ aggregates ra to Y DIE bom dl 3 Aggregates family d 3 Q9 family ra S SOL Formulation family sal vd relop dl 7 multiline on create or replace table employee name string department string salary int insert into employee values anderson accounting 1200 insert into employee values andrews accounting 1200 insert into employee values arlingon accounting 1000 3 insert into employee values nolan null null insert into employee values norton null null insert into employee values randall resources 800 insert into employee values sanders sales null insert into employee values silver sales 1000 insert into employee values smith sales 1000 insert into employee values steel sales 1020 insert into employee values sullivan sales null GROUP BY department Datalog equivalent rules ds A B group by employee C A D A B max D No integrity constraints 5 3 Integrity Constraints development off multiline off m examples aggregates sd Grammar b
22. MENU It contains the following menu items for the common grid editor management Sort by NF Filter by Content Filter Excluding Content Discard Filter Hide Show Columns e Figure 78 Data view view menu Next all the previous menu items will be further explained 8 4 5 2 4 1 SORT BY It displays a window with a grid to select the table field by which sort the table and the criteria Ascending or Descending D Sort by ea Figure 79 Data view sort by window 8 4 5 2 4 2 SORT BY COLUMN It contains the following menu items for the common grid editor management User s Manual 95 Facultad de Inform tica ACIDE A CONFIGURABLE IDE 15 Ascending Descending e Ascending it will order the grid ascending by the selected column It also H can be done with the icon L of the icon bar e Descending it will order the grid ascending by the selected column It also z can be done with the icon de of the icon bar 8 4 5 2 4 3 FILTER BY CONTENT Filters the grid by the content of the selected field It also can be done with the TF icon of the icon bar 8 4 5 2 4 4 FILTER EXCLUDING CONTENT Filters records that do not contain the content of the selected field 8 4 5 2 4 5 DISCARD FILTER I Removes the filter It also can be done with the icon et of the icon bar 8 4 5 2 4 6 HIDE SHOW COLUMNS It will display a window with a grid to select the col
23. Manual ACIDE DET A CONFIGURABLE IDE 8 3 1 Create table with Datalog sesenta nnns 85 90 2 2 Create table Wit DESEN VIEW eegener 85 9 2 9 Create table WIG SU Lasso dea 86 25 A c PA o A 86 8 4 TD ee 86 e Nenne 87 e E er PEPA o A 87 or EE EEN 07 S MEMBRA QU iia 07 EEN 88 8 4 5 1 Actions permitted on the grid esee 88 JG 2 Menu DOE Lh1zm0 EI NPIMMINIMINE 89 FE ENN 89 MLE PL 89 015 252 In DOPE EE 90 O ol Lo PEN Qh eee cee errno eee er dE MEDIE IET 90 TN E 91 UN 91 99 22 De Die 9 0 EE 91 TLL UNN 91 TL e 91 LL NN 92 User s Manual 8 AC DE O Rus A CONFIGURABLE IDE i SPUR EA LI T RRA 92 E EEG EEE 92 TL O e ME 92 ML DOCU ce ee ec en ee Po TE 92 E EE MEN EE 93 E NEM E 93 een Bc A 94 sp REE EE 94 m DE En e E 94 LL C eut aa 95 L MN 95 LE Vu 95 LL Ne 95 OL DOE DY ON 95 Odo2d3 MN P 96 045 244 Filter eat eegener 96 OSE TN 96 8 4 5 2 4 6 Hide show columns eene nenne rro 96 oi NN 97 TLL NEED APP A 97 0259 29 22 Mr 97 DD FP 98 User s Manual AC DE O Ce A CONFIGURABLE IDE Informatica Od ee Ree 98 O4 Ada candidate E 99 849 Add functional dependenty scsi dana dadas 99 8 4 10 Add integrity constraint esses nennen tenente tenent careers 100 8 5 Children of table n
24. Manual 91 SN Facultad C i D E S de A CONFIGURABLE IDE Informatica 8 4 5 2 2 3 COPY Copies the selected text active field from the grid and put it into the System clipboard It also can be done with the key combination Ctrl C or with the icon L of the icon bar 8 4 5 2 2 4 PASTE Pastes the text stored in the System clipboard in the current position of the active field in the grid It also can be done with the key combination Ctrl V or with the icon C of the icon bar 8 4 5 2 2 5 CUT Cuts the selected text active field from the grid and put it into the System clipboard It also can be done with the key combination Ctrl X or with the icon Ly of the icon bar 8 4 5 2 2 6 FIND Displays the search text window for the data view Figure 73 Data view search window It also can be done with the key combination Ctrl F or with the icon of the icon bar 8 4 5 2 2 7 REPLACE Displays the replace text window of the data view User s Manual 92 ACIDE A CONFIGURABLE IDE Figure 74 Data view replace window When a general replacement is performed it displays the following dialog to the user informing of the number of replacements ene Een o Total number of replacements 43 Figure 75 Data view number of replacements 8 4 5 2 3 RECORDS MENU It contains the following menu items for the common grid editor
25. String DEFAULT PATH configuration menu En la configuraci n de los menus las constantes que expresan los nombres y los nombres de los iconos de cada opci n del menu terminan con NAME e IMAGE respectivamente Static final String COMPILER NAME static final Imagelcon COMPILER IMAGE e En clases que se refieren a ventanas de configuraci n los nombres de las variables terminan con el tipo de componente al que hacen referencia private JTabbedPane tabbedPane private AcideFileMenuNewPanel fileMenuPanel private JButton acceptButcon e En todas las clases que corresponden a ventanas de configuraci n aparecen los siguientes m todos Builds the ACIDE A Configurable IDE configuration window components private void initComponents Adds the components to the ACIDE A Configurable IDE to the configuration window private void addComponents Sets the ACIDE A Configurable IDE configuration window JconfiguratLon private void setWindowConfiguration Sets the listeners of the configuration window components private void setListeners Sistemas Inform ticos 2012 2013 22 ACIDE A CONFIGURABLE IDE Closes the window private void closeWindow e En todas las clases que corresponden a la barra de menus y menus contextuales aparecen obligatoriamente estos m todos Builds the ACIDE A Configurable IDE configuration window components privat
26. Tab selects next attribute e Tab Shift selects previous attribute e Esc deselects the selected object User s Manual 113 ACIDE BEI 11 ACIDE VARIABLES The application supports some variables in the Console Panel External Applications Tool Bar and the shell loaded in the console panel such as e activeFile references the current active file in the file editor panel e activeFileName references just the current active name file in the file editor panel e activeFilePath references just the current active path file in the file editor panel without including neither file name nor file extension e activeFileExt references just the current active extension file in the file editor panel e mainFile references the file in the file editor panel that has been marked as MAIN file e mainFilePath references the just file path in the file editor panel that has been marked has MAIN file without including neither file name nor file extension e mainFileExt references just the file extension in the file editor panel that has been marked as MAIN file User s Manual 114 AC DE O Ce A CONFIGURABLE IDE Inform tica 12 ACIDE DEFAULT COMMANDS As explained in Chapter 3 5 8 with the menu configuration the user can assign to the application the actions that will be executed when menu items are pressed down All these commands start with The commands assigned by default to ACIDE A Con
27. View menu e Alt Shift L Shows the log tab Shortcuts in Configuration menu e Ctrl Shift L Documents lexicon e Ctrl Shift X Modifies the lexicon e Ctrl Shift T Creates a new grammar e Ctrl Shift A Actives line wrapping e Ctrl Shift F Opens the search in console window e Alt S Changes language to Spanish e Alt E Changes language to English Shortcuts in Help menu e Ctrl H Shows this document Shortcuts in Data view e Up arrow goes to previous record e Down arrow goes to next record User s Manual 109 ACIDE e A CONFIGURABLE IDE Informatica e Tab goes to next field e Shift Tab goes to previous field e Alt F4 closes the Data view window e Ctrl Z undoes the updates in the grid e Ctrl Y redoes the last undo in the grid e Ctrl C copies the selected text active field from the grid to the System clipboard e Ctrl V pastes the text stored in the System clipboard in the current position of the active field in the grid e Ctrl X cuts the selected text active field from the grid to the System clipboard e Ctrl F shows the search text window for the Data view e F5 refresh the view of the grid e Ctrl home goes to the first record e Ctrl end goes to the last record e Ctrl H links directly to the present document Shortcuts in Menu configuration e Uparrow selects previous object e Down arrow selects next object e Ctr
28. Workbench It contains as default the submenus File Edit Project View Configuration and Help The Menu Bar provides user to do the most of actions that are provided in ACIDE A Configurable IDE The root label of this file is acide configuration menu AcideMenuItemsConfiguration to reference the Java class AcideMenultemsConfiguration Inside this label there is only one basic label itemsManager This label has two nested list labels Inside of the most nested there are the acide configuration menu AcideMenuSubmenuConfiguration objects that define the basic menus that exit on Menu Bar They have the following nested labels e lt _name gt the name of the submenu e lt _visible gt with true or false value It sets if submenu is visible or not e lt _erasable gt with true or false value It sets if submenu is erasable or not erasable it is a default submenu e lt _image gt for submenus this label is empty e lt _itemsManager gt it is equal to root itemsManager label It contains all the menu objects that are inside the submenu User s Manual 123 ACIDE O Facuad A CONFIGURABLE IDE d Inform tica For the menu items the label is AcideMenultemConfiguration They have the following nested label e e lt _name gt the name of the item e lt _visible gt with true or false value It sets if item is visible or not e lt _erasable gt with true or false value It sets if item is erasable or n
29. You can search for paragraph breaks and tabs by the special marks p and t These special marks can be written in the text box or selected in the Special combo menu e Recents searches This combo menu displays a list which contains all the recent searches that have been executed before When user selects one this appears in the Text box e Replace text box Here is where user enters the replace text User s Manual 29 ACIDE 3 Facts A CONFIGURABLE IDE d Inform tica e Special You can replace with paragraph breaks and tabs by the special marks p and t These special marks can be written in the text box or selected in the Special combo menu e Recents replaces This combo menu displays a list which contains all the recent replacements that have been executed before When user selects one this appears in the replaces Text box e Options o Case sensitive this option is used to search for and replace strings without having or taking into account the Upper Lowercase o Regular expressions regular expressions search associated with a search pattern More information about Regular Expressions in Chapter 14 o Whole words find whole words only e Scope o Selected text search within a selected text o Current document document search starting in a certain position of the active file of File Editor o All opened documents searches in all opened files on the file editor e Direction o Forward searches from
30. _lexiconConfiguration path of lexicon which is used at console e _commandsConfiguration path of XML file that contains commands history with which we want to start the console explained in Chapter 13 6 Sdvsvs 13 3 5 LEXICONASSIGNER CONFIGURATION It has three basic labels e list acts like a Manager inside there is a_list label with another list label nested It is a list of AcideLexiconAssigner objects These objects describe possible lexicons to use at console They have the following nested labels o description name of lexicon o _extensionList it has a group of nested String labels with the possible extensions for the lexicons o lexiconConfiguration path of XML file that configures lexicon e consoleLexiconConfiguration path of XML file that configures lexicon which is currently in use e _applyLexiconToConsole with true value lexicon is applied to console with false value it is not applied 13 4 PROJECT CONFIGURATION Project configuration is edited in acideProject files In this type of files are arranged in separate lines different project properties These are line by line the following Project Name Project Path Compiler Path Compiler Arguments Compiler All Files User s Manual 127 ACIDE A CONFIGURABLE IDE File separator File extensi n Executable path Executable arguments Console Console Console Console Console Console Console Console Console C
31. de los elementos Sistemas Inform ticos 2012 2013 70 ACIDE aya A CONFIGURABLE IDE Inform tica que aparecen en la barra de menus solo pueden ser afiadidos submenus algo l gico en la barra de men s s lo aparecen menus no tems 9 2 2 CONFIGURACI N MEDIANTE LA APLICACI N Despu s de esta profunda reestructuraci n de la configuraci n y los archivos que la definen es l gico pensar que la ventana de configuraci n de menu en ACIDE A Configurable IDE tambi n ha sufrido una profunda transformaci n Ahora no s lo hay que decidir sobre la visibilidad de los elementos sino tambi n sobre su nombre la acci n que realizan el orden en el que aparecen etc En la siguiente imagen se muestra un ejemplo con la configuraci n por defecto del men Archivo D uos prs RE RANA RS LY Lee Fila Visible Borrable Imagen y resources icons resources icons fresources icons resources icons resources icons fresources icons resources icons fresources icons fresourcesficons fresourcesficons UI A 4 of o N D a w P2 i pa D D D D D D D D D D D A 99 9 Sen Senn a Sen um EEE d dd 33 pa KA mahas an ex eegen ees or ct pe ob amant
32. debe abrir un cuadro de di logo que permita escribir el car cter de separaci n y con los botones Aceptar OK y Cancelar Cancel Despu s se proceder a seleccionar el fichero y cargar los datos como antes XML XML Se abrir un cuadro de di logo para seleccionar un fichero con los botones Aceptar OK y Cancelar Cancel Se leer el fichero XML con la estructura indicada anteriormente Si un valor es vac o se carga el valor NULL o Ejecutar consulta Execute Query Se abre un editor de texto en ACIDE A Configurable IDE y se informa mediante un cuadro de di logo que la consulta se ejecuta enviando el contenido del editor a la consola o seleccionando Ejecutar consulta Execute Query del menu contextual del editor una nueva entrada que deb is anadir despu s de la que ya existe Enviar contenido a la consola Este cuadro informativo tiene el bot n Aceptar OK pero se puede cerrar tambi n con la tecla Esc y una casilla de verificaci n para no volver a mostrar el mensaje La acci n para rellenar el contenido de la ventana resultante se describe en el apartado 7 2 2 2 o Imprimir Print Se imprime la tabla abriendo el cuadro de selecci n de impresora Sistemas Inform ticos 2012 2013 48 AC DE O Ce A CONFIGURABLE IDE Informatica lt Separador gt o Cerrar Close Cierra la ventana Datos Atajo de teclado Alt F4 e Edici n Edit o Deshacer Undo Atajo de teclado Ctrl Z o Rehacer Redo Atajo d
33. do the following operations e Add button adds a new command to the command list in the table e Remove button removes the selected command from the command list e Direct edition on the tables the user can modify the commands by editing directly on the table However the changes will not be applied until the focus changes or the user presses down the ENTER key In the console panel tab the table contains the following parameters e Name text to display in the button If this field is empty the application will assign it a number as name by default e Command command itself It admits the insertion of ACIDE A Configurable IDE special variables that are further detailed in the Chapter 11 of the present document e Help text hint text of the button e Image image for the button which can be selected by the option available in the popupmenu of the column e Extra parameter shows a combo box with the following options NONE TEXT FILE DIRECTORY Each one of the previous options will ask the user for the selected type with different dialog windows e Is executed in the OS shell indicates if the command is executed in the Operative System shell or in the loaded shell in the console panel In the external applications panel tab the table contains the following parameters e Name text to display in the button If this field is empty the application will assign it a number as name by default e Executable path executable p
34. el documento 2 el unico programa que se menciona es Visual Studio Shell 11 Se trata del conocido Visual Studio de Microsoft pero reducido a su estructura basica de tal forma que el usuario pueda adaptarlo para programar con un lenguaje propio y crear herramientas personalizadas En cuanto al estado del arte en 3 se menciona que para esa version de ACIDE A Configurable IDE se han seguido tomando como referencia los programas JEdit 6 Crimson Editor 7 y Eclipse 10 Adem s se han a adido como referencia WinEdt 12 y NetBeans 13 En esta revisi n del proyecto se ha trabajado sobre todo en la conexi n de la consola de ACIDE con ODBC y DES Para ello se ha tomado como referencia los entornos gr ficos de Sistemas Gestores de Bases de Datos de los propios fabricantes MS Access 14 Oracle 15 Postgres 16 y la herramienta TOra 17 para la adici n de nuevas propiedades y funcionalidades en la mejora del proyecto C f TOm 1 1 4 nystem 9GAIH 6 1 7 0 1 Schema Browser QM File Edit Toole Browser Windows Help SEBO SRB DKF KSC BE SSO SMG EE ALB ETE L Le dl ESS v Tables Views Indexes Sequences Synonyme pusa Triggers Error ta Information soi ESSCHACOD ESSCHK BER tA RSINICW ESSCSTCOD VE ESSDCS 1 ESSDCSCOD 1988 2001 01 14 00 00 00 O ESSDCSMSG 1998 2001 01 21 00 0000 O BEGOIADTEEUT 1996 2001 01 26 00 00 00 O ESSERT ESSFND CO OOO ESSFNDSTT Content editor filter settings
35. expo RPAEENH Ma mec Type Token SXIP Figure 26 Modify grammar 3 5 2 4 SAVE GRAMMAR Saves the current grammar configuration into a file with JAR extension 3 5 2 5 SAVE GRAMMAR AS Saves the current grammar configuration into a file with JAR extension in a different path 3 5 2 6 CONFIGURE PATHS For the creation modification and grammar configurations to hand it is mandatory to define the required tools paths as it was mentioned in the first chapter of the present document It displays the following window User s Manual 52 A CONFIGURABLE IDE sc A A mm zk C Program Files x86 Java jdk1 7 0 21binljava exe C Program Files x86 Java jdk1 7 0_21 bin javac exe C Program Files x86 Vavaljdk1 7 0 21binljar exe Figure 27 Set paths In each one of the text fields the user will select the path to each one of the required tools The window also contains the following components e Check box if it is selected the application will use the path selected in the text field that corresponds if it is disabled the application will use its Operative System CLASSPATH e Explorer buttons open a dialog window for the files selection 3 5 3 COMPILER The following window will be displayed Figure 28 Compiler configuration The window has the following components User s Manual 53 Facultad le ACIDE A CONFIGURABLE IDE Inform tica e Compiler configuration panel
36. gui databasePanel listeners contiene la clase AcideDatabasePanelKeyboardListener que se encarga de implementar todos los KeyListener de dicho rbol o acide gui databasePanel nodes contiene todas las clases encargadas de construir y actualizar de manera din mica los distintos nodos del panel de bases de datos o acide gui databasePanel popup contiene las clases correspondientes a cada uno de los men s contextuales asociados a los nodos antes mencionados o acide gui databasePanel popup listeners contiene las clases encargadas de gestionar los distintos listeners para los diferentes men s contextuales de los nodos o acide gui databasePanel utils contiene las clases de utilidad para el desarrollo de la implementaci n de las acciones que pueden realizarse desde el men contextual del panel de bases de datos Las restricciones del proyecto en cuanto a este panel nos dec an que deb a ser programado de tal forma que en un futuro se pudieran integrar distintos or genes de datos como as ocurri a mediados de curso integrando ODBC al panel Esta restricci n nos derivaba a tener una interfaz para definir todas las operaciones posibles a realizar desde los men s contextuales de los elementos de las bases de datos Tambi n a realizar la primera implementaci n de dicha interfaz para el origen de datos DES Sistemas Inform ticos 2012 2013 62 ACIDE A CONFIGURABLE IDE interfaz E acide process console Acide Databa
37. logo para seleccionar un fichero con los botones Aceptar OK y Cancelar Cancel Se crear un fichero de texto con todos los registros de la rejilla en ese orden uno por l nea de texto y con todos sus campos en el orden que aparecen en la rejilla Si un valor es NULL se dejar vacio CSV separado por tabulador Tab delimited CSV Igual que el anterior pero el car cter de separaci n entre campos es el tabulador CSV CSV Se debe abrir un cuadro de di logo que permita escribir el car cter con los botones Aceptar OK y Cancelar Cancel Despu s se proceder a seleccionar el fichero y guardar los datos XML Se abrir un cuadro de di logo para seleccionar un fichero con los botones Aceptar OK y Cancelar Cancel Sistemas Inform ticos 2012 2013 47 ACIDE 3 Facts A CONFIGURABLE IDE d Inform tica o Importar Import CSV separado por comas Comma delimited CSV Se abrir un cuadro de di logo para seleccionar un fichero y con los botones Aceptar OK y Cancelar Cancel Por cada l nea del fichero de texto se leer el valor que corresponde al campo en el orden en que aparece en la rejilla Si un valor es vac o se carga el valor NULL Para cada linea del fichero de texto se realizar una inserci n en la tabla como se describi anteriormente CSV separado por tabulador Tab delimited CSV Igual que el anterior pero el car cter de separaci n entre campos es el tabulador CSV CSV Se
38. n ha sido f cil fluida y constante la coordinaci n en el trabajo con el proyecto ha sido la deseada Cada miembro del equipo trabajaba con una copia local de los archivos que estaba modificando y no lo sub a al repositorio SVN hasta que no hab a conseguido la funcionalidad perseguida De esta forma en el repositorio nicamente exist a c digo funcionando correctamente Para evitar cat strofes se hac a una copia de seguridad semanal que guardaba un miembro del equipo en su memoria local As se pierde el riesgo de p rdida de informaci n por un fallo en el cliente SVN En cuanto al trabajo con la documentaci n cada miembro trabajaba con una copia local de la secci n o documento que estuviera modificando En Google Drive 19 se manten an diversos documentos de tareas compartidos en los que el equipo pod a asignar tareas objetivo a cada miembro a fin de evitar la repetici n de las mismas y mejorar la organizaci n Cada vez que se consideraba terminada la tarea a realizar se enviaba por correo electr nico una copia de la misma al miembro del equipo encargado de volcar en un documento final el resultado de los distintos trabajos en paralelo manteniendo los est ndares definidos en la documentaci n Al final de cada d a en el que alg n documento hab a sufrido cambios el encargado del mantenimiento de los est ndares enviaba una copia del documento actualizado a Sistemas Inform ticos 2012 2013 24 AC DE O Ce A
39. nested labels User s Manual 129 ACIDE Oy A CONFIGURABLE IDE Informatica e name it is a summary of the properties defined by the remaining labels It has the following form o Color R G _ B Font Style Case Sensitive o For color will take the values defines in the label color In Font Style appears the name that corresponds to the number defined on the label _fontStyle In Case Sensitive value yes appears if the label _IsCaseSensitive is true and value not if the label _IsCaseSensitive has value false e color same structure as explained for color label above e fontStyle it defines with a number the font style e isCaseSensitive it defines by true or false value if it is case sensitive e tokenList contains a label called list where appears the list of String objects which define the tokens with the properties user has described for this token group Adding removing and editing these strings the user will get the list of tokens 13 5 2 VALIDEXTENSION MANAGER As a Manager it has two nested _list labels Inside the last the user can find String objects labels where he can define extensions valid for the lexicon 13 5 3 DELIMITERS MANAGER Itis a Manager whose list contains String objects With the strings the user defines the valid delimiters for the lexicon 13 6 COMMANDS HISTORY In ACIDE A Configurable IDE is possible to configure a commands history so that when user starts the application a
40. o Executable path path that contains the compiler executable file o Compiler arguments arguments for the compiler e Compiler options panel o Compile all the checked files indicates if all the compilable files have to be compiled or not o File separator file separator to separate each one of the files to compile o Extension file extension of the files to compile e Accept button apply the changes e Cancel button close the window and do not apply the changes 3 5 4 FILE EDITOR CONFIGURATION It contains the menu item options for the file editor configuration management File Editor File editor display configuration Shell p Automatic Indent Database Panel LE Line Wrapping Ctrl May s A Maximum number of lines to send to the console Language j E Send to console confirmation Figure 29 File editor configuration We also explain how to configure the file editor externally with XML files in Chapter 13 3 3 Next we further detail each one of the previous menu item options User s Manual 54 Facultad ACIDE Cs A CONFIGURABLE IDE Informatica 3 5 4 1 FILE EDITOR DISPLAY OPTIONS CONFIGURATION Displays the following configuration window DN File editor display configuration Control Panel Choose font foreground color Choose font background color Restore Default Configuration Preview Panel Font i Monospaced Font PLAIN 12 Figure 30 File editor display o
41. opci n en el men contextual e Afiadir un par metro de configuraci n para habilitar o deshabilitar la pregunta sobre enviar el contenido del editor a la consola 9 9 6 BARRA DE HERRAMIENTAS e A adir bot n para enviar el contenido del editor a la consola e Permitir aplicar los cambios realizados en la configuraci n de la barra de herramientas de forma persistente 9 9 7 AMPLIACI N DEL MANUAL DE USUARIO e Modificar todas las capturas de pantalla existentes en dicho manual e A adir una secci n para explicar c mo ejecutar ACIDE A Configurable IDE en los diferentes sistemas operativos e Incluir una introducci n a las funcionalidades y la interfaz gr fica de ACIDE A Configurable IDE e Modificar las explicaciones sobre la barra de menus e A adir informaci n sobre los paneles que exist an anteriormente pero que no estaban incluidos en dicho manual e Incluir el funcionamiento del nuevo panel de base de datos e A adir informaci n sobre la barra de estado de ACIDE A Configurable IDE y los atajos de teclado e Aportar explicaciones sobre las variables del sistema e Incluir informaci n sobre los comandos por defecto para la barra de men e Informar sobre c mo configurar ACIDE A Configurable IDE desde los archivos de configuraci n e Citar c mo funciona la b squeda con expresiones regulares 9 9 8 TAREAS DE CAR CTER GENERAL e Completar la compatibilidad con Linux y Mac OS Sistemas Inform
42. se enmarca entre las fechas 16 de febrero de 2013 y 30 de abril de 2013 Su principal finalidad fue estabilizar y completar el funcionamiento del rbol del panel y comenzar a a adir una nueva implementaci n del manager para ODBC En referencia a la vista de datos implementar la posibilidad de a adir insertar y modificar tuplas filtrados y ordenaciones Adem s se han solucionado problemas en la b squeda y reemplazamiento en editores y ampliado la funcionalidad en estos campos e Solucionar los errores de actualizaci n que surgieron en el rbol del panel e Incluir los nodos de tipo Vista y de tipo Restricci n de Integridad al rbol e Completar las acciones de los men s contextuales del panel e Modificar la implementaci n del manager de las conexiones de las bases de datos para adecuarlo al patr n singleton permitiendo que s lo haya una instancia que lo implemente e Extender la interfaz del manager para permitir realizar las siguientes acciones en la vista de datos Sistemas Inform ticos 2012 2013 55 d baad Facultad C O E 3 de A CONFIGURABLE IDE lt Inform tica O Actualizaci n de datos inserci n modificaci n y borrado de tuplas en la vista de datos Importaci n y exportaci n de datos en formatos CSV y XML Filtrado y ordenaci n de la tabla Visualizar y ocultar columnas Imprimir el contenido de la tabla A adir la ayuda en el men de la vista de datos Cortar copiar y pegar sobre
43. su m todo opuesto setInstance AcideDatabaseManager newlnstance Con este m todo conseguimos cambiar de DES a ODBC o a los posibles sistemas que en un futuro se afiadan pas ndole como par metro una nueva instancia de la clase correspondiente Sistemas Inform ticos 2012 2013 63 Facultad ACIDE A CONFIGURABLE IDE Inform tica a 8 Fe setInstance d getTables B acide process console DesDatabase Manager acide process console ODEC Database Manager He getTables 85 getTables Figura 19 Clase abstracta AcideDatabaseManager Al igual que antes el diagrama esta resumido obviando el resto de m todos implementados Para futuros desarrollos en los que se desee a adir una nueva conexi n para bases de datos el procedimiento es sencillo Bastar con afiadir una nueva clase que extienda a AcideDatabaseManager e implemente todos sus m todos Adem s ser necesario a adir una nueva opci n de men en Configuraci n Panel de base de datos y que cambie el tipo de la instancia de la superclase 9 1 2 EDICI N Y VISUALIZACI N DE DATOS DE TABLAS Y VISTAS Para poder manipular y visualizar los datos contenidos en las distintas tablas y vistas as como para mostrar los resultados de las consultas ejecutadas sobre ellas desde el Panel de bases de datos se ha definido la interfaz Vista de datos Figura 20 Vista de datos Sistemas Inform ticos 2012 2013 64 AC DE O
44. the Console Panel and the Database Panel The XML file that configures the workbench must be saved in the path configuration workbench The root label of this file is lt acide configuration workbench AcideWorkbenchConfiguration gt to reference the Java class AcideWorkBenchConfiguration Inside this root label there are six basic labels e lt _workbenchLoaded gt with true value identifies if the configuration XML file has been loaded e lt fileEditorConfiguration gt inside this label there are others nested labels with the configuration of the file editor explained in Chapter 13 3 3 User s Manual 122 ACIDE O Facuad A CONFIGURABLE IDE 7 Inform tica e consolePanelConfiguration inside this label there are others nested labels with the configuration of the console panel explained in Chapter 13 3 4 e lt _lexiconAssignerConfiguration gt inside this label there are others nested labels with the configuration of lexicons for different extensions and lexicon applied to console lexiconAssignerConfiguration explained in Chapter 13 3 5 e recentFilesConfiguration inside this label there is a list inside a list label of Strings with the paths of files opened recently e recentProjectsConfiguration inside this label there is a list inside a list label of Strings with the paths of projects opened recently 13 3 1 MENU CONFIGURATION The Menu Bar is the element situated at the top of
45. the extension of the files that he wants to compile Figure 10 Compilation by extension Finally the project is compiled using the Menu Project Compile menu item option User s Manual 36 ACID A CONFIGURABLE ID 3 3 14 2 COMPILATION BASED ON MARKED FILES FOR COMPILATION The process has the following steps e First the user marks all the files that he wants to compile in the file editor or in the explorer tree using the option for this purpose File Edit View Configuration Help DES L 21 New Project Alt May s N process listing dbschema pdg strata abolish list et dear et cd Is pwd log nolog verbose noverbose builtins help O Acrobat Reader Open Project Alt Mayus O Open Recent Projects Class 1 java Ei cass 2java EJ Class 3 java EJ O P Close Project Lae S Project Alt Mav s S import java util ArrayList G Save Project As public class Class3 4f Add Opened Files New file public static OntologyDocument onto Add File s Alt May s A A Remove File public static MainWindow mainWindow ER ubli tatic OntoBridg tobridg ic s ic oBridge ontobridge 3 Add Folder a Remove Folder public Etiquetador KR Compile Project Alt C onto new OntologyDocument http www owl ontologies com Ontology1364233760 owl amp Execute Project Alt E file Famosos owl 9 i age getInstanceOntobridge initWithPelletReasoner Uns
46. ticos 2012 2013 93 Facultad CIDE E A CONFIGURABLE IDE Inform tica Afiadir el cursor de espera en todas las acciones de ACIDE A Configurable IDE susceptibles de tardar e Hacer que todas las ventanas emergentes sean modales e A adir atajos de teclado dependientes del idioma en todas las ventanas Sistemas Inform ticos 2012 2013 94 ACIDE C Escuta A CONFIGURABLE IDE d Informatica d 9 10 OBJETIVOS NO CUMPLIDOS En el momento que comenzamos el desarrollo del proyecto el director Fernando Saenz P rez nos propuso una lista de objetivos para trabajar sobre la aplicacion aparte de la conexi n con las bases de datos Debido a la centralizaci n de esfuerzos en la conexi n de ACIDE A Configurable IDE con las bases de datos del sistema y otros aspectos considerados de m s prioridad algunos de objetivos no han podido ser resueltos finalmente Se detallan a continuaci n e Permitir enviar la se al de interrupci n CTRL C a la consola Se dedic esfuerzo este curso en la realizaci n de esta tarea sobre todo en investigaci n Surgieron complicaciones para controlar esta interrupci n de Windows y lo que consegu amos era cerrar la consola algo que no nos interesaba en absoluto Sin embargo evaluamos que nos estaba llevando demasiado tiempo y quit ndoselo a otras tareas m s prioritarias por lo que se decidi dejar sin completar e Definir e implementar el an lisis sint ctico para as poder aplicarlo en AC
47. una ventana con una rejilla con una primera columna en la que se pueda seleccionar el campo de la tabla por el que se debe ordenar y una segunda columna para seleccionar el criterio Ascendente o Descendente Ordenar por la columna Sort by Column Se ordenar seg n la columna en la que se encuentre el cursor Ascendente Ascending Descendente Descending Filtrar por contenido Filter by Content Filtrar excluyendo el contenido Filter Excluding Content Quitar filtro Discard Filter Mostrar Ocultar columnas Hide Show Columns Se debe abrir una ventana con una rejilla con una primera columna en la que se muestre cada uno de los campos de la tabla y una casilla de verificaci n para cada uno de ellos que indique si se debe mostrar o no si la casilla se selecciona la columna se debe mostrar e Ayuda Help O Mostrar ayuda Show Help Se mostrara el manual de usuario de la aplicacion DES ACIDE no de ACIDE A Configurable IDE Acerca de About Mostrara un cuadro de dialogo con los cr ditos y el numero de la version 7 2 4 4 BARRA DE COMANDOS Se deben mostrar iconos que correspondan a las siguientes acciones que especifican el texto de ayuda Tooltip text Tiene los siguientes iconos e Cortar Cut e Copiar Copy e Pegar Paste e Buscar Find Sistemas Informaticos 2012 2013 50 Fa H ep E Facultad C O E S de A CONFIGURABLE IDE L Inform tica e Ordenar ascendente Sort ascend
48. y la barra de herramientas ten a su aspecto original si el usuario no hab a guardado previamente esos cambios Se ha modificado el comportamiento en este aspecto En esta versi n cuando el usuario aplica los cambios stos son introducidos en el archivo lastModified toolbarConfig y este archivo es asignado a la configuraci n del proyecto con el que se est trabajando De esta forma los cambios ser n visibles la pr xima vez que el usuario inicie ACIDE A Configurable IDE Los cambios no ser n guardados en el archivo toolbarConfig del proyecto hasta que el usuario no seleccione la opci n de guardar en Configuraci n Barra de Herramientas Guardar o Guardar como Sistemas Inform ticos 2012 2013 86 ACIDE orm A CONFIGURABLE IDE 7 Inform tica 9 7 AMPLIACI N DEL MANUAL DE USUARIO La creaci n de nuevas funcionalidades en esta versi n de ACIDE A Configurable IDE conllev l gicamente la expansi n del manual de usuario para explicar estas nuevas posibilidades Adem s de crear nuevas secciones para los nuevos elementos de ACIDE A Configurable IDE se evalu conveniente el afiadir nuevas secciones y expandir otras ya existentes para explicar aspectos de la aplicaci n que ya exist an pero que estaban pobremente explicados en el manual Cabe resaltar tambi n que todas las capturas de pantalla del manual son completamente nuevas A continuaci n se detallan los distintos cap tulos del manual de usuario y se explica el trab
49. 1000 18 insert into employee values smith sales 1000 19 insert into employee values steel sales 1020 20 insert into employee values sullivan sales null 21 select from employee GROUP BY department Datalog equivalent rules ds A B Xj employee name string varchar department st group by employee C A D A B max D gt C3 parking name strino varchar lot strino varcha ito No integrity constraints B 3 Vistas ds string varchar b number integer S gt development off Integrity Constraints S gt multiline off 5 gt n Grammar bytes Lexicon Configuration sql 14 15 NumLineas 50 INS 12 31 24 Figura 13 Panel de Bases de Datos Sistemas Informaticos 2012 2013 59 Facultad ACIDE A CONFIGURABLE IDE Inform tica Este panel se muestra mediante la nueva entrada a adida en el men Vista de la ventana principal de la aplicaci n Ver Configuraci n Ayuda DES Mostrar log Alt May s L Explorador de proyectos Ventana de consola DAA IE Figura 14 Entrada Database men Vista Adem s se ha creado una vista para la modificaci n borrado e inserci n de los datos de dichas bases de datos que se muestra a trav s de la entrada Vista de Datos del men contextual del panel antes indicado pcia O me Archive Edici n Registros Ver Ayuda Registro 1 dei
50. 7 ADOUCUS WINdOW sra Figure 48 Example of inserted subment EEN EE Figure 50 Project browser popup menu sese User s Manual ACIDE DET A CONFIGURABLE IDE F Inform tica Figure 51 File editor DOMO MR 76 Figure 52 File editor popup menu 77 Jesu 78 Figure 54 Console TT 79 Figure 55 Console panel popup MENU indicaciones 79 Figure 56 Database panel r remrvwsrsvversrareeresrareeresrnreeressnveeressnvesresenvesensenneserssnnesrnsereesrnseversrnseverernneser 61 nes DENN 81 Figure 58 Databases node popup menu 82 in o Ae 82 Figure 600 D tapuse EE 83 Figure 61 Database node popup menu 83 SED AMA A 04 Figure 63 Expanding database node eterne tartara rante nta atas 64 Figure 64 Tables node popup menu 65 UTC O NNN ee 65 Hu dei ol Eri E EE 0 EE E E E E T E 86 Figure 67 Table node popup menu iniciacion 67 IQUE OG LL GSE m E POS O PEO PEOR AT A 67 MN Nan 00 Figure 70 Data view file menu eser tentare tanta rant taraen attenta attenta asas 89 Figure 71 Execute E 91 Figure 72 Data View edil EE EE 91 Figure 73 Data view search windOW ENEE 92 Figure 74 Data view replace WIN O Wicca 93 Figure 75 Data view number of replacements EEN 93 Figure 76 Data view records menu EEN 93 User s Manual 15 A CONFIGURABLE IDE Informatica Figure 77 Data view go to menu
51. 7 2 4 VENTANA DATOS DATA A hacer doble clic sobre una tabla o una vista o al seleccionar la entrada Vista Datos Data View en el men contextual en el Explorador de bases de datos se debe abrir para poder examinar y modificar sus contenidos datos no esquema Tambi n se abre si se ejecuta una consulta desde un editor de archivo de ACIDE A Configurable IDE con la entrada del men contextual Ejecutar consulta Execute Query o desde la misma entrada en el Explorador de bases de datos Si es una vista no se permite la modificaci n Es decir se abre la vista Datos en una rejilla similar a la de MS Access Microsoft Access Edici n Vv BE p Tabla Registro 14 i cic de 4 Figura 9 Ventana de datos Microsoft Access O de MySQL Workbench Sistemas Informaticos 2012 2013 40 ACIDE M A CONFIGURABLE IDE Inform tica Overview Output snippets Result 1 x CER ADIOS e D N asa d e Ordenaci n Exportaci n B squeda OR Navegaci n por registros Fetched 4 records Ordenaci n r pida El 2 selecci n de toda la rejilla Indicaci n de la fila actual Selecci n de una fila Figura 10 Ventana de datos MySQL La ventana debe tener una primera l nea que ser la barra de men s descrita en el apartado 7 2 4 3 A continuaci n aparece la barra de comandos descrita en el apartado 7 2 4 4 Despu s la rejilla de datos descrita m s abajo Finalmente la barra de estado desc
52. A B t A s A B Integrity Constraints o r X X lt 0 Notas e Se deben a adir tooltips textos de ayuda a los nodos o PK Primary Key Clave primaria o CK Candidate Key Clave candidate o FK Foreign Key Clave externa Sistemas Informaticos 2012 2013 30 AC DE O Ce A CONFIGURABLE IDE Informatica o FD Functional Dependency Dependencia funcional o IC Integrity Constraint Restricci n de integridad 7 2 2 1 NODO BASES DE DATOS DATABASES Es el nodo ra z y debe tener un men contextual con las opciones e Establecer como predeterminada Set as Default e Nueva New Al pulsarlo se debe abrir un cuadro de di logo con un cuadro de texto que solicite el nombre de la nueva base de datos a abrir con botones Aceptar OK y Cancelar Cancel Si se abre correctamente se debe rellenar y desplegar su sub rbol hasta el nivel cuarto e Actualizar Refresh El efecto es volver a leer todos los datos y reconstruir el rbol manteniendo la vista actual de nodos desplegados e Cerrar Close Al pulsarlo se cerrar la ventana pero no las conexiones 7 2 2 2 NODOS DE TIPO BASE DE DATOS Son los hijos del nodo ra z Bases de datos Databases y muestran el nombre de cada base de datos en conexi n Debe tener un men contextual con las opciones e Establecer como predeterminada Set as Default e Actualizar Refresh El efecto es volver a leer todos los datos y reconstruir el sub rbol de este no
53. AS Adem s mientras se realizaban las tareas antes mencionadas se detect que el panel de la consola perd a la respuesta ante pulsaciones continuadas de ENTER Este problema surgi al a adir el historial de comandos puesto que se proced a a insertar comandos vac os y se perd a la sincronizaci n con el proceso Se solucion a adiendo la condici n pertinente A pesar de esta soluci n tan aparentemente sencilla fue un error muy dif cil de detectar Tambi n hemos modificado la ventana de configuraci n de la consola a adiendo un nuevo campo de texto en el que introducir los posibles par metros de la llamada de la consola En caso de guardar el proyecto se almacenar n en los ficheros de configuraci n y ser n recuperados al iniciar ACIDE A Configurable IDE de tal forma que tengamos el mismo ejecutable que en la anterior sesi n Sistemas Inform ticos 2012 2013 84 AC DE O LN A CONFIGURABLE IDE Inform tica 9 5 EDITOR DE ARCHIVOS En el panel de los editores de archivo no se han realizado tantas tareas como en otros apartados b sicamente porque este ha sido el punto de mayor esfuerzo de desarrollo en anteriores versiones de ACIDE A Configurable IDE y para esta versi n este aspecto ya estaba m s desarrollado De hecho las nicas tareas llevadas a cabo tienen que ver con la interacci n entre el panel de editores y el panel de consola Enviar texto seleccionado en el editor a la consola En ve
54. Aa 0 bd oF Figura 31 Editores modificados e Posici n del cursor despu s de un reemplazamiento general el cursor se situar en la posici n que ocupaba antes del reemplazamiento en cada editor abierto El foco volver al editor de archivo activo en el momento del reemplazamiento Sistemas Inform ticos 2012 2013 82 AC DE O Escutia A CONFIGURABLE IDE Inform tica 9 4 CONSOLA El panel de la consola fue la secci n que centr gran parte de los esfuerzos durante la primera iteraci n del proyecto y principio de la segunda ya que la mayor a de errores y arreglos necesarios fueron aqu 9 4 1 COPIAR Y PEGAR EN CONSOLA En versiones anteriores de ACIDE A Configurable IDE era posible copiar contenido del editor de archivos dentro de la consola Este contenido no era editable y el usuario deb a pulsar ENTER despu s de pegarlo Este comportamiento era muy similar al de enviar contenido del archivo a la consola con la diferencia de que en este ltimo no se mostraba el contenido enviado nicamente los resultados de esta funcionalidad se hablar m s detalladamente en el cap tulo 9 5 Fue necesario rehacer el oyente del evento Pegar del men contextual y de la combinaci n de teclas Ctrl V de la misma funcionalidad La modificaci n de la clase AcideConsolePanelKeyboardListener del paquete acide gui consolePanel listeners tuvo lugar a adiendo el m todo vKeyAction En este m todo adem s de enviar al proce
55. CONFIGURABLE IDE Informatica cada miembro del equipo a fin de tener mas de una copia de seguridad Esta forma de trabajo se ha llevado a cabo sobre todo en la realizaci n de la presente memoria Hemos utilizado el siguiente software para la realizaci n del proyecto e Eclipse SDK versi n 4 2 10 para el desarrollo del c digo fuente en lenguaje Java e Google Drive 19 para la compartici n de diversos documentos de inter s entre los miembros del grupo e Microsoft Office 2007 para la documentaci n final del proyecto e Google Code 20 como repositorio de c digo fuente e Tortoise SVN 21 para la interacci n con el repositorio de datos e WinRar y 7z para la generaci n de los archivos comprimidos que contienen el ejecutable de la aplicaci n e Adobe Photoshop CS2 para la edici n de los iconos logotipo e imagenes del proyecto Sistemas Inform ticos 2012 2013 25 ACIDE Oy A CONFIGURABLE IDE Informatica 7 GESTION DE REQUISITOS Al principio se ha respetado la gesti n de requisitos consultada en 3 sin embargo sta se ha ido modificando conforme el proyecto se iba desarrollando y surg an nuevas posibilidades Tras la primera toma de contacto antes del comienzo del desarrollo del proyecto los requisitos fundamentales eran los siguientes e Eliminaci n de errores existentes e Aumento de las funcionalidades requeridas Como se menciona en 3 la estandarizaci n y optimizaci n del c d
56. CSV This opens a dialog box to select a file For each line of the text file the value that corresponds to the field appears in the grid Each line will be inserted in the table as described before e Tab delimited CSV same as comma delimited CSV but the separator character between fields is the tab e CSV this opens a dialog box where user can write the separator character and proceed to select the file and load the data e XML This opens a dialog box to select a file It will read the XML file with the structure indicated above Each row of data of the XML file will be inserted in the table 8 4 5 2 1 3 EXECUTE QUERY It displays a dialog in which the user will type down the query he wants to perform User s Manual 90 Facultad ACIDE SI A CONFIGURABLE IDE Informatica DN Create table with Datalog m SELECT Figure 71 Execute query 8 4 5 2 1 4 PRINT It displays the print window to print the grid 8 4 5 2 1 5 CLOSE Close the data view window It also can be closed with the key combination Alt F4 8 4 5 2 2 EDIT MENU It contains the following menu items for the common grid editor management Undo Ctrl Z Redo Ctrl Figure 72 Data view edit menu 8 4 5 2 2 1 UNDO Undoes the updates in the grid It also can be done with the key combination Ctrl ES pid 8 4 5 2 2 2 REDO Redoes the updates in the grid It also can be done with the key combination Ctrl Y User s
57. Configuration Inside this root label there are seven basic tags e _name defines the name of the lexicon _path indicates the relative path of this file e _isCompiledOrInterpreted a false value indicates that the lexicon is compiled and true indicates that it is interpreted e tokenTypeManager it is a Manager explained on Chapter 13 1 of the types of token there are in the lexicon It consists of a list of objects AcideLexicon TokenGroup e validExtensionsManager it is a Manager of valid extensions of files at the lexicon defined in the XML document The extensions are String objects e delimitersManager it is a Manager of valid delimiters at the lexicon defined in the XML document The delimiters are String objects e remarksManager it is not a common Manager It defines the symbol to mark a line as a comment in the lexicon It has four nested labels o symbol defines the symbol to use to begin a comment line o _isCaseSensitive defines true or false value if it is case sensitive o color defines color of the comments It has four nested tags red blue green alpha that define the RGB components and the degree of opacity of the comments o fontStyle defines the font style of comments 13 5 1 TOKENTYPE MANAGER This label has two nested ist labels Inside of the most nested there are the AcideLexiconTokenGroup objects that define the token types in the lexicon The AcideLexicon TokenGroup objects have five
58. DEDE E 127 13 5 ONE 129 13 5 1 OREM PVG EE NEE 129 13 5 2 validExtension Manager wee 130 13 5 3 delmuiers E EE 130 15 0 Comman ds TIS CON Y E 130 14 Regular EXDESSSIODS asia epocas 132 14 1 Construction of regular expressions esee tenente nnne nnns 132 14 2 Description of regular expressions esses eene nennen rentre tnnt tn tenants 133 2 TIheDOT E 133 14 2 2 The BACKSLASH EE inem EIER EM enter 133 14 2 3 TEEN E 134 User s Manual 11 SN Facultad C D E S de A CONFIGURABLE IDE Inform tica 14 2 4 14 2 5 14 2 6 14 2 7 14 2 8 14 2 9 14 2 10 14 2 11 User s Manual The BAR eset ttti The DOLLAR SENT EE TIE CARLA notaras edad Parentheses D E The QUESTION mark P imnnnesesesvsvsvsvsvsvsvsvsvseseseseseseseresesesesesesvsvsvssrsren The BRACES fin Tee AER GAS JE ney tre ere ren reer EE 136 12 Fa H en ee Facultad C O E S de A CONFIGURABLE IDE L Inform tica NDEX OF FIGURES iure ACIDE MAT EE EEE Figure De mo e e Te Pat MU Figure 4 Search windOW eese es II O MA EEA Figure 6 Number of replacements eterna rnnt rtt antena attenta asas EE FO CCG CI scuta o Pi BE US PO O GU M MUN PIQUE P O PRO CCl EO VENT L EG nea Figure 9 Add foldef Figure 10 Compilation by extensSioOn sss sessssrsrnssrnnnnrnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
59. Escutia A CONFIGURABLE IDE Inform tica Puede haber varias ventanas de vista de datos abiertas simult neamente Si ya hay una ventana abierta para una tabla se permitir abrir una segunda para la misma tabla pero sta ser de s lo lectura y cualquier actualizaci n de datos que se realice sobre la primera se actualizar para el resto de ventanas de la misma tabla Mientras que para las vistas s lo se podr n examinar los datos desde esta ventana se podr n realizar las siguientes acciones sobre las tablas e Insertar nuevas tuplas e Modificar o eliminar tuplas existentes e Filtrar y ordenar el contenido Las distintas funcionalidades de esta ventana ya fueron explicadas en la secci n Gesti n de requisitos en su apartado 7 2 4 La estructura de paquetes en la que se reparte esta funcionalidad es la siguiente acide gui databasePanel dataView contiene las clases necesarias para la construcci n de la rejilla de datos e acide gui databasePanel dataView commandBar en este paquete se encuentran las clases utilizadas para la construcci n de la barra de herramientas de la vista de datos e acide gui databasePanel dataView listeners implementa los listener necesarios para la modificaci n visualizaci n inserci n filtrado y edici n de los datos de las tablas e acide gui databasePanel dataView menuBar se encarga de construir y gestionar el men de la ventana de vista de dise o 9 1 3 VISTA DE DISE O E
60. FIGURATION Case Sensitive Select a color Sec type of source Figure 19 Reserved words Next we further describe each one of its components as follows e Add adds anew table reserved word entry e Delete removes a table reserved word entry e Modify modifies a table reserved word entry e Set delimiter style the delimiter list now is also taken as reserved words e Table contains the list with the reserved words groups by types and colors Note it is not allowed to modify the table entries directly on the table itself User s Manual 44 A CONFIGURABLE IDE and the changes will not be applied until the modify button is pressed down 3 5 1 3 2 DELIMITERS CONFIGURATION Figure 20 Delimiters configuration Next all its components are further detailed e Input new delimiter text field the user inputs the name of the new delimiter e Add button adds the input delimiter in the text field to the table User s Manual 45 Facultad Acioe A CONFIGURABLE IDE Inform tica e Delete button removes selected delimiter from the table e Table contains the delimiter list and it is possible to modify it directly on it 3 5 1 3 3 REMARKS CONFIGURATION Input Line Comment Symbol Select a color Select type of source Figure 21 Remarks configuration Next we further detail all its components e Comment symbol text field for input the remark symbol e Case sensiti
61. IDE A Configurable IDE e Definir y aplicar hilos en o Apertura de archivos en el editor De esta forma el usuario tendr a el control de la aplicaci n mientras que se abren archivos o Apertura de proyectos en ACIDE De forma similar al apartado anterior el usuario tendr a el control de la aplicaci n mientras termina la carga de un proyecto o Aplicaci n del formato l xico en el editor de archivos como ocurre en Microsoft Word cuando estamos aplicando la autocorrecci n De esta forma el usuario volver a a tener el control de la aplicaci n mientras que a los documentos se les aplica la configuraci n l xica correspondiente e Opci n de respetar mayusculas minusculas en los reemplazamientos Esta era una tarea que exig a una gran cantidad de esfuerzo para conseguir un objetivo menos prioritario por lo que se decidi dejar en beneficio de otras consideradas m s importantes Sistemas Inform ticos 2012 2013 95 WA AVNI V RU NES P x y ACIDE A CONFIGURABLE IDE e A adir autocompletar a partir del diccionario l xico sta fue una tarea que surgi en las ltimas semanas de desarrollo En estas fechas comenzar esta tarea significaba iniciar el desarrollo de algo desde cero y dada la proximidad de la entrega y la necesidad de subsanar otros errores se dej esta tarea para futuras versiones Sistemas Inform ticos 2012 2013 96 ACIDE O Facuad A CONFIGURABLE IDE Inform tica 9 11 CONC
62. LUSIONES A comenzar el desarrollo de este proyecto nos dimos cuenta de la complejidad de trabajar en un proyecto ya iniciado y de tales dimensiones el proyecto contaba ya con unas 190000 l neas de c digo Durante los primeros meses el avance en la implementaci n de nuevas funcionalidades fue muy lento ya que emple bamos la mayor parte del tiempo en familiarizarnos con el c digo que se nos hab a suministrado Sin embargo una vez comprendido el c digo y explorado todas las posibilidades y necesidades del proyecto el ritmo de trabajo aument hasta terminar nuestra labor con un trabajo que cuenta con casi 300000 l neas de c digo Despu s de todas las nuevas funcionalidades y los cambios implementados en la aplicaci n podemos concluir que el usuario podr disfrutar de un software mucho m s fiable y seguro Todo este trabajo se ha basado en la adici n de nuevas funcionalidades como m ximo exponente la conexi n con las bases de datos aumento de algunas ya existentes por ejemplo en las ventanas de busqueda y reemplazamiento o cambio del comportamiento de la aplicaci n en alg n sentido gesti n de la configuraci n de la barra de menus Es por ello que la gran virtud de este proyecto es no tener l mites siempre va a ser posible a adir mejoras y corregir comportamientos por lo que a n queda mucho camino por recorrer Es por ello que creemos que hemos alcanzado los objetivos propuestos desde el primer momento ap
63. ME The user can change the name of the view with this action User s Manual 103 ACIDE Oy A CONFIGURABLE IDE Inform tica 8 7 3 COPY The schema of the selected view will be copied to the clipboard 8 7 4 PASTE A new view with the schema of the view copied in the clipboard before will be created 8 7 5 DESIGN VIEW A window with the SQL text of the view will be showed 8 7 6 DATA VIEW It is almost identical to Data view for Tables explained before on Chapter 8 4 5 6 8 COLUMNS NODES The children of this node are all the columns of the selected view lt a string varchar i d b number integer Figure 92 Columns nodes 8 9 SQL TEXT AND DATALOG TEXT NODES These nodes show the SQL and Datalog commands of the view definition User s Manual 104 Facultad Inform tica A CONFIGURABLE IDE E Databases E 3 des i Tables EF ds a string varchar b number integer Q a string varchar 1 3 SQL Text SELECT ALL department max salary FROM employee GROUP BY department 1 0 Datalog Text 3 ds A B group_by employee C A D A B max D ES Integrity Constraints Figure 93 SQL and Datalog text nodes The user can make double click in this node and a window with this text will appear where user can modify it Figure 94 SQL text User s Manual 105 A CONFIGURABLE IDE group_by employee C A D A B max D Figure 95 Datalog text With
64. Manual 124 AC DE O Ce A CONFIGURABLE IDE Informatica e parameterType type of the parameter that the command uses on console It can be o NONE o TEXT o FILE o DIRECTORY e isExecutedInSystemShell if is executed in the system or not Once the list of command buttons is ended user has to enter the following line in the file in order to indicate that the following settings are for buttons that launch external applications End of Console Panel Tool Bar Button Configuration Configurations of buttons that launch applications must be headed by a comment line starting with followed by four lines of properties e name name displayed e path path to run e hintText help text displayed when user puts the mouse over the button e icon path ofthe image for the button Once the list of command buttons is ended user has to enter the following line in the file in order to indicate that configuration of buttons that launch external applications is ended End of External Applications Tool Bar Button Configuration User s Manual 125 ACIDE O Facuad A CONFIGURABLE IDE Inform tica 13 3 3 FILE EDITOR CONFIGURATION The File Editor is where user can edit the content of the files It contains a tab pane where the opened files are displayed The File Editor is configured by a label in the XML file that configures the Workbench explained on Chapter 13 3 Inside this label the user can fi
65. N TABLAS La vista de dise o servir para poder ver y editar el esquema de las tablas de una forma sencilla y visual Los metadatos se mostrar n en forma de tabla con cuatro columnas que son nombre tipo clave primaria y no nulos Sistemas Inform ticos 2012 2013 65 Kass ACIDE SE A CONFIGURABLE IDE Informatica Figura 21 Vista de dise o Esta vista tiene dos funcionalidades muy concretas e Crear una tabla podemos crear una tabla desde cero sin escribir ning n comando e Modificar una tabla existente nos dar la opci n de modificar el esquema de la tabla es decir a adir y eliminar columnas modificar la clave primaria y los tipos y a adir la restricci n de no nulos a los campos de la tabla que se consideren necesarios Las restricciones del sistema no permiten modificar el esquema de las tablas que no est n vaclas Esta ventana est implementada integramente en la clase AcideDatabaseDesignView dentro del paquete acide gui databasePanel utils Para que la tabla no desaparezca al abrir la ventana se almacena en memoria el estado actual de sta En caso de error al modificar los metadatos se recuperar el estado anterior y se notificar al usuario mediante un mensaje de pantalla Sistemas Inform ticos 2012 2013 66 ACIDE A CONFIGURABLE IDE 9 2 CONFIGURACION DE BARRA DE MENUS La configuracion de la barra de menus ha concentrado gran parte de los esfuerzos durante la realizaci n de
66. OREIGN KEY A foreign key constraint specifies that the values in a given set of columns of a relation must exist already in the columns declared in the primary key constraint of User s Manual 98 bang Facultad C l O E S de A CONFIGURABLE IDE Inform tica another relation To define a foreign key constraint in a relation the user has to type fk name of the target relation name of the column foreign key name of source re lation name of source column This menu option displays a window where user can write the datalog command to create a foreign key in the selected table Figure 84 Add foreign key 8 4 8 ADD CANDIDATE KEY As a primary key a candidate key constraint specifies that no two tuples have the same values for a given set of columns To define a candidate key constraint user has to type ck name of the relation column name list This menu option displays a window where user can write the datalog command to create a candidate key in the selected table D Add Candidate Key xk p a b Figure 85 Add candidate key 8 4 9 ADD FUNCTIONAL DEPENDENCY A functional dependency constraint specifies that given a set of attributes A1 of a relation R they functionally determine another set 42 Le each tuple of values of Al in R is associated with precisely one tuple of values 42 in the same tuple of R To User s Manual 99 SN Facultad C D E S de A CONFIGURABLE IDE Inform tica d
67. S IN XML FILES tt Frequently in XML configuration files we found labels of the form Manager These labels contain a type of object called Manager that is responsible for handling lists of different types of objects Inside the labels of a Manager there is another label called list and that in turn holds another label also called list It is inside this label where user introduces the labels of the objects that make up the list he wants to handle with the Manager could be a list of String AcideLexiconTokenGroup etc There are java classes for each of the Managers in XML files which provide methods to manipulate the lists as adding removing or getting items from them Manager Java classes have an ObjectList type field which in turn has an ArrayList field where user stores the list of objects and methods for manipulating that list To introduce delete reorder etc elements of the list just manually edit the XML document and operate on the labels of each object 13 2 PROPERTIES CONFIGURATION To configure several properties of ACIDE A Configurable IDE there is a file called configuration properties stored in configuration In this file are stored properties that are not specified in other files The structure of this file is fixed user can only edit the values for each field but he is not able to add new properties or delete any of the existing The first line of the properties configuration file i
68. S PANEL When this item is selected the database panel in the left lower corner is connected with DES 3 5 6 2 ODBC PANEL When this item is selected the database panel in the left lower corner is connected with ODBC User s Manual 61 ACIDE BET A CONFIGURABLE IDE _ Inform tica 3 5 7 LANGUAGE CONFIGURATION Shows the available language list of the application Language S Spanish Alt 5 Menu E English Alt I Figure 38 Language configuration menu In this case the user can choose only between English or Spanish 3 5 8 MENU CONFIGURATION It contains the menu item options for the menu configuration management Menu Tool bar Figure 39 Menu configuration menu We also explain how to configure menu externally with XML files in Chapter 13 3 1 Next we further describe each one of the previous menu item options 3 5 8 1 NEW Displays the following configuration window User s Manual 62 ACIDE SET A CONFIGURABLE IDE 8 r r TT Figure 40 New menu It displays a list of tabs with the names of the menus in the Menu bar For each tab there is a grid with attributes of its menu objects The user can edit directly in the grid the attributes he wants to change except some that are not edita
69. SISTEMAS INFORMATICOS 2012 2013 FACULTAD DE INFORMATICA UNIVERSIDAD COMPLUTENSE DE MADRID DES GUI Front end A Gef dk IDE Realizado por Pablo Guti rrez Garcia Pardo Elena Tejeiro P rez de Agreda Andr s Vicente del Cura Dirigido por Prof Fernando Saenz P rez Dpto Ingenieria del Software e Inteligencia Artificial Facultad ACIDE O Inform tica Sistemas Inform ticos 2012 2013 2 J yo bat Facultad C D E S de A CONFIGURABLE IDE L Inform tica NDICE DE CONTENIDOS IDETTE TUTE 8 A An 10 2 FANN 11 Ss D Te 12 oo e oe st E eI C IDE 13 o AAPP E 17 5 1 ELEN Se 17 D Pa e 18 5 3 Ao O OO e 20 6 Gesti n de laconfteuraclon ee 24 7 Gesti n de requisitos msmvmmsvvveverevererrrrvrereresesesesenenenenenenenenenenenenenenenenenensnensnsnenevsnnnn 26 7 1 Requisitos MN Gr 26 1 Descripci n de la aplicaci n sisemeister 27 7 2 1 Inicio de la El e ere Te LE 27 7 2 2 Ventana Explorador de bases de datos Database explorer 28 7 2 2 1 Nodo Bases de datos Databases eese nentes 31 7 2 2 2 Nodos de tipo Base de datos esee neret nennt 31 E NTN 31 7 2 2 4 Nodos de tipo Tabla CA Po An 32 7 2 2 5 Nodos columnas Columnas eese tenente tenente nnne nnne nnns 34 7 2 2 6 Nodos de tipo Restricci n de integridad seen 34 Tolls NSR 35
70. Sistemas Inform ticos 2012 2013 3 AC DE O Ce A CONFIGURABLE IDE Informatica 7 2 2 8 NTN 36 MS Nodo Definicion SQL BL Terese 37 7 2 2 10 Nodo Definici n Datalog Datalog Text ues 38 7 2 3 Ventana Dise o DeSIg vuscionancasi ainia 38 Jl Ventana Datos Dato EE 40 7 2 4 1 Acciones permitidas sobre la rejilla sss 42 Taide Barra KS 0 EEE EEE EE ARE 47 lat PBN 47 7 2 4 4 o nnn nnna 50 7 2 4 5 Resumen de men s contextuales de la rejilla 51 7 2 4 5 1 Men contextual de una columna eere neret nantes 51 7 2 4 5 2 Men contextual de una celda eese neret nantns 51 7 2 4 5 3 Men contextual de una fila eere reete ee eererenen antea tnm raras 52 8 Planificaci ON E 53 8 1 Pir 53 8 2 Secunda eraco oree aea 54 8 3 Tercera oratio A 55 8 4 Cuarta oracion 56 A cli RR 59 9 1 Gesti n de bases de datos nnsrerearsesrarerenrsvnravsernesnsrorsersesenrorsarsesrarnssnrsenterssesesesnersernesnssors rsenn 59 9 1 1 Esquema de las bases de datos sese nennen 61 9 1 2 Edicion y visualizaci n de datos de tablas y vistas ss 64 Dade Vistadediseno oe E 65 Sistemas Inform ticos 2012 2013 4 AC DE O Ce A CONFIGURABLE IDE Informatica
71. TIN 57 6 5 A E o O 57 3 5 5 2 Execute external command ainia raices 58 3 5 5 3 Console display configuration essere nennen nnne nnns 58 User s Manual ACIDE A CONFIGURABLE IDE 3 5 5 4 Save content into file annsomnimannta da 59 m5 DNT NN 59 TU 60 e COSC e 61 e FEN 61 3550 Clear console DUTIGE ue rim ret tr R 61 3 5 6 Database panel configuration eese eene nnne nnne ntn reno 61 SS e DR e mane nun ee eens ere eee E 61 modus BE 61 25 7 Language Conducta 62 NNN 62 OE 62 POLL Bs PL vs 64 ao FONN 65 E Oe e e eE EP 66 eZ PPP eo oe 66 o ME O e o uo o A 67 SE 67 EE 67 550 Foolbar COMMU FA Nesser aana aeaa Ea SE aE aaa Oi 68 IOA E TE 68 SE E ER EE EE EE EE 70 User s Manual 6 AC DE O Rus A CONFIGURABLE IDE VM ane E E EE 70 EE 70 DOREM EE 71 3 6 PPP PP 72 Su TNT 72 62 eB 72 3 7 Inserted SUDMENUS ae cer ei a er A 73 3 8 bag enn E 74 A Project ege 75 SE 10100100 A NE E NE OE E E AEN NE iia 76 C TOODI PP A 78 le Gog 00570 os EE EEE E T pes 79 8 Database Paneles 81 8 1 Databases TOC E 81 SMN MEME WEE 82 ROI E E E E E T 82 A O A 82 8 2 Ree E SE PN 83 OL Ne 83 L e NEE SE Du Ee E 04 8 3 ET ee 85 User s
72. User s Manual 133 AC DE O Facuad A CONFIGURABLE IDE Inform tica e Ad represents a digit from 0 to 9 e w represents any alphanumeric character e s represents a blank space e VD any character other than a digit from 0 to 9 e W represents any non alphanumeric character e S any character other than a blank e A represents the beginning of the string Not a character but a position e AZ represents the end of the string Not a character but a position e Vb marks the beginning and end of a word e B marks position between two alphanumeric or non alphanumeric characters 14 2 3 THE BRACKETS The function of the brackets in regular expressions is to represent character class grouping characters into groups or classes They are useful when is needed to tt dl find one of a group of characters Within the brackets you can use the to specify ranges of characters Additionally the metacharacters lose their meaning and become literal when they are inside the brackets For example as mentioned previously vd is useful to find any character that represents a digit However this name does not include the dividing the decimal part of a number To search for any character that represents a digit or a point we can use the regular expression Vd As noted above within the brackets the point represents a literal character not a metacharacter so it is not necessary to precede the ba
73. a ventana de busqueda y reemplazamiento e A adir a la ventana de b squeda y reemplazamiento un historial de las ltimas b squedas de la sesi n e Permitir usar expresiones especiales como p y t para la b squeda e Marcar en rojo los editores que se hayan visto afectados por un reemplazamiento e Permitir continuar con la b squeda anterior si no hay texto seleccionado al pulsar F3 o Shift F3 e Extender la b squeda en el panel de la consola aplicando las modificaciones realizadas en los editores e Incluida la b squeda c clica hacia atr s con Shift F3 e Corregido el uso de las expresiones regulares 9 9 4 CONSOLA e Permitir que se acepten rutas de ejecutables con espacios en blanco e Crear un historial de comandos persistente que guarde los comandos ejecutados en la anterior sesi n de ACIDE A Configurable IDE e Modificar el pegado en la consola haciendo que se ejecuten los comandos de uno en uno sin pulsar ENTER e Permitir modificar el ltimo comando pegado si ste no acaba con un salto de l nea e Solucionar la p rdida de respuesta de la consola ante ENTER sucesivos e Modificar la ventana de configuraci n de la consola y los correspondientes ficheros de configuraci n para que se acepten los par metros del ejecutable Sistemas Inform ticos 2012 2013 92 ACIDE Or A CONFIGURABLE IDE Informatica 9 9 5 EDITOR DE ARCHIVOS e Permitir enviar a la consola s lo el texto seleccionado mediante una
74. ace es leer el comando asociado al componente de men en el archivo de configuraci n y si empieza por llama a AcideInsertedItemListenersManager usando ese comando Esta clase gestiona el comando con el que es llamada y consultando el archivo de configuraci n configuration menu cods ini donde se encuentran los c digos num ricos para cada comando lanza la acci n determinada De esta forma cambiando el comando asociado a un componente cambiamos la acci n que realiza ese componente Por otra parte los comandos que no empiezan con son lanzados en la consola de forma id ntica a los lanzados por los botones definidos en la barra de herramientas por el usuario 9 2 5 GESTI N DE ICONOS En esta versi n se presenta al usuario la posibilidad de elegir la imagen que usar como icono en los componentes de men Esto introduc a un problema al ser una aplicaci n portable elegir la ruta de una imagen externa a la aplicaci n podr a acarrear problemas al cambiar de ubicaci n y no encontrar la ruta deseada Por tanto se decidi idear un sistema de copia de im genes en los directorios de la aplicaci n Sistemas Inform ticos 2012 2013 74 Facultad de Inform tic a ACIDE A CONFIGURABLE IDE de tal forma que la configuraci n siempre trabaje con im genes expresadas con una ruta relativa a la ruta donde se encuentra la aplicaci n Para ello se cre la clase AcideMenulconsConfiguration que lee
75. acter that is not alphanumeric or a space all punctuation and other special characters 14 2 7 PARENTHESES Similarly to the brackets parentheses are used to group characters However there are several differences between groups established by brackets and groups established by parentheses e Special characters keep their meaning within the parentheses e Groups established by parentheses make a label for the search engine that can be used later as denoted below e Used in conjunction with bar enables optional searches For example the regular expression to East West North South of searches texts giving instructions through cardinal points while the regular expression East West North South find east in the word beast failing to fulfill this purpose e Used in conjunction with other special characters listed below provide additional functionality User s Manual 135 ACIDE Oy A CONFIGURABLE IDE Informatica 14 2 8 THE QUESTION MARK The question mark has several features in regular expressions The first is to specify which part of the search is optional For example the regular expression S pain can find both pain and Spain In conjunction with parentheses specifies that a larger set of characters is optional for example Nov ember iembre finds both Nov November and Noviembre Similarly you can use the question mark wit
76. ajo realizado en cada uno de ellos 1 System requisites este capitulo ya exist a en la anterior versi n del manual Se ha a adido una secci n explicando c mo ejecutar ACIDE A Configurable IDE en los distintos sistemas operativos e 2 Introduction to ACIDE este cap tulo es totalmente nuevo Pretende introducir al nuevo usuario en las funcionalidades y aspecto gr fico de la aplicaci n e 3 Menu bar este capitulo ya exist a en la versi n anterior del manual Sin embargo muchas de las secciones se han modificado para dar una mejor explicaci n o sencillamente explicar nuevos comportamientos Tambi n se han a adido secciones nuevas e 4 Project browser panel en el anterior manual no exist a ninguna explicaci n sobre el panel de explorador de proyectos Con este cap tulo hemos querido subsanar el vac o a este respecto e 5 File editor panel cap tulo totalmente nuevo Con l se pretende explicar el aspecto del panel del editor de archivos explicaci n inexistente en el anterior manual e 6 Tool bar en este nuevo cap tulo se explica el aspecto y la funci n de los distintos componentes de la barra de herramientas Con este capitulo explicamos aspectos que antes no estaban cubiertos Sistemas Inform ticos 2012 2013 87 AC DE O Facuad A CONFIGURABLE IDE Inform tica e 7 Console panel al igual que los anteriores este capitulo totalmente nuevo pretende dar una breve explicaci n sobre diversos aspec
77. al campo de texto correspondiente haciendo m s facil y r pida la repetici n para una busqueda o reemplazamiento que ya se ha producido antes El usuario puede escribir en el campo de la lista para un acceso m s r pido a los elementos de la misma 9 3 1 3 BARRA DE PROGRESO Las busquedas y reemplazamientos a veces se extienden en el tiempo m s de lo deseado sobre todo cuando el mbito es el de todos los documentos abiertos o usan expresiones regulares Este tiempo que la aplicaci n emplea en la b squeda podr a ser interpretado por el usuario como un bloqueo de la herramienta ya que mientras tanto el resto de la aplicaci n quedaba deshabilitado Debido a este hecho se decidi que se deb a dar al usuario alg n tipo de informaci n para indicar que el proceso estaba en curso y la aplicaci n segu a su funcionamiento y as eliminar toda alarma posible Por todo esto se decidi dotar a las ventanas de b squeda y reemplazamiento de sendas barras de progreso que suministraran informaci n sobre el avance del proceso en curso Sistemas Inform ticos 2012 2013 79 ei SN Facuitad E D E S de A CONFIGURABLE IDE Inform tica Current Document 3 Backward 5 All Opened Documents Cydic Search E d Figura 30 Barra de progreso parcialmente completa en una busqueda Como se puede observar en la Figura anterior la barra se va completando a medida que avanza el proceso de busqueda o reemplazam
78. ant to make a field part of the primary key you have to mark the checkbox of that column This option make impossible to mark the Disallow nulls option User s Manual 85 Facultad de ACIDE A CONFIGURABLE IDE 8 3 3 CREATE TABLE WITH SQL It displays a window like the Execute query Chapter 8 2 4 window where the use can create a table with SQL commands 8 3 4 PASTE This option will create a new table with the schema or with the schema and data that the user has copied before from another table of the panel 8 4 TABLE NODE If the panel is connected with DES nodes of this type will show the name of the table and all the information of the fields However if the panel is connected with ODBC will only show the name of the table id Databases D 73 employee name strina varchar department string varchar salary number integer i Ty parking name string varchar lot string varchar Figure 66 Table node With the contextual menu of this node you can make the following actions User s Manual 86 A CONFIGURABLE IDE E Drop Jr Copy Design View Data View Add Primary Key Add Foreign Key Add Candidate Key Add Functional Dependency Add Integrity Constraint Figure 67 Table node popup menu 8 4 1 DROP This action will drop the table 6 4 2 RENAME The user can change the name of the table with this menu item 8 4 3 COPY With this option the user ca
79. antalla de TOra ertet n to tan as 15 Figura 4 Captura de pantalla de ASPIDE ee 16 TU MSN 28 Figura 6 Ventana explorador de bases de datos de 22 sss 28 FIGURA 77 MYSQL VIVO DIA 29 Figura 8 Ejemplo ventana de disef o erret rnnt tartara tnnt tton 38 Figura 9 Ventana de datos Microsoft Access ierant tatnen nnns 40 Figura 10 Ventana de datos MySQL eterna rta trattare tentata atat 41 Figura 11 Doceto ventana de ADS 41 Figura 12 Rejilla de vista de datos erento tani 42 Poua Ia Panerde Daes ae Datos iriri innan ae EEE RE EE EEE 59 Figura 14 Entrada Database menu Vista Luanasanananananiannneisnnniasninninninnisvininvinnde 60 Pigura EE 60 Figura 16 Vista de dise o E 61 Figura 17 Esquema de las bases de datos serrer tatnen 61 Figura 18 Interfaz AcideDatabaseManager serrata treten tatnen 63 Figura 19 Clase abstracta AcideDatabaseManager coccion 64 BIGUED ZO VISCO GO QU LOS o aa rete eee ee eee ei i nM 64 FIQUra 21 Vista de ASONO m 66 Figura 22 Ejemplo de configuraci n versi n anterior reete 66 Figura 23 Configuraci n del menu Archivo eerie tnnt 71 Figura 24 Men contextual configuraci n de men s rere 72 Sistemas Inform ticos 2012 2013 8 ke ing Facultad C l D E S de A CONFIGURABLE IDE L Inform tica Figura 25 Ventana de b s
80. aparecer una ventana con botones Aceptar OK y Cancelar Cancel y un cuadro de texto relleno previamente con k Este texto no se debe poder modificar Sistemas Inform ticos 2012 2013 33 A CONFIGURABLE IDE Informatica e A adir clave candidata Add Candidate Key Debe aparecer una ventana con botones Aceptar OK y Cancelar Cancel y un cuadro de texto relleno previamente con ck Este texto no se debe poder modificar e A adir dependencia funcional Add Functional Dependency Debe aparecer una ventana con botones Aceptar OK y Cancelar Cancel y un cuadro de texto relleno previamente con fd Este texto no se debe poder modificar e A adir restricci n de integridad Add Integrity Constraint Debe aparecer una ventana con botones Aceptar OK y Cancelar Cancel y un cuadro de texto relleno previamente con Este texto no se debe poder modificar 7 2 2 5 NODOS COLUMNAS COLUMNAS Los nodos Columns Columnas son hijos de los nodos Tablas Tables y Vistas Views Se debe poder desplegar para mostrar una entrada por cada columna en orden alfab tico Por ejemplo e S b string varchar 20 a number integer o Columns a number integer b sstring varchar 20 7 2 2 6 NODOS DE TIPO RESTRICCION DE INTEGRIDAD Hay varios nodos de este tipo e PK significa Primary Key Clave primaria Este nodo s lo puede tener un hijo una tabla s lo tiene una clave primaria e CK significa Candida
81. aso se debe abrir una ventana con un cuadro de texto con un nuevo nombre como hace el Explorador de Windows al copiar un archivo vista X donde X es un entero consecutivo al ultimo que hubiese para la vista de nombre vista El usuario puede cambiar este nombre La ventana dispone de los botones Aceptar OK y Cancelar Cancel e Vista Diseno Design View Para abrir su definici n textual en SQL se abre un nuevo editor de archivo con l xico SQL El t tulo de este editor debe ser Diseno vista Design vista donde vista es el nombre de la vista Se debe asociar a este editor dos botones Aceptar OK y Cancelar Cancel Si se pulsa Aceptar se debe cambiar el diseno de la vista Si se pulsa el bot n Cancelar la tecla Esc o se cierra el editor con el aspa de cierre se deben descartar los cambios simplemente no hacer nada Con cualquiera de las dos posibles decisiones aceptar o descartar los cambios se debe cerrar el editor Hay que tener en cuenta que podr an estar abiertos distintos editores de disefio para distintas vistas e Vista Datos Data View Para abrirla en vista Datos Data apartado 7 2 4 y poder examinar sus contenidos pero no modificarlos 7 2 2 9 NODO DEFINICION SQL SQL TEXT Estos nodos son hijos de los nodos de tipo Vista Tiene un unico hijo que corresponde a la definici n SQL de la vista Si no existe definici n SQL no se debe crear el nodo Definici n SQL SQL Text Debe tener un menu contextual
82. ath path of the selected executable e Executable arguments arguments for the selected executable The result of the execution is displayed in the following progress window Project Execution Process This is a test for the project compilation in ACIDE A Configurable IDE Figure 14 Execution process User s Manual 39 Facultad de ACIDE A CONFIGURABLE IDE 3 3 16 SET COMPILABLE FILE Set the active file in the file editor as compilable 3 3 17 UNSET COMPILABLE FILE Unset the active file in the file editor as compilable 3 3 18 SET MAIN FILE Set the active file in the file editor as main 3 3 19 UNSET MAIN FILE Unset the active file in the file editor as main User s Manual 40 A CONFIGURABLE IDE Informatica ACIDE BET 3 4 VIEW MENU It contains the menu items for the displaying management of the visible parts of the application and the log visualization Show Log Alt Mayus L 2 Project Browser E Console Window f Data base Window Figure 15 View menu Next all the previous menu items will be further explained 3 4 1 SHOW LOG Shows the application log in the file editor 3 4 2 PROJECT BROWSER Hides or shows the explorer panel at the left side of the main window of the application 3 4 3 CONSOLE WINDOW Hides or shows the console panel at the bottom side of the main window of the application 3 4 4 DATA BASE WINDOW Hides or shows the data base panel at the lower le
83. ath of the command to execute It admits the insertion of ACIDE A Configurable IDE special variables that are further detailed in Chapter 11 of the present document User s Manual 69 ACIDE BET A CONFIGURABLE IDE Inform tica e Help text hint text of the button e Image image for the button which can be selected by the option available in the popup menu of the column The tool bar configuration files have toolbarConfig extension 3 5 9 2 LOAD Loads a tool bar configuration with toolbarConfig extension 3 5 9 3 MODIFY It displays the following configuration window process ee Sactiveries p ee bes sts the contents of the database Pe UE pui ped pa te erent O ne og eg bas beaten ne e Figure 45 Modify tool bar It contains the same options than the configuration window displayed by the Configuration Menu New In this case the window displays the current tool bar configuration loaded in the tables and also with a different window title which contains the name of the current configuration to modify 3 5 9 4 SAVE Saves the current tool bar configuration into a tool bar configuration file with toolbarConfig extension User s Manual 70 ACIDE BET A CONFIGURABLE IDE Inform tica 3 5 9 5 SAVEAS Saves the current tool bar configuration into a tool bar configuration file with toolbarConfig extension and with a different path User s Manual 71
84. aving or taking into account the Upper Lowercase o Regular expressions regular expressions search associated with a search pattern More information about Regular Expressions in Chapter 14 User s Manual 27 e SN Facultad E D E S de A CONFIGURABLE IDE L Inform tica o Whole words find whole words only e Scope o Selected text search within a selected text o Current document document search starting in a certain position of the active file of File Editor o All opened documents searches in all opened files on the file editor e Direction o Forward searches from the current caret position to the end of the file in the source file editor o Backward searches from the current caret position to the beginning of the file in the source file editor o Cyclic searches from the current caret position to the end of the file in the source file editor and star from the beginning until the starting position e Progress bar shows the progress of the active search 3 2 9 REPLACE Displays the replace text window on the file editor User s Manual 28 ACIDE SET A CONFIGURABLE IDE scope j Selected Text Current Document 3 All Opened Documents Figure 5 Replace window It offers the same options than the search window and also the replace buttons and the replace text field to select the text to use for the replacements e Search text box Here is where user enters the search text e Special
85. bido a que semanalmente nos reuniamos con el director Fernando Saenz P rez para poner en com n los errores solventados y los nuevos objetivos a desarrollar Por tanto cada semana se dispon a de una nueva versi n de las fuentes la cual se enviaba al director para su revisi n El grupo contaba con un documento de tareas a realizar que era actualizado cada semana en la reuni n tras la revisi n del director de la correcci n de las tareas realizadas y la proposici n de nuevas La planificaci n no ha sido estimada en t rminos de recursos tiempo y esfuerzo Las tareas semanales se han ido implementando conforme eran m s o menos frecuentes dependiendo del momento de desarrollo del mismo Por esta raz n la asignaci n de tareas entre los desarrolladores ha sido la tarea de planificaci n m s importante que hemos llevado a cabo teniendo en cuenta factores como la disponibilidad de tiempo de cada uno en cada momento el estado de los desarrollos pendientes de cada uno y las posibles mejoras y arreglos pendientes A n as podemos distinguir distintas fases en el desarrollo del proyecto que pueden ser identificadas como iteraciones que ser n descritas a continuaci n 8 1 PRIMERA ITERACI N Podemos delimitar esta primera iteraci n entre el inicio del proyecto y el 20 de diciembre de 2012 En esta etapa los desarrolladores han ido familiariz ndose con la aplicaci n y acomod ndose con su c digo Tambi n se realizaron la
86. ble The value it is not assigned until user hits ENTER or changes to other attribute or object Next we further describe each one of the menu objects options e Row the number of the row It is not editable e Type the type of the menu object in this row It can ben Item or Submenu It is not editable this value is assigned when the object is created e Name the name of the menu object It is editable e Visible this value sets if the menu object is visible in the Menu bar or not e Erasable this value indicates if this menu object is a default menu object or not It is not editable The menu objects with erasable value to false are default menu objects These objects have to be always in the Menu bar configuration altough they can be not visible When the application builds the menu it checks if all the default menu objects exit in the configuration If any menu object does not exit the application creates it at the end of its submenu It can exits only one of each default menu object The application will delete the rest e Image the path of the image icon of the menu item The image icons belong only to menu items User s Manual 63 AC DE O Ce A CONFIGURABLE IDE Informatica e Path indicates the location of the menu object inside the menu which contains it e Child rows it is only for menu submenus It indicates the number of row of their childern e Command it is only for menu items It sets the command t
87. ca ACIDE A CONFIGURABLE IDE Entre los entornos de desarrollo integrados se pueden distinguir dos grandes grupos los orientados a un lenguaje de programaci n en concreto y los que tienen diferentes configuraciones para distintos lenguajes La principal ventaja del primer grupo es que permiten mayor especializaci n y poseen herramientas m s espec ficas En esta primera opci n se destacaron JBuilder 7 JCreator 8 y C Builder 9 Los dos primeros est n especializados en programaci n en Java siendo JBuilder m s completo que JCreator ya que ofrece la posibilidad de programar los botones del interfaz posee un interfaz gr fico para la creaci n de elementos Swing y ofrece depuraci n C Builder es de la misma casa que este ltimo ofrece funcionalidades similares pero para el lenguaje C Q JBuilder 9 bank Fie Edit Search View Format Modeling Project Run Team Wizards Tools Window Help DEE DEJ RMBs lal lu aa2 EBr Ek o d4 9je RERRPRERRRRBRB amp AQfo B E El ATMjx KEN ATMController X3 bank x bank xls CardController ATM jpx R E Source 2 2 ATMController java consortium 2 CardController java 2 CashDispenser java dp bank ATMController E withdraw amount float void E l E consortium deposit amount float void lt UML M
88. cation with a different path o ADD OPENED FILES Adds all opened files in the application to the active project o NEW PROJECT FILE Creates a new file and adds it to the active project o S ADD FILE Adds the active file in the file editor to current project o SREMOVE FILE Removes the active file in the file editor from the current project o S DELETE FILE Deletes the active file from the current project and from disk o ADD FOLDER Adds a folder to the current project o SREMOVE FOLDER Removes the selected folder from the current project o COMPILE Compiles the current project o EXECUTE Executes the current project o S SET COMPILABLE FILE Sets compilable the selected file o SUNSET COMPILABLE FILE Unsets compilable the selected file o SSET MAIN FILE Sets as main file the selected file o SUNSET MAIN FILE Unsets as main file the selected file e View menu o SHOW_LOG_TAB Shows the log tab o SHOW EXPLORER PANEL Shows or hides the explorer panel o SHOW CONSOLE PANEL Shows or hides the console panel o SHOW DATABASE PANEL Shows or hides the database panel e Configuration menu o Lexicon submenu NEW LEXICON Opens a window where user type down the name for the new lexicon DOCUMENT LEXICON Loads the lexicon configuration file in the active file of the file editor MODIFY LEXICON Open the lexicon configuration window User s Manual 116 AC DE O Facuad A CONFIGURABLE IDE 7 Inf
89. ccionado y con botones Aceptar y Cancelar Si el nombre es el mismo que el original no hacer nada Si ya existe se informa de que no es posible porque ya existe otra relaci n con el mismo nombre y se vuelve al cuadro anterior para elegir otro e Copiar Copy Para copiar la tabla tambi n con la combinaci n de teclas Ctrl C Debe aparecer un cuadro de di logo con dos botones de radio Copiar s lo schema Copy Only Schema y Copiar esquema y datos Copy Schema and Data Tambi n con los botones Aceptar OK y Cancelar Cancel e Pegar Paste Para pegar la tabla tambi n con la combinaci n de teclas Ctrl V En este caso se debe abrir una ventana con un cuadro de texto con un nuevo nombre como hace el Explorador de Windows al copiar un archivo tabla_X donde X es un entero consecutivo al ltimo que hubiese para la tabla de nombre tabla El usuario puede cambiar este nombre La ventana dispone de los botones Aceptar OK y Cancelar Cancel e Vista Diseno Design View Para abrirla en vista Diseno Design y poder modificar su esquema V ase el apartado 7 2 3 e Vista Datos Data View Para abrirla en vista Datos Data y poder modificar su esquema V ase el apartado 7 2 4 e A adir clave primaria Add Primary Key Debe aparecer una ventana con botones Aceptar OK y Cancelar Cancel y un cuadro de texto relleno previamente con pk Este texto no se debe poder modificar e A adir clave externa Add Foreign Key Debe
90. cheros e A adir la opci n de agregar y eliminar marcas de comentario en un texto seleccionado mediante marcas de men s y men contextual e Agregar opci n para ordenar l neas seleccionadas en los editores de archivo Sistemas Inform ticos 2012 2013 100 AC DE O Ce A CONFIGURABLE IDE Informatica e A adir botones de navegaci n para retroceder y avanzar a las posiciones a las que se haya desplazado el cursor en los editores de archivo e A adir una opci n incremental para no tener que rellenar desde cero la consola ya que es una labor muy tediosa e Si en la configuraci n de la consola se elige una consola que no existe se debe informar primero de ello sin cerrar la actual e Noborrar la configuraci n de la consola al cerrarla e Permitir la multiselecci n en el rbol del proyecto e Permitir cambiar el nombre de proyectos y archivos mediante barra de menus y menu contextual e Asociar determinado tipo de archivos al sistema operativo Al abrir estos archivos desde el sistema operativo se deber a abrir ACIDE A Configurable IDE e Permitir ejecutar m ltiples instancias de ACIDE A Configurable IDE a la Vez e Permitir arrastrar y soltar archivos dentro de ACIDE A Configurable IDE para poder abrirlo en un editor o anadirlo a un proyecto e Permitir la organizaci n de los archivos dentro del editor de archivos mediante Cascade Tile Horizontal Tile Vertical e Permitir la division de los archivos en el e
91. ching and sending contents from the file editor to the shell Sistemas Inform ticos 2012 2013 12 ACIDE SET A CONFIGURABLE IDE Inform tica 4 ESTADO DEL ARTE Para presentar el estado del arte de ACIDE A Configurable IDE en el momento del presente desarrollo del mismo se va a realizar un resumen de los distintos estados del arte presentados en el apartado que lleva ese nombre en las publicaciones 1 2 y 3 En 1 comenz el desarrollo del proyecto ACIDE A Configurable IDE en el cual se buscaba crear un IDE configurable para distintos lenguajes de programaci n y lo bastante sencillo como para no asustar al usuario con demasiadas opciones y complejidad Entre los editores de texto consultados se encuentran Crimson Editor 5 y JEdit 6 Ambos son editores de texto sencillos que permiten el resaltado de palabras reservadas seleccionadas de varios listados procedentes de diferentes lenguajes Adem s JEdit permite configurar los menus una idea muy atractiva para el tipo de IDE que se persegu a desarrollar DUNA DIO E File Edit Search Markers Folding View Utilities Macros Plugins Help pjo py C XSandbox pjotbuildilibt E cvsreorg py sftp orutherfurd a10 4 5 180 22home orutherfurd RH x f file os path join self directory CHECKSUMS a b one split sep two split sep v for line in f readlines for i in range min len a len b 5 package checksum
92. ckslash The only character that must be preceded by the backslash inside the brackets is the backslash 14 2 4 THEBAR Used to indicate one of several options For example the regular expression ale find all a or e in the text The regular expression East West North South will find any of the names of the cardinal points The bar is commonly used in conjunction with other special characters User s Manual 134 AC DE O Facuad A CONFIGURABLE IDE Informatica 14 2 5 THE DOLLAR SIGN Represents the end of the string or the end of the line when using the multi line mode There is not a special character but a position Using the regular expression A the engine will find all the places where a line ends with a dot which is useful for moving between paragraphs 14 2 6 THE CARET This character has a dual function which differs when used alone and when used in conjunction with other special characters Firstly its functionality as an individual character the character represents the beginning of the chain in the same way that the dollar sign represents the end of the string Therefore using the regular expression a z the engine will find all paragraphs beginning with a lowercase letter When used in conjunction with the brackets for example with the form 4 w is useful to find any character that is not in the indicated group The above expression can found any char
93. con el manual de usuario en formato PDF Ser a opcional la implementaci n de un ndice para buscar los contenidos en la ayuda Definir y acoplar un JScrollPanel a las listas de archivos recientes y de proyectos recientes Actualmente cuando hay muchos archivos y proyectos en estas listas stas son demasiado grandes y los botones de limpiar lista quedan ocultos 10 2 FUNCIONALIDADES El m ximo nivel de prioridad en las nuevas funcionalidades a implementar estar a ocupado por los objetivos no cumplidos mencionados en el cap tulo 9 10 Siguiendo a los mismos y ordenadas por orden de prioridad se encontrar a la siguiente lista de funcionalidades a implementar extender o corregir A adir men contextual en los nodos de las columnas en el panel de bases de datos para a adir y eliminar restricciones de integridad A adir par metro de configuraci n en el panel de bases de datos para mostrar en el nodo tabla el esquema completo con tipos el nombre y sus atributos o s lo el nombre de la tabla Hacer parametrizable la barra de men de la Vista de Datos al estilo de la barra de men de ACIDE A Configurable IDE Sistemas Inform ticos 2012 2013 99 Facultad de Inform tic a ACIDE A CONFIGURABLE IDE e Ampliar el buffer de deshacer para que se puedan hacer m s reemplazamientos o modificaciones e Permitir definir el tama o de la sangr a y si es con espacios o tabuladores en el editor de archivos
94. con las siguientes entradas Sistemas Inform ticos 2012 2013 37 SN Facultad C i D E S de A CONFIGURABLE IDE Informatica e Mostrar Editar Show Edit Para abrir el texto SQL en una ventana nueva del editor de archivos Si hay modificaciones cuando se cierre el editor se debe preguntar si se cambia la definici n SQL de la vista e Copiar Copy Para copiar el contenido al portapapeles 7 2 2 10 NODO DEFINICI N DATALOG DATALOG TEXT Estos nodos son hijos de los nodos de tipo Vista Tiene un nico hijo que corresponde a la definici n Datalog de la vista Si no existe definici n Datalog no se debe crear el nodo Definici n Datalog Datalog Text Debe tener un men contextual con las siguientes entradas e Mostrar Show Para abrir el texto Datalog en una ventana nueva del editor de archivos S lo se permite mostrar la definici n pero no cambiarla e Copiar Copy Para copiar el contenido al portapapeles 7 2 3 VENTANA DISENO DESIGN En la ventana Dise o se pueden examinar y modificar los nombres tipos de los campos de una tabla y si admiten nulos como se muestra parcialmente en la siguiente figura ES Proyecto Sistemas Inform ticos Archivo Edici n Ver Insertar Herramientas Ayuda ri int p MM ere y Figura 8 Ejemplo ventana de diseno Cada fila es un campo de la tabla con un nombre columna Nombre del campo Field Name con cuadros de texto un tipo columna Tipo Type con cua
95. d definition for action amp s s if not filter lambda i fzf fnmatch fnmatc returns for name in files self forwards forward name forwardj a out append os path join root name os path nor def getForward self name A return out return self forwards name def getForwards self j return self forwards values def move mapping base def iter self for src dest in mapping return self forwards itervalues if not os path exists src def str self continuej return Action r r self path self type self forward old new rmcommon src dest repr z str HACK to handle overrides check if the dest m has a file extension If not then use the name from the src class FormBean if not os path splitext new 1 Struts FormBean element j new os path join new os path split old 1 def init self name type log s gt s old new LOG DEFAULT self name names HACK to handle overrides check if the dest self type typet has a file extension If not assuming def str self it s a directory so create it if it return FormBean r r self name self type E doesn t exist a a E C E x v activity Log Console J Error List HyperSearch Resuts JTA SSH SQL Resut Set Tag Stack Task List 04 1 1795 python none Cp1252 Figura 1 Captura de pantalla de JEdit Sistemas Inform ticos 2012 2013 13 Facultad de Inform ti
96. de un archivo XML los distintos iconos que se han copiado anteriormente en los directorios de la aplicaci n Para cada icono contiene informaci n con su nombre su ruta original y su nueva ruta relativa De esta forma no se repetir n nombres ni se copiar n im genes que ya tengamos Los iconos copiados dentro del directorio de la aplicaci n ser n localizados en la ruta resources icons added donde tambi n se encuentra el archivo XML antes mencionado A continuaci n se muestra un fragmento de este archivo lt acide configuration icons AcideMenulconsConfiguration gt lt 1consManager gt lt list gt Em su lt acide configuration icons AcideAddedIcon gt lt absolute gt C Usuario newFile png lt absolute lt relative gt resources icons added newFile png lt relative lt name gt newFile png lt name gt acide configuration icons AcideAddedIcon lt acide configuration icons AcideAddedIcon gt lt absolute C Users menu newFile png absolute gt lt relative gt resources icons added newFile l png lt relative gt lt name gt newFile png lt name gt lt acide configuration icons AcideAddedIcon gt ap dap gt lt iconsManager gt lt acide configuration icons AcideMenulconsConfiguration gt Se ha cambiado la forma de crear los componentes de men de tal forma que ahora se lee la ruta de la imagen de su icono desde su archivo de configuraci n Si es una ruta relativa no habr ning
97. deben eliminar el registro como se ha descrito en el punto de eliminaci n de registros Sistemas Inform ticos 2012 2013 45 AC DE O Facuad A CONFIGURABLE IDE Inform tica o Cortar al portapapeles el conjunto de registros seleccionados Con la combinaci n de teclas Ctrl X y la entrada de men contextual Cortar Cut La operaci n se puede deshacer antes de pegar en otra tabla con Ctrl Z o Edici n Edit gt Deshacer Undo Despu s del pegado se deben eliminar cada uno de los registros como se ha descrito en el punto de eliminaci n de registros o Deshacer cambios Con la combinaci n de teclas Ctrl Z y la entrada de menu Edicion Edit gt Deshacer Undo o Rehacer cambios Con la combinaci n de teclas Ctrl Y y la entrada de menu Edicion Edit gt Rehacer Redo o Actualizar contenidos Con entrada Actualizar Update en menu contextual de la ventana y tambi n con la tecla de acceso directo F5 o Cerrar ventana Con entrada Cerrar Close en menu contextual de la ventana y tambi n con la combinaci n de teclas de acceso directo Alt F4 Notas e Puede haber varias ventanas abiertas en vista Datos Si ya hay una ventana abierta de una tabla se puede abrir una segunda para la misma tabla pero sin permitir ediciones en esta segunda Cualquier actualizaci n de datos de la primera se debe actualizar en el resto de ventanas para la misma tabla e Sobre esta ventana se deben poder realizar una serie de acciones
98. definidas en un men contextual de la barra de t tulo o Configuraci n de formato Display Configuration Reusar la aplicaci n de formato de ACIDE A Configurable IDE El formato de esta ventana se aplica sobre todas las ventanas Datos independientemente de la tabla o vista a la que se aplique Esta configuraci n de formato se debe guardar en el espacio de trabajo Workbench o Actualizar Update en menu contextual de la ventana y tambi n con la tecla de acceso directo F5 o Cerrar Close para cerrar la ventana y tambi n con la combinaci n de teclas de acceso directo Alt F4 Sistemas Inform ticos 2012 2013 46 AC DE O Ce A CONFIGURABLE IDE Informatica 7 2 4 2 BARRA DE ESTADO Es la barra inferior que aparece en la ventana Datos La informaci n que se debe mostrar en la barra e Registro 1 de N Record 1 of N donde N es el numero total de registros si N gt 0 e Sin registros No Records si N es 0 e Uncuadro de texto Ir a Go To en el que se pueda escribir un n mero de 1 a N Al pulsar ENTER el registro actual ser N y la rejilla se desplazar si es necesario para mostrarlo 7 2 4 3 BARRA DE MEN El men se debe parametrizar en un archivo de configuraci n en el que se describan las entradas subentradas separadores y comandos a ejecutar Tiene la sigulente estructura e Archivo File o Exportar Export CSV separado por comas Comma delimited CSV Se abrir un cuadro de di
99. ditor De esta forma se debe permitir la divisi n hasta en cuatro partes diferentes e Implementar macros de comandos e Comprobaci n de tipos al vuelo Sistemas Inform ticos 2012 2013 101 bored Facultad CIDE A CONFIGURABLE IDE Informatica 11 LISTA DE PALABRAS CLAVES e DES e Datalog e Data view e Design view e Configurable e Entorno de desarrollo integrado IDE e Base de datos e Editor multi archivo e B squeda avanzada e Consola Sistemas Inform ticos 2012 2013 102 a N es har mg Facultad C D E S de A CONFIGURABLE IDE L Inform tica 12 BIBLIOGRAF A Para desarrollar el presente proyecto se han seguido las siguientes fuentes e Explicaci n de expresiones regulares en el manual o http es wikipedia org wiki Expresi n regular e Explicaci n de la sintaxis de las restricciones pk fk ck etc o Datalog Educational System V3 1 User s Manual Fernando S enz P rez Universidad Complutense de Madrid 2012 e Introducci n a la aplicaci n en el manual o ACIDE An Integrated Development Environment Configurable for LATEX Fernando S enz P rez The Practex Journal No3 2007 http dw tug org pracjourn 2007 3 saenz perez acide saenz perez acide pdf e Tutorial de Java para ODBC y JDBC o http www java2s com Tutorial Java 0340 Database 0540 JDBC ODBC htm Sistemas Inform ticos 2012 2013 103 AC DE O Ce A CONFIGURABLE IDE Informatica 13 REFERENCIAS
100. do manteniendo la vista actual de nodos desplegados e Ejecutar consulta Execute Query Debe abrir una ventana de ejecuci n de consulta e Cerrar Close Al pulsarlo se cerrar la conexi n de la base de datos y se quitar el nodo del rbol 7 2 2 3 NODO TABLAS TABLES Este tipo de nodos son hijos del nodo Base de datos Database y muestran el sub rbol con las tablas en la base de datos las tablas deben aparecer ordenadas alfab ticamente Al pulsar este nodo con el bot n secundario del rat n debe aparecer un men contextual con las siguientes opciones Sistemas Inform ticos 2012 2013 31 AC DE O Facuad A CONFIGURABLE IDE d Inform tica e Crear tabla en vista Diseno Create Table in Design View Al pulsar esta opcion se debe abrir la ventana descrita en el apartado 7 2 3 solicitando previamente el nombre de la tabla en un cuadro de dialogo con botones Aceptar OK y Cancelar Cancel Hay que comprobar que la tabla no exista y emitir un mensaje de error en caso de existir este cuadro con unica opci n Aceptar OK que llevar el foco al cuadro anterior para dar la posibilidad de escribir otro nombre e Crear tabla con SQL Create Table with SQL Al pulsar esta opci n debe aparecer un cuadro de di logo con un cuadro de texto para escribir la consulta relleno previamente con CREATE TABLE y botones Aceptar OK y Cancelar Cancel El texto CREATE TABLE no se debe poder modificar e Crear tabla c
101. do por los alumnos Diego Cardiel Freire Juan Jos Ortiz S nchez y Delfin Rup rez Canas durante el curso acad mico 2006 2007 La siguiente versi n del proyecto fue desarrollada en el curso 2007 2008 por Miguel Mart n L zaro La versi n m s reciente hasta hoy fue implementada por el alumno Javier Salcedo G mez entre 2010 2011 Este proyecto siempre fue dirigido por Fernando S enz P rez ACIDE es un entorno de desarrollo integrado IDE configurable que puede ser usado para distintos lenguajes de programaci n Si quiere obtener m s detalles sobre este proyecto consulte las memorias 1 2 y 3 de la secci n 13 Referencias La anterior versi n de este proyecto contaba con un c digo fuente estandarizado y un comportamiento bastante fiable en l neas generales en cuanto a la gesti n de proyectos y trabajo con distintos lenguajes En esta nueva versi n hemos profundizado en la conexi n de la aplicaci n con ODBC y el programa Datalog Educational System DES 4 una implementaci n basada en Prolog de un Sistema de bases de datos deductivas Por tanto esta nueva versi n consiste en un DES GUI Front End Adem s se ha trabajado en la correcci n de errores y ampliaci n de funcionalidades de versiones anteriores como la nueva configuraci n del men la b squeda de textos y el env o de contenido desde el editor de archivos a la consola Sistemas Inform ticos 2012 2013 11 AC IDE O Facute A CONFIGURABLE IDE
102. dros de Sistemas Inform ticos 2012 2013 38 Facultad de Inform tic a ACIDE A CONFIGURABLE IDE texto si admite nulos columna Prohibir nulos Disallow nulls con casillas de verificaci n y si forma parte de la clave primaria columna Clave primaria Primary Key con casillas de verificaci n Estas dos ltimas columnas no se ven en la Figura 8 Si un campo forma parte de la clave primaria se debe desmarcar Prohibir nulos y deshabilitar esta casilla El motivo es que si una columna forma parte de la clave primaria autom ticamente no puede contener un valor nulo Si se marcase la casilla para prohibir los valores nulos se estar a haciendo una comprobaci n innecesaria cada vez que se insertase o modificase una tupla Cuando se inicie esta ventana se debe almacenar en memoria el estado de la definici n de la tabla con objeto de recuperarlo en caso de error En lugar del bot n Crear que aparece en la Figura 8 se deben poner dos botones Aceptar OK y Cancelar Cancel Con este ltimo se descartan los cambios y con el primero se emiten los comandos de modificaci n del esquema y restricciones de tabla Pero antes de emitirlos se debe comprobar si el n mero de columnas de la tabla existente ha cambiado si la tabla es nueva no es necesaria la comprobaci n Si ha cambiado y tiene alguna tupla entonces se debe advertir que no se pueden realizar los cambios porque la tabla no est vac a Si sucede un error en c
103. e Datos Desde el principio de nuestra participaci n en el proyecto la conexi n de ACIDE A Configurable IDE con las bases de datos del sistema y la creaci n de una interfaz gr fica para trabajar con ellas han sido prioritarias El esquema de las diferentes bases de datos a las que ACIDE A Configurable IDE puede conectarse se ve reflejado en el Panel de Bases de Datos f ACIDE 0 11 DES33 b Archivo Edici n Proyecto Ver Configuraci n Ayuda DES L9 Wi CN consult process listing dbschema pdg strata aboish istet dear et cd s pwd log nolog verbose noverbose builtins help Acrobat Reader ERC 3 z 4 pM di aggregates dl El aggregates ra E aggregates sql H bom d x family d El Gani va sl D E cm al Y aggregates ra Y E 1 bom d 2 Aggregates Y family dl 31 m 9 family ra Als SQL Formulation GJ family sql 5 Q9 relop dl 6 n 7 multiline on o 9 create or replace table employee name string department string salary int 10 insert into employee values anderson accounting 1200 ll insert into employee values andrews accounting 1200 12 insert into employee values arlingon accounting 1000 13 insert into employee values nolan null null 14 insert into employee values norton null null 15 insert into employee values randall resources 800 16 insert into employee values sanders sales null 17 linsert into employee values silver sales
104. e configuration menu submenu database panel Nodes can be expanded with double click or with one click on the node and one more on the button 8 1 DATABASES NODE This is the root node of the database panel below it all the databases connected will be showed GL A Databases Figure 57 Databases node User s Manual 81 ACIDE BET A CONFIGURABLE IDE _ Inform tica The popup menu of this node is the next Figure 58 Databases node popup menu Next we further detail each one of the components of the popup menu 8 1 1 OPEN With this option user can connect the panel with other database The following window is displayed MS Access Da Password Other specifications gone Figure 59 Open database 8 1 2 REFRESH All the database panel will be refreshed and user will see all the modifications made with it 8 1 3 CLOSE The database panel will be closed User s Manual 82 ke eg Facultad CIDE de A CONFIGURABLE IDE Inform tica 8 2 DATABASE NODE El 14 Databases 8 Figure 60 Database node All the databases opened on this panel are showed in this level of the tree With the contextual menu user can do the following actions Set as Default Close Ee Refresh Execute Query Figure 61 Database node popup menu 8 2 1 SET AS DEFAULT If the shell is connected to DES this option will set this database as the database in use for the following commands
105. e loaded menu and with the name of the configuration in the window title 15 Dme Active v v DES 23 oe L m pend i rrr E ETA i m NA m G AA le eee Ji D I amp 789 1 1 p JNne g ist EE SC Figure 42 Modify menu Its performance is equal to the new menu window explained on Chapter 3 5 8 1 3 5 8 4 SAVE Saves the current menu configuration into a menu configuration file with XML extension 3 5 8 5 SAVE AS Saves the current menu configuration into a menu configuration file with XML extension in a different path User s Manual 67 band Facultad CIDE A CONFIGURABLE IDE Inform tica 3 5 9 TOOLBAR CONFIGURATION It contains the menu item options for the tool bar configuration management Figure 43 Tool Bar configuration menu We also explain how to configure toolbar externally with toolbarConfig files in Chapter 13 3 2 3 5 9 1 NEW It displays the following configuration window Is executed in the Figure 44 New tool bar The window has two different panels e Console panel defines the commands related to the console panel tool bar that are executed in the console panel User s Manual 68 AC DE O Facuad A CONFIGURABLE IDE 7 Inform tica e External applications panel defines the commands related to the external applications tool bar that are executed out of the aplication In each one of the panels the user can
106. e se cierra la ventana que tenemos en primer plano De esta forma el usuario est obligado a aplicar o descartar los cambios que est haciendo en la ventana abierta Asi no se crean problemas de consistencia en el comportamiento de la aplicaci n Existe una excepci n en dos tipos de ventana que no es modal la ventana de de b squeda y la ventana de reemplazamiento Cuando estas ventanas est n en primer plano el usuario est habilitado para trabajar con el resto de funcionalidades de la aplicaci n Esto es util para en una busqueda modificar el contenido del archivo sin necesidad de cerrar dicha ventana 9 8 4 ATAJOS DE TECLADO EN VENTANAS En esta versi n de ACIDE A Configurable IDE se ha dotado a todas las ventanas tanto a las que ya exist an como a las nuevas de atajos de teclado De esta forma para las funciones S No Cancelar Tabulador Aceptar los atajos en espa ol son S N Esc Tab A mientras que en ingl s son Y N Esc Tab A Sistemas Inform ticos 2012 2013 90 AC DE O Ce A CONFIGURABLE IDE Informatica 9 9 OBJETIVOS CUMPLIDOS Los objetivos que se han cumplido satisfactoriamente en ste proyecto son los que se enumeran a continuaci n 9 9 1 GESTION DE BASES DE DATOS e Dotar a ACIDE A Configurable IDE de un nuevo panel para mostrar y modificar las bases de datos del sistema e Mostrar la informacion de dichas bases de datos de forma jerarquica en el nuevo panel e Permitir modificar las base
107. e teclado Ctrl Y o Cortar Cut Se copia en el portapapeles seg n lo que se haya seleccionado una fila o varias una columna o varias una celda o varias Atajo de teclado Ctrl X o Copiar Copy Se copia en el portapapeles seg n lo que se haya seleccionado una fila o varias una columna o varias una celda o varias Atajo de teclado Ctrl C o Pegar Paste Atajo de teclado Ctrl V o Buscar Find Atajo de teclado dependiente del idioma o Reemplazar Replace Atajo de teclado dependiente del idioma e Registros Records o Nuevo New o Eliminar Delete Atajo de teclado Supr o Actualizar Refresh Atajo de teclado F5 o lra Go To Primer registro First Record Ir al primer registro Atajo de teclado Ctrl Inicio Ultimo Last Ir al ltimo registro Atajo de teclado Ctrl Fin Siguiente Next Ir al siguiente registro Atajo de teclado Flecha abajo Anterior Previous Ir al anterior registro Atajo de teclado Flecha arriba Ir al registro Go to Record En un cuadro de di logo se solicita el n mero de registro para que sea el nuevo actual lt Separador gt o Seleccionar registro Select Record Selecciona el registro actual de la tabla Sistemas Inform ticos 2012 2013 49 AC DE O Ce A CONFIGURABLE IDE Inform tica o Seleccionar todos Select All Selecciona todos los registros de la tabla e Ver View O Ordenar por Sort by Se debe abrir
108. e void buildComponents Adds the components to the ACIDE A Configurable IDE to the configuration window private void addComponents Sets the text of the ACIDE A Configurable IDE class components with the labels in the selected language to display private void setTextOfMenuComponents Updates the ACIDE A Configurable IDE class components visibility with the menu configuration private void updateComponentsVisibility Sets the listeners of the configuration window components private void setListeners Sistemas Inform ticos 2012 2013 23 AC DE O Escutia A CONFIGURABLE IDE Inform tica 6 GESTI N DE LA CONFIGURACI N Todos los archivos del proyecto tanto los archivos de documentaci n como los archivos de c digo son objeto de control de la gesti n de la configuraci n Se ha seguido con la configuraci n de la gesti n descrita en las memorias 1 2 y 3 Al elegir los nombres de documentos y de clases en el c digo fuente se utilizar n siempre nombres que sean descriptivos de la informaci n que contienen Como se ha comentado en la secci n de est ndares para cada clase en el c digo fuente se indica la versi n a la que pertenece en el comentario previo al inicio de la clase El control de versiones en el c digo fuente se hace de forma autom tica gracias al uso del cliente Tortoise SVN 21 Debido a que el grupo de trabajo es reducido y la comunicaci
109. eclas Ctrl Bot n principal de rat n para la selecci n de filas que no sean contiguas e Edicion o Eliminar registro o registros seleccionados Con la tecla Supr y entrada del menu contextual Eliminar registro Delete Record Se debe pedir confirmaci n con cuadro de di logo o Insertar registro en la posici n actual Con entrada Insertar registro Insert Record del men contextual de una fila Despu s de insertar el registro estar en blanco ser el actual y tendr el foco Con Deshacer Undo o pulsando la tecla Esc se debe poder deshacer la inserci n antes de realizarla en la base de datos La inserci n en la base de datos se debe hacer cuando la fila pierda el foco o Modificar el registro actual El contenido de cualquier campo se puede modificar por teclado o copiando texto desde el portapapeles tanto de un campo en concreto como de la fila completa Cuando se pierda el foco del registro se actualizar n los cambios en la base de datos Sistemas Inform ticos 2012 2013 44 AC DE O Facuad A CONFIGURABLE IDE 7 Inform tica o Copiar al portapapeles el contenido seleccionado de un campo Con la combinaci n de teclas Ctrl C y la entrada de menu contextual Copiar Copy o Copiar al portapapeles un registro seleccionado Con la combinaci n de teclas Ctrl C y la entrada de men contextual Copiar Copy o Copiar al portapapeles un conjunto de registros seleccionados Con la combinaci n de teclas Ctrl C y
110. ecutable conectado a la consola por defecto en los proyectos que manejamos Algunas de las mejoras introducidas en esta iteraci n fueron e Solucionar los ciclos en las b squedas en el panel de la consola e A adir una barra de un progreso mientras se ejecutan los procesos de b squeda y reemplazamiento e Guardar las condiciones de busqueda para continuarla con F3 o Shift F3 y no hay texto seleccionado e A adir un par metro de configuraci n a los editores para habilitar o deshabilitar la confirmaci n al enviar el contenido a la consola e Marcar en rojo los editores afectados por un reemplazamiento Sistemas Inform ticos 2012 2013 54 ACIDE or A CONFIGURABLE IDE 74 Inform tica e Realizar una primera versi n de la interfaz del manager de las conexiones a las bases de datos que define las operaciones a desarrollar en todas las implementaciones e Implementar el panel de bases de datos y su interacci n con el resto de paneles de ACIDE A Configurable IDE e A adir una primera versi n del rbol de definici n de las bases de datos al panel pertinente hasta nivel restricciones de tabla e Primera versi n de la Vista de Datos Data View para mostrar el contenido de las tablas A t rmino de esta iteraci n obtenemos un primer acercamiento a lo que ser el panel de bases de datos final con funcionalidad b sica e inestable s lo para algunos tipos de nodos 8 3 TERCERA ITERACI N Esta iteraci n
111. ed text in the file editor in the console panel or in the data view window e Mouse wheel performs the vertical scroll line by line in the file editor and console panel e Control mouse wheel performs the zoom effect for the font size in the file editor and console panel Others accessibility shortcuts depends on the language of the application 10 1 ACCESSIBILITY SHORTCUTS IN ENGLISH Shortcuts in File menu e Ctrl N Creates new file e Ctrl O Opens a file e Ctrl S Saves active file in the file editor e Ctrl Shift S Saves all files in the file editor e Ctrl P Prints active file in the file editor e Alt X Closes the application Shortcuts in Edit menu e Ctrl Z Undo the last action e Ctrl Y Redo the last change e Ctrl C Copy the selected text to the System clipboard e Ctrl X Cuts the selected text to the System clipboard User s Manual 108 AC DE O Ce A CONFIGURABLE IDE Informatica e Ctrl V Paste the test in the System clipboard e Ctrl E Select all the text in the active file of the file editor e Ctrl F Opens the search window e Ctrl R Opens the replace window Shortcuts in Project menu e Alt Shift N Creates a new project e Alt Shift O Opens a project e Alt Shift S Save the opened project e Alt Shift A Adds a file to the opened project e Alt C Compiles the opened project e Alt E Executes the opened project Shortcuts in
112. efine a functional dependency constraint user has to type fd name of the relation A A2 This menu option displays a window where you can write the datalog command to create a functional dependency in the selected table D Add Functional Dependen l fd p a BD Figure 86 Add functional dependency 8 4 10 ADD INTEGRITY CONSTRAINT A integrity constraint is represented with a rule without head The rule body is an assertion that specifies incosistent data Le should this body can be proved an inconsistency is detected and reported to the user Declaring such integrity constraints implies to change your mind w r t usual consistency constraints as domain constraints in SQL For instance to specify that a column c of a table t can take values between two integers one can use the SQL clause CHECK in the creation of the table as follows CREATE TABLE t c INT CHECK c BETWEEN O0 AND 10 In contrast in Datalog user can submit the following constraints D Add Integrity Constraint z 100 X 0 X 10 SEEN gt Figure 87 Add integrity constraint Notice that the rule body succeeds for values in t out of the interval 0 10 So an integrity constraint specifies unfeasible values rather than feasible User s Manual 100 Facultad de ACIDE A CONFIGURABLE IDE Inform tica 8 5 CHILDREN OF TABLE NODES Under the table node the user can see the information of the columns a
113. eived a copy of the GNU General Public License along with this program If not see http www gnu org licenses gt A ox 0o ox A A o e Comentarios Javadoc simples y multilinea Se ha procurado introducir comentarios en cada una de las l neas de c digo para hacer m s entendible y amigable en su distribuci n el c digo Updates the log AcideLog getLog info AcideLanguageManager getInstance getLabels getString s555 Loads the ACIDE A Configurable IDE workbench configuration AcideWorkbenchConfiguration getInstance load e Por cada clase Java en el c digo para los comentarios Javadoc se sigue el siguiente formato Descripci n de la clase version 0 11 see NombreDeClase NombreDeInterfaz LI e Las variables de cada clase van precedidas por Sistemas Inform ticos 2012 2013 21 ACIDE C A CONFIGURABLE IDE e Entodas las clases el nombre de la clase empieza por Acide seguido por las palabras que definen la clase empezando cada palabra por mayuscula siguiendo el est ndar de Java public Class AcideMenuBar extends JMenuBar e Enlos nombres de los m todos la primera palabra del nombre empieza por minuscula y las palabras que siguen por mayuscula public void setTextOfMenuComponents e En las constantes de las clases todo el nombre de la constante va en may sculas separando cada palabra con static final
114. ely on the same field will change the sorting direction e Presentation o The user is able to move the columns by clicking on the column name and dragging it to its new location 8 4 5 2 MENU BAR 8 4 5 2 1 FILE MENU It contains the following menu items for the files management Export d Import Execute Query Close Alt F4 Ka Print Figure 70 Data view file menu Next all the previous menu items will be further explained 8 4 5 2 1 1 EXPORT It contains the following menu items for the files management Comma delimited CSV Tab delimited CSV CSV AML e Comma delimited CSV It opens a dialog box to select a file A text file will be created with all the records of the grid and all their fields in the order they appear in the grid separated by commas e Tab delimited CSV Same as comma delimited CSV but the separator character between fields is the tab User s Manual 89 ACIDE Oy A CONFIGURABLE IDE Informatica e CSV This opens a dialog box where user can write the separator character and proceed to select the file and save the data e XML This opens a dialog box to select a file A XML file will be created with the following structure lt DATA gt lt ROW gt col value col ROW lt DATA gt 8 4 5 2 1 2 IMPORT It contains the same menu items as Export menu item e Comma delimited
115. entes Sistemas Inform ticos 2012 2013 18 AC DE O Facuad A CONFIGURABLE IDE 7 Inform tica e El estilo de texto Normal en el documento esta compuesto por fuente Arial con tamano 12pt p rrafo justificado sangria de 0 5 cm en la primera l nea color negro interlineado de 1 5pt y espaciado anterior y posterior al p rrafo de 6pt e El estilo de T tulo 1 est compuesto por fuente Calibri con tama o 26pt p rrafo justificado color Azul Oscuro Texto 2 estilo Versales espaciado anterior 24pt y posterior 15pt al p rrafo e El estilo de T tulo 2 esta compuesto por fuente Calibri con tama o 16pt p rrafo justificado sangr a francesa de 0 63 cm color Azul Oscuro Texto 2 estilo negrita y Versales espaciado anterior 24pt y posterior 10pt al p rrafo e El formato del pie de p gina est compuesto por fuente Arial tama o 12pt color negro El pie de p gina contiene el texto Sistemas Inform ticos 2012 2013 y a la derecha el numero de pagina en estilo negrita Una l nea de color azul separa el pie de p gina del resto de texto e Las listas de enumeraciones se han realizado mediante la herramienta para enumeraciones de Microsoft Word 2007 El presente documento y el manual de usuario han seguido los mismos est ndares e El estilo de texto Normal en el documento est compuesto por fuente Cambria con tama o 12pt p rrafo justificado sangria de 0 5 cm en la primera l nea color negro interl
116. er Interpreter configuration Figure 8 Project configuration Next the window options are further described e Name indicates the project name e Folder indicates the folder where the project file will be placed If the project file already exists in the folder the application will give the chance to the user to overwrite it or not do i A The project already exists Do you want to overwrite it e Compiler Interpreter options o Compiler selects the compiler configuration for the new project o Interpreter selects the console panel configuratoin for the new project 3 3 2 0PEN PROJECT Open an existing project User s Manual 33 Facultad de Inform tica ACIDE A CONFIGURABLE IDE 3 3 3 OPEN RECENT PROJECTS Displays a list with the projects that have been already opened in the application and the option to set the list to empty 3 3 4 CLOSE PROJECT Closes the current project and sets the default configuration 3 3 5 SAVE PROJECT Saves the current project configuration into its configuration file 3 3 6 SAVE PROJECT AS Saves the current project configuration into a different configuration file 3 3 7 NEW PROJECT FILE Creates a new empty file in the file editor and adds it to the current project configuration after asking to the user for its final destination 3 3 8 ADD ALL OPENED FILES Adds all the opened files in the file editor to the current project configuration Files t
117. ered y destacado en color e Presentaci n o Traslado de columnas Se debe poder trasladar las columnas pulsando sobre el nombre de la columna y arrastr ndola a su nueva ubicaci n o Ocultar columnas Se debe poder ocultar una columna con la entrada del menu contextual Ocultar columnas Hide Columns Si s lo queda una no se debe poder ocultar o Mostrar columnas Cuando haya alguna columna oculta se puede mostrar pulsando la entrada Mostrar columnas Show Columns en el menu contextual del nombre de cualquier columna o Notas Sistemas Inform ticos 2012 2013 43 ACIDE 3 Facts A CONFIGURABLE IDE d Inform tica Si hay alguna columna oculta se debe anotar en la barra de estado con el texto Columna s ocultas Hidden Column s y destacado en color El estado de la vista de cualquier tabla o vista de la base de datos es decir criterio de ordenaci n columnas mostradas orden de las columnas y filtro se debe mantener mientras no se desconecte la base de datos a la que pertenezca e Selecci n o Toda la tabla todos los registros Al pulsar la celda superior izquierda con fondo gris o Toda una fila un registro Al pulsar su celda m s a la izquierda con fondo gris o Varias filas varios registros Pulsando en la celda m s a la izquierda con fondo gris de la primera fila manteniendo pulsada la tecla Mayus Shift y pulsando en la celda gris de la ultima fila Tambi n se admite la combinaci n de t
118. este proyecto El gran avance que se ha dado en este sentido ha sido el de poder a adir nuevos componentes a los distintos menus de tal forma que el usuario pueda definir nuevas entradas de menu de forma similar a la edici n de nuevos botones en la barra de herramientas Tambi n se pueden decidir otros aspectos de los componentes como su nombre icono acci n a lanzar y el orden en que se presentan los mismos 9 2 1 ARCHIVOS DE CONFIGURACI N En versiones anteriores para los distintos componentes de la barra de ment el usuario s lo pod a decidir si esa opci n era visible o no El archivo de configuraci n de men constaba de una lista de los distintos elementos junto a una asignaci n a un valor true o false dependiendo de si esa opci n era visible o no A continuaci n se muestra un fragmento del archivo de configuraci n de menu en la versi n anterior New File true Open File true Open Recent Files true Open All Files true Save File As false Save File false Save All Files false Close File true Close All Files true Print File false Exit File true Este fragmento de codigo corresponde a la visibilidad del menu Archivo En l se puede observar que las entradas Save File As Save File y Save All Files no son visibles El resultado de esta configuraci n ser a el siguiente Sistemas Inform ticos 2012 2013 67 Facultad de Inform tica ACIDE A CONFIGURABLE IDE File Edit Project V
119. et File as Compilable getInstanceOntobridge 1oadOntology onto new ArrayList OntologyDocument false OG Set File as Main File mainWindow MainWindow getInstance Unset File as Main File ES Databases Fernando Saenz Perez c 2004 2013 GPD UCM Please send comments questions etc to fernan sip ucm es Web site http des sourceforge net This program comes with ABSOLUTELY NO WARRANTY is free software and you are welcome to redistribute it under certain conditions Type license for details LETTET TETTE TETTE TETTE TETTE EEE EET EE EEE ET EEE EEE EEE EE EEG DES gt C Users Usuario workspace acide Ejemplo java Class 3 java Grammar bytes Lexicon Configuration default 320 NumLines 18 INS 12 47 48 Figure 11 Marking files e Next the user configures the compiler options in the compiler configuration as follows User s Manual 37 A CONFIGURABLE IDE Figure 12 Compilation by marked files Finally the user selects the Menu Project Compile menu item option User s Manual 38 Facultad CIDE zi A CONFIGURABLE IDE Inform tica 3 3 15 EXECUTE PROJECT It displays the following configuration window Execution Menu Execution Configuration Executable Path path Browse Arguments arguments OK Cancel Figure 13 Execution menu Next we further detail all the window components Executable p
120. ew grammar configurations from lexicon categories and grammar rules with EBNF format in the following configuration window Figure 24 New grammar User s Manual 49 ACIDE O Facuad A CONFIGURABLE IDE Inform tica The window has the following components e Lexicon categories panel o Lexicon categories text area shows the content of the lexicon categories plain text file with TXT extension o Load button loads the content of the lexicon categories plain text file with TXT extension into the lexicon categories text area o Save button saves the content of the lexicon categories text area into a plain text file with TXT extension e Grammar rules panel o Text box of grammar rules shows the content of the grammar rules plain text file with TXT extension o Load button loads the content of the grammar rules plain text file with TXT extension into the grammar rules text area o Save button saves the content of the grammar rules text area into a plain text file with TXT extension e Accept button initializes the grammar creation process e Cancel button closes the window without applying the changes In the moment that the new grammar is created it is not saved until the user selects the save menu option In the case that the user closes the application without saving it the last grammar configuration will be loaded If the user selects to verbose the grammar creation process the following window will be displa
121. figurable IDE menu items are e File menu O O O NEW FILE Creates a new file in the file editor OPEN_FILE Opens a file in the file editor OPEN_ALL_FILES Opens all the files of the active project CLOSE FILE Closes the active file in the file editor CLOSE ALL FILES Closes all files in the file editor SAVE FILE Saves the active file SAVE FILE AS Saves the active file in a different path SAVE ALL FILES Saves all the opened files in the file editor PRINT_FILE Prints the active file in the file editor EXIT FILE Closes the application e Edit menu O O O UNDO Undoes the last action REDO Redoes the last undone action COPY Copies the selected text to the System clipboard PASTE Pastes the text in the System clipboard CUT Cuts the selected text to the System clipboard SELECT_ALL Select all the text in the active file of the file editor GO_TO_LINE Opens a window where user can type down the number of line where he wants to go SEARCH Opens the search window REPLACE Opens the replace window e Project menu O O O User s Manual NEW_PROJECT Creates a new project OPEN_PROJECT Opens a project in the application CLOSE_PROJECT Closes the opened project in the application 115 ACIDE 3 Facts A CONFIGURABLE IDE Inform tica o SAVE_PROJECT Saves the active project in the application o SAVE_PROJECT_AS Saves the active project in the appli
122. filtrar por campos nulos en la Vista de Datos e Peque os arreglos sobre algunas de las acciones sobre la Vista de Datos e A adir el cursor de espera para las operaciones de ACIDE A Configurable IDE susceptibles de tardar e Completar el manual con todas las funcionalidades a adidas durante el Curso Sistemas Informaticos 2012 2013 57 ACIDE A CONFIGURABLE IDE e Extender el manual de usuario con secciones explicando funciones ya existentes antes de comenzar este curso pero pobremente explicadas en versiones anteriores del manual e Nuevas capturas de pantalla para todo el manual de usuario Con la finalizaci n del curso obtenemos la versi n 0 11 de ACIDE A Configurable IDE consiguiendo que la aplicaci n se comporte de forma fiable y segura Sistemas Inform ticos 2012 2013 58 ACIDE COD A CONFIGURABLE IDE Inform tica 9 TAREAS REALIZADAS En esta secci n se detallan las tareas que hemos realizado en el proyecto en t rminos de c digo fuente Por c digo fuente se entiende que no se han realizado modificaciones nicamente sobre las clases en si adem s se han modificado los diferentes paquetes recursos como iconos manual ejemplos librer as y archivos de configuraci n XML archivos de configuraci n de ACIDE y ficheros de properties 9 1 GESTI N DE BASES DE DATOS Sin duda el mayor esfuerzo en las versiones del proyecto que hemos desarrollado este curso est en el trabajo con Bases d
123. ft corner of the application User s Manual 41 ACIDE CRT A CONFIGURABLE IDE Inform tica 3 5 CONFIGURATION MENU It contains all the menu item options for the configuration management of all the modules of the application Lexicon Grammar Compiler File Editor d Shell Database Panel Language Menu Tool bar k Figure 16 Configuration menu 3 5 1 LEXICON CONFIGURATION It contains all the menu item options for the lexicon configuration management of the application Lexicon New Grammar Document Lexicon Ctrl Mayus L Modify Ctrl May s X amp Compiler File Editor Default Lexicons Figure 17 Lexicon menu We also explain how to configure lexicons externally with XML files in Chapter 13 5 Next all the previously mentioned options are further explained 3 5 1 1 NEW LEXICON Creates a new lexicon configuration with the name that the user types down in the following window applying it to the active file in the file editor User s Manual 42 E acultad A CONFIGURABLE IDE Inform tica Figure 18 New lexicon 3 5 1 2 DOCUMENT LEXICON Loads the lexicon configuration file with XML extension in the active file in the file editor 3 5 1 3 MODIFY LEXICON Open the lexicon configuration window that contains the following tabs User s Manual 43 SN Facultad CIDE z A CONFIGURABLE IDE Inform tica 3 5 1 3 1 RESERVED WORDS CON
124. gle com 21 P gina oficial de Tortoise SVN http tortoisesvn net Sistemas Informaticos 2012 2013 104 ACIDE BET A CONFIGURABLE IDE Informatica 22 J L Franco Madrigal A M Robla Gonzalez A Sanz Povedano Proyecto de bases de datos relacionales y deductivas Universidad Complutense de Madrid 2005 Sistemas Informaticos 2012 2013 105 Facultad de Inform tica ACIDE A CONFIGURABLE IDE 14 INFORMACI N DE CONTACTO Este proyecto es c digo libre Por tanto todo el c digo fuente y ejecutables est n disponibles en las siguientes direcciones de internet e Ejecutable http www fdi ucm es profesor fernan ACIDE e C digo fuente http code google com p acide 0 11 release 2012 2013 Si quisiera ponerse en contacto con alguno de los desarrolladores del proyecto puede hacerlo a trav s de las siguientes direcciones de correo electr nico e Pablo Guti rrez Garcia Pardo pablo gutierrez gp gmail com e Elena Tejeiro P rez de greda sellteje gmail com e Andr s Vicente del Cura andres vicente81 gmail com Sistemas Inform ticos 2012 2013 106 A CONFIGURABLE IDE APENDICE MANUAL DE USUARIO Sistemas Informaticos 2012 2013 107 E IDE ZE A CONFIGURABL USER S MANUAL VERSION 0 11 e ber md Facultad E D E S de A CONFIGURABLE IDE Inform tica NDEX OF CONTENTS bote qe cage PEPA OPA ee nn e 13 LJ 17 1 1 EE EEE EEE EEE 17 1 2 Develope EE EE EEE EE
125. gurationflexiconfatexmi Bre pb konfiguraionflexiconfobtexm CS Console Configuration Apply Lexicon Configuration to Console Choose a Lexicon Configuration for the Console configuration lexicon default xml Figure 22 Default lexicons Next we explain each one of its components e File editor configuration contains the elements for the default lexicon configurations management in the file editor o Add file type adds a new default lexicon configuration to the table o Remove file type removes a default lexicon configuration from the table o Table contains the following columns Description Extensions extensions list separed by Note the format txt is not a valid extension Default lexicon configuration e Console configuration contains the elements for the default lexicon configurations management in the console panel o Apply lexicon configuration to the console indicates if the default lexicon configuration has to be applied or not to the console panel o Console lexicon configuration User s Manual 48 A CONFIGURABLE IDE 3 5 2 GRAMMAR CONFIGURATION It contains the menu item options for the grammar configuration management Grammar Compiler File Editor Shell Database Panel Language Figure 23 Grammar menu Next we further explain each one of the previous menu item options 3 5 2 1 NEW GRAMMAR Creates the n
126. h another meaning Parentheses define groups anonymous but the question mark in conjunction with triangular brackets lt gt give name to such groups as follows lt Day gt d d lt Month gt d d lt Year gt d d d d Whereupon it specifies to the search engine that the first two digits found will be labeled Day the second will be labeled Month and the last four digits will be labeled Year 14 2 9 THE BRACES Usually the braces are literal characters which are used separately in a regular expression To be used as metacharacters they have to enclose one or more numbers separated by commas and to be placed to the right of another regular expression as follows d 2 This expression will find two adjacent digits Using this formula the example d d d d d d d d that served to validate a date format will become to d 2 d 2 d 4 for clarity in reading the expression 14 2 10 THE ASTERISK The asterisk is used to find something that is repeated 0 or more times For example using the expression a zA Z d will be possible to find both H and H1 H01 H100 and H1000 a letter followed by a indefinite number of digits 14 2 11 THE PLUS SIGN It is used to find a string that is repeated one or more times The expression a ZA Z d will find H1 but will not find H User s Manual 136
127. hat already belong to the project will not be included again 3 3 9 ADD FILE Adds the active file in the file editor to the project configuration 3 3 10 REMOVE FILE Removes the file from the project configuration but does not deletes it from disk 3 3 11 DELETE FILE Removes the file from both project configuration and disk previous user confirmation User s Manual 34 A CONFIGURABLE IDE Are you sure you want to permanently delete this file 3 3 12 ADD FOLDER Adds a new folder to the project in the selected level at the explorer tree and checks that it does not exist another folder with the same name before adding it Figure 9 Add folder If already exists another folder with the same name at the same level at the explorer tree displays the following message and does not add it 3 3 13 REMOVE FOLDER Removes the folder from the project configuration previous user s confirmation User s Manual 35 ACIDE A CONFIGURABLE IDE 7 en 2 Are you sure to remove the folder from the project 3 3 14 COMPILE PROJECT The project is compiled with the selected parameters in the compiler configuration window that will be further detailed in the following chapters of the present document Next we ilustrate its usage with two examples 3 3 14 1 COMPILATION BASED ON EXTENSION The process has the following steps e First in the compiler configuration window the user selects
128. hat the menu item will run The commands that start with a sign are intern commands for ACIDE A Configurable IDE and they are explained on Chapter 12 Commands that not start with are sent to console e With parameters it is only for menu items Indicates the type of parameter which the command needs to run 3 5 8 1 1 BUTTONS PANEL Next we further describe each of the buttons of the configuration window EA Add new menu It will display a window where user can type down the name of the new menu he wants to insert It will be inserted at the end of the menus list e ES Delete menu It will delete the present menu before a confirmation message The default menu can be deleted Move menu to the left moves the present menu to the left in the menus list Move menu to the right moves the present menu to the left in the menus list e adds a new submenu to the menu selected If there is a menu submenu selected the new submenu will be inserted inside it If there is a menu item selected the new submenu will be inserted after it In other case the new submenu will be inserted at the end of the list of the root menu e Addnewitem adds a new menu item to the menu selected If there is a menu submenu selected the new item will be inserted inside it If there is a User s Manual 64 ke ing Facultad e O c S de A CONFIGURABLE IDE L Inform tica menu item selected the new item w
129. ho ya que el reemplazamiento general ahora est implementado como un conjunto de reemplazamientos individuales o Se produce un paso extra al deshace o rehace cuando estamos editando en el modo OVERWRITE en el editor de texto o Cuando se deshace o rehace sobre el editor de texto a veces el cursor se pierda Esto es debido a la generaci n de una excepci n en el m todo modelToView dado que el caret de texto se pierde e Redefinir el AcideTabbedPaneUI de tal forma que vuelva a funcionar JTabbedPane SCROLL TAB LAYOUT sobre el mismo evitando de esta forma que las pesta as se muestren de forma algo desorganizada Sistemas Inform ticos 2012 2013 98 N a band Facultad E O E 3 de A CONFIGURABLE IDE Inform tica Adaptar la tabla de configuraci n del l xico para que se puedan editar las palabras reservadas sobre la misma tabla Se desea un comportamiento similar al de la ventana de configuraci n de la barra de men s Definir el AcideSearchConfiguration y el AcideSearchRecord Estas dos clases servir an para guardar configuraciones de b squedas anteriores y poder llevar un registro de las b squedas que se han ejecutado A ra z de la funcionalidad anterior definir el AcideSearchConfigurationWindow para que el usuario pueda acceder a un historial de b squedas y seleccionar la b squeda a ejecutar Definir una ventana AcideHelpWindow El objetivo es mostrar el contenido de la ayuda en formato HTML en lugar de enlazar
130. ibute is empty An example of an inserted submenu is Active File listing Tables j Dir cd Log ls Verbose pwd builtins help lormulation Figure 48 Example of inserted submenu In this example we can see an inserted submenu called DES and defined in the menu bar User s Manual 73 e SN Facultad a D E S de A CONFIGURABLE IDE L Inform tica 3 8 INSERTED MENU ITEMS As explained in chapters 3 5 8 and 13 3 1 user can insert new menu items in the tool bar For each inserted menu item the attributes are e Name the name of the menu item e Visible define if the menu item is visible or not in the application e Erasable define if the menu item is a default menu item not erasable or not is erasable The value of this attribute can not be edited e Image defines the path of the image which is the icon of the menu item e Command defines the command that is sent to console when this menu item is clicked e Parameter defines the type of parameter that the command of this menu item needs None Text File or Directory A example of inserted menu items can be seen in Chapter 3 7 of the present document User s Manual 74 Facultad ACIDE O A CONFIGURABLE IDE Inform tica 4 PROJECT BROWSER PANEL In the project browser panel are displayed the folders and files of the active project The main files appear with a blue circle beside the compilable files with a
131. iento Para calcular el porcentaje de barra que tiene que estar completo en cada momento se ha tomado el porcentaje de documentos abiertos visitados y el porcentaje de reemplazos completados entre las coincidencias totales encontradas 9 3 1 4 OTRAS TAREAS En esta secci n vamos a comentar otras tareas realizadas de menor importancia que las anteriores A continuaci n las explicamos detalladamente e B squeda del texto seleccionado se ha a adido la funcionalidad de completar autom ticamente el campo de b squeda con el texto seleccionado en el editor Cuando existe texto seleccionado y abrimos la ventana de busqueda o reemplazamiento el campo de texto destinado a la b squeda ya aparecer completado con el texto seleccionado e B squeda con F3 en consola Se ha agregado la busqueda con F3 en la consola Esta funcionalidad ya exist a para la b squeda en los editores de archivos pero no en el panel de la consola Si existe texto seleccionado en la consola y el usuario pulsa F3 se realizar una b squeda del texto seleccionado hacia delante de forma ciclica Si el usuario pulsa Shift F3 la b squeda ser hacia atr s de forma c clica 9 3 2 FUNCIONALIDADES MEJORADAS O ARREGLADAS A continuaci n vamos a exponer las funcionalidades que se han mejorado o arreglado un comportamiento no correcto No se pueden considerar nuevas Sistemas Inform ticos 2012 2013 80 AC DE O Ce A CONFIGURABLE IDE Inform tica func
132. iew Configura Mew Ctrl M P Open Cirl O Open Recent Files ZE Open All Files RK Close Ss Close All Ae Print Ctrl P W bit Alt X a Figura 22 Ejemplo de configuraci n versi n anterior Podemos observar que no aparecen las opciones relacionadas con el guardado de archivos ya que sus valores est n fijados a false Esta forma de configurar el men supuso un gran avance en la anterior versi n ya que era m s flexible y sencilla que en versiones m s antiguas Sin embargo este m todo de configuraci n tiene una gran desventaja el usuario solamente puede decidir sobre si un elemento del men es visible o no no puede a adir ni borrar componentes ni cambiar iconos nombres orden o acciones de estos componentes El men ten a una estructura y funcionalidad fija que no pod a aumentar ni disminuir Por tanto el objetivo propuesto respecto a la nueva configuraci n del men era incluir la posibilidad de crear y borrar elementos en la barra de men s y editar otras propiedades Para cumplir con este objetivo el primer paso era definir un nuevo tipo de archivo de configuraci n de men s Despu s de revisar los archivos de configuraci n de otras funcionalidades de la aplicaci n y de pensar sobre las necesidades que requer a el nuevo comportamiento se opt por usar archivos XML con la siguiente estructura lt acide configuration menu AcideMenultemsConfiguration gt lt itemsManager lt itemsManager
133. ified and it is not saved yet its tab is as follows with a red cross beside the title of the tab When a file is set as compilable file its tab is as follows aggregates dl x aggregates ra a with a green play sign beside the title of the tab And finally when a file is set as main file its tab is as follows User s Manual 76 Facultad uy ACIDE es A CONFIGURABLE IDE Inform tica 9 agaregates d E aggregates ra ell With a blue play sign beside the title of the tab The popup menu is as follow File editor display configuration kl Une Wrapping e i Automatic Indent D aa gt a Send to console confirmation Document Lexicon Send File Content to Console Send Selected Text to Console Copy Cut Paste Select All Add file to project Remove file Delete File Set File as Compilable Unset File as Compilable Set File as Main File Unset File as Main File e OSO XL Print Figure 52 File editor popup menu All these options have been explained before on Chapter 3 The available accessibility shortcuts for File Editor will be further explained in Chapter 10 User s Manual 77 SR Facultad C O E S de A CONFIGURABLE IDE Informatica 6 TOOL BAR In the toolbar are displayed some items related with files and projects commands defined by user to be run in console and commands defined by user to run external applications 99 BD ip ER cons proce
134. igo fuente se ha seguido cuidando Al ser una aplicaci n de libre distribuci n es fundamental que el c digo publicado sea legible por terceros de manera que puedan contribuir al desarrollo del mismo A continuaci n se va a explicar detalladamente el documento DES ACIDE Aplicaci n de consulta y gesti n de bases de datos DES Este documento describe los requisitos de la aplicaci n DES ACIDE integrada en ACIDE A Configurable IDE que ha centrado los mayores esfuerzos de desarrollo durante el curso y por la que nuestro proyecto lleva el nombre DES GUI Front End 7 1 REQUISITOS GENERALES e En la aplicaci n se deben usar los nombres e identificadores exactamente como se indica en este cap tulo de requisitos En particular se debe prestar especial atenci n al uso de may sculas y min sculas e Todos los cuadros de di logo con bot n Cancelar Cancel deben aceptar para la misma funci n la pulsaci n de la tecla Esc e Al cerrar un cuadro de di logo con el bot n rojo del aspa se debe aplicar la misma funci n del bot n Cancelar Cancel o la funci n predeterminada para cerrar el cuadro si no lo hubiere Sistemas Inform ticos 2012 2013 26 AC DE O Ce A CONFIGURABLE IDE Informatica e Todos los cuadros de di logo deben aceptar la pulsaci n de la tecla ENTER para realizar la acci n predeterminada Por ejemplo la pulsaci n del bot n Aceptar OK e Todos los r tulos deben estar gestionados por la loca
135. ill be inserted after it In other case the new item will be inserted at the end of the list of the root menu deletes the selected object after a confirmation message The objects that are not erasable can not be deleted e y Move object to up moves to up the selected menu object o emm Move object to down moves down the selected menu object e Alvisble sets as visible all the menu objects of the Menu Bar e None Visible sets as no visible all the menu Objects of the Menu Bar The menu objects related to menu configuration always have to be visible e Applies the changes and closes the window e Closes the window without applying the changes 3 5 8 1 2 POPUP MENU The popup menu of menu object is as follows Load image icon I T Add new submenu Add new item Delete object Move item or submenu to up HE Move item or submenu to up Send to menu Insert in submenu Figure 41 Object menu popup menu Next we further describe each of the options e Load image icon it will display a load window where user can select the image he wants to set as icon of the menu object e Add new submenu adds a new submenu to the menu selected If there is a menu submenu selected the new submenu will be inserted inside it If User s Manual 65 AC DE O Ce A CONFIGURABLE IDE Informatica there is a menu item selected the new submenu will be inserted after it In other case the ne
136. ineado de 1 5pt y espaciado anterior y posterior al p rrafo de Opt e El estilo de T tulo 1 esta compuesto por fuente Cambria con tama o 26pt p rrafo justificado color Azul Oscuro Texto 2 estilo Versales espaciado anterior 24pt y posterior 15pt al p rrafo e El estilo de T tulo 2 esta compuesto por fuente Cambria con tamano 16pt p rrafo justificado sangr a francesa de 0 63 cm color Azul Oscuro Texto 2 estilo negrita y Versales espaciado anterior 24pt y posterior 10pt al p rrafo Sistemas Inform ticos 2012 2013 19 ACIDE A CONFIGURABLE IDE El estilo de Titulo 3 esta compuesto por fuente Cambria con tama o 14pt parrafo justificado sangria francesa de 0 63 cm color Azul Oscuro Texto 2 estilo negrita y Versales espaciado anterior 10pt El formato para escribir el codigo fuente en este documento esta compuesto por la fuente Courier New con tamano 11pt alineacion a la izquierda y borde negro El formato del pie de pagina esta compuesto por fuente Cambria tamano 12pt color negro El pie de pagina contiene el texto Sistemas Informaticos 2012 2013 y a la derecha el numero de pagina en estilo negrita Una linea de color azul separa el pie de pagina del resto de texto El encabezado contiene las im genes del logo de la aplicaci n el s mbolo de la Facultad de Inform tica y el escudo de la Universidad Complutense de Madrid Las listas de enumeraciones se han realizado mediante la herramien
137. ing Seg n la columna en la que se encuentre el cursor e Ordenar descendente Sort descending Seg n la columna en la que se encuentre el cursor e Filtro r pido Quick Filter Seg n el valor de la columna en la que se encuentre el cursor e Quitar filtro Discard Filter 7 2 4 5 RESUMEN DE MEN S CONTEXTUALES DE LA REJILLA Los men s contextuales se deben parametrizar en un archivo de configuraci n en el que se describan las entradas separadores y comandos a ejecutar 7 2 4 5 1 MENU CONTEXTUAL DE UNA COLUMNA Aparece al pulsar con el bot n secundario sobre una columna con el nombre del campo Contiene las siguientes entradas ya descritas e Ordenar ascendente Sort Ascending Ordenar ascendente seg n la columna e Ordenar descendente Sort Descending Ordenar descendente seg n la columna e Ocultar columna Hide Column Ocultar la columna e Mostrar columnas Show Columns Abrir el cuadro de di logo Mostrar columnas e Quitar filtro Discard Filter Quitar el filtro e Cortar Cut Cortar de todas las celdas de la columna e Copiar Copy Copiar los datos de todas las celdas de la columna e Pegar Paste Pegar en todas las celdas de la columna lo que se copie de una columna de una tabla se puede pegar en otra 7 2 4 5 2 MENU CONTEXTUAL DE UNA CELDA Aparece al pulsar con el bot n secundario sobre una celda de datos Contiene las siguientes entradas ya descritas Sistemas Infor
138. io un ArrayList con los nombres de esos menus y un AcideMenuSubmenuConfiguration con la configuraci n de la barra de menus Para cada panel por defecto existe una clase que lo gestiona y para los paneles de los menus introducidos por el usuario otra clase Cada una de estas clases se encarga de modelar el comportamiento de la tabla para cada panel Sistemas Inform ticos 2012 2013 73 Facultad de Inform tic a ACIDE A CONFIGURABLE IDE 9 2 4 COMANDOS DE LOS TEMS DE MEN Como se ha explicado antes en esta nueva versi n se puede definir el comando a ejecutar en los tems de men Hay que hacer varios comentarios sobre este nuevo aspecto Se pueden distinguir dos tipos de comandos comandos que empiezan por y los que no empiezan por Los comandos que pertenecen al primer grupo expresan acciones de la aplicaci n es decir mediante este tipo de comandos el usuario podr editar nuevos tems de men mediante los cuales podr realizar acciones que son propias de la aplicaci n como abrir un archivo copiar el texto seleccionado o mostrar la ayuda Se remite a la lectura del Ap ndice Manual de Usuario donde en su cap tulo 12 aparece una lista con todos los comandos de este tipo disponibles en ACIDE A Configurable IDE En esta nueva versi n se han cambiado todos los listener de cada componente de los men s de la aplicaci n por el listener AcideInsertedItemListener Este nuevo listener lo que h
139. ionalidades ya que han significado un trabajo sobre una funcionalidad ya existente pero no por ello era menos necesario el trabajo sobre ellas 9 3 2 1 B SQUEDA Y REEMPLAZAMIENTO CON EXPRESIONES REGULARES La posibilidad del uso de expresiones regulares tanto para b squeda como para reemplazamientos ya exist a en versiones anteriores de ACIDE A Configurable IDE Sin embargo a la hora de probar esta funcionalidad surgieron diferentes errores en el comportamiento que exig an una dedicaci n a este campo para conseguir un comportamiento perfecto Uno de los problemas que exist an en versiones anteriores era la forma de uso de las expresiones regulares en los reemplazamientos generales ya que se usaba el m todo replaceAll que trabaja con expresiones regulares dentro de un texto El problema era que al introducir en este m todo una expresi n regular el comportamiento no era el esperado Se ha necesitado un procesamiento previo de la expresi n regular a utilizar y para los reemplazamientos generales se ha ideado otro proceso de reemplazamiento se realizan tantos reemplazamientos individuales como coincidencias hayan resultado despu s de la busqueda Un nuevo problema que ha surgido de esto es que despu s de un reemplazamiento general si se quiere deshacer la acci n hay que realizar un deshacer por cada reemplazamiento particular que haya habido Tambi n se ha afiadido un cuadro de error cuando la expresi n regular in
140. is tanen Keess Figura 23 Configuraci n del men Archivo Vamos a distinguir los distintos apartados de la ventana de configuraci n e Se puede observar que en la parte superior aparece el nombre de la ventana seguido del nombre del archivo de configuraci n del men e Aparecen pesta as con los nombres de los menus que existen en la barra de men s Seleccionando cada pesta a podremos acceder a la tabla de configuraci n de cada men e En la tabla de configuraci n aparecen los atributos de los distintos componentes de men en esta configuraci n o Las columnas Fila Tipo Borrable Ruta y Filas de los hijos no son editables Un componente no puede cambiar de tipo una vez creado El valor borrable es inamovible un elemento creado por el usuario ser borrable y uno por defecto ser no borrable La ruta y las filas Sistemas Inform ticos 2012 2013 71 Facultad ES c Inform tica ACIDE A CONFIGURABLE IDE de los hijos vienen determinadas por el orden y los componentes que contienen los componentes dentro del men Estos valores se pueden modificar cambiando la estructura del men pero no directamente en esta tabla o Para los submenus las columnas Orden y Tiene Par metro no son editables ya que carecen de sentido para ellos o Para los items de men la columna Filas de los hijos no es editable ya que carece de sentido para ellos e Abajo aparece el panel de botones de la ventana siguiendo el e
141. l Home selects the first object e Ctrl End selects the last object e Tab selects next attribute e Tab Shift selects previous attribute e Esc deselects the selected object 10 2 ACCESSIBILITY SHORTCUTS IN SPANISH Shortcuts in File menu e Ctrl N Creates new file e Ctrl O Opens a file User s Manual 110 AC DE O Ce A CONFIGURABLE IDE Informatica e Ctrl G Saves active file in the file editor e Ctrl Shift G Saves all files in the file editor e Ctrl P Prints active file in the file editor e Alt X Closes the application Shortcuts in Edit menu e Ctrl Z Undo the last action e Ctrl Y Redo the last change e Ctrl C Copy the selected text to the System clipboard e Ctrl X Cuts the selected text to the System clipboard e Ctrl V Paste the test in the System clipboard e Ctrl E Select all the text in the active file of the file editor e Ctrl B Opens the search window e Ctrl L Opens the replace window Shortcuts in Project menu e Alt Shift N Creates a new project e Alt Shift O Opens a project e Alt Shift S Save the opened project e Alt Shift A Adds a file to the opened project e Alt C Compiles the opened project e Alt E Executes the opened project Shortcuts in View menu e Alt Shift L Shows the log tab Shortcuts in Configuration menu e Ctrl Shift L Documents lexicon e Ctrl Shift X Modifies the le
142. l fontSize size of the font of console previousT oolbarConfiguration path to toolbarConfig file that previously configured ACIDE A Configurable IDE toolbar Chapter 13 3 2 currentMenuNewConfiguration path to XML file that configures ACIDE A Configurable IDE menu with the new configuration of version 0 11 Chapter 13 3 1 consolePanel isechoCommand true or false to define the behaviour of echo command at console panel User s Manual 121 ACIDE O Facuad A CONFIGURABLE IDE d Inform tica e language can be English or Spanish e currentToolbarConfiguration path to toolbarConfig file that configures ACIDE A Configurable IDE toolbar Chapter 13 3 2 e previousMenConfiguration path to menuConfig file that previously configured ACIDE A Configurable IDE menu with the configuration of older versions e lastOpenedProjectDirectory the folder of project was last opened Used to locate the user in the same folder the next time he displays a load or save project dialog e javaPath path of java exe e projectConfiguration path to the acideProject file used to configure opened project explained in Chapter 13 4 e consolePanel foregroundColor foreground color for console panel numeric valor e consolePanel parameters parameters that console panel needs 13 3 WORKBENCH CONFIGURATION The workbench is all the space where user works with files It contains the Menu Bar the Tool Bar the Explorer Panel the File Editor
143. la entrada de men contextual Copiar Copy o Pegar desde el portapapeles a un campo El foco debe estar en el campo destino Con la combinaci n de teclas Ctrl V y la entrada de menu contextual Pegar Paste Cuando el campo pierda el foco se debe modificar el registro como se ha indicado en el punto Modificar el registro actual o Pegar desde el portapapeles a un registro seleccionado El foco debe estar en el registro destino y este registro debe estar seleccionado Con la combinaci n de teclas Ctrl V y la entrada de menu contextual Pegar Paste Justo despu s de la operaci n de pegado se debe modificar el registro como se ha indicado anteriormente o Pegar desde el portapapeles un conjunto de registros El foco debe estar en la tabla destino Con la combinaci n de teclas Ctrl V y la entrada de menu contextual Pegar Paste Se debe realizar una operaci n de inserci n como se ha descrito en el punto previo sobre inserci n por cada uno de los registros a pegar o Cortar al portapapeles el texto seleccionado de un campo Con la combinaci n de teclas Ctrl X y la entrada de men contextual Cortar Cut La operaci n se puede deshacer antes de pegar en otro registro o Cortar al portapapeles el registro seleccionado Con la combinaci n de teclas Ctrl X y la entrada de men contextual Cortar Cut La operaci n se puede deshacer antes de pegar en otra tabla con Ctrl Z o Edici n Edit gt Deshacer Undo Despu s del pegado se
144. la tabla Hacer que la vista de datos sea de s lo lectura en el caso de abrirla para una vista No permitir abrir m s de una vista de datos para modificaci n e A adir las b squedas recientes en la ventana de B squeda y en la de Reemplazamiento para sta tambi n los reemplazamientos recientes e Incluir la posibilidad de usar caracteres especiales para la b squeda como p saltos de l nea y t tabulaciones e Extender la b squeda de la consola aplicando los cambios realizados en la b squeda del editor excluyendo los reemplazamientos que no proceden e Anadir en el manual de usuario la descripci n de uso de expresiones regulares Al final de la iteraci n nos encontramos con una nueva versi n de ACIDE A Configurable IDE versi n 0 10 en la que podemos utilizar casi por completo el nuevo panel integrado con DES y realizar todas las acciones permitidas sobre las tablas 8 4 CUARTAITERACI N Esta ltima iteraci n abarca desde la publicaci n de la anterior release hasta el final del curso acad mico correspondiendo con la entrega final de un IDE estable y distribuible Los principales cambios que se aportan ante la versi n 0 10 son la integraci n de la vista de diseno para la modificaci n del esquema de las tablas y la implementaci n de un nuevo gestor de men s que permita modificar todas las propiedades de las Sistemas Inform ticos 2012 2013 56 Facultad de Inform tic a
145. line soli d if a i b i BE 249 Open Buffers continues a return sep join a i sep join b i Pattern py return one twot X pjo py C Ysandbox pjotbuilcib def expand mapping mapping roots assert len roots 2 quote py CC mp out 14 readers py C XCodelDeliasicustomer import src root roots 015 regrtest py sftp lorutherfurd 210 4 5 180 22 home orutherfurd lib python2 3ftest f dest_root roots 1 retest py C tmpi for src dest names in mapping runtests py sftp orutherfurd 10 4 5 180 22 nome orutherfurditeatest if explicit names given use them and move on to the next if names for name in names QuickNotepad Project Viewer Jl JBrowse J File System Browser if checksums package checksum out append os path join roots 0 src name os print j continuej ERROR checksums don t match for root dirs files in os walk os path join roots 0 local Set dirs remove d for d in IGNORE DIRS if d in dirs j download s checksums package checksum d directory tail after source root src else E for example D al root webapp jJ sp pages customer chkwebapp py sftp orutherfurd 10 4 5 180 22 home orutherfurdbin E d cus tomer 5 def addForward self forward a d root len os path join src root src 3 if forward name in self forwards j files f for f in files error Duplicate forwar
146. lizaci n dependiendo del idioma seleccionado en la aplicaci n se mostrar n los r tulos en ese idioma En este documento s lo se muestran los idiomas espa ol e ingl s pero puede haber m s e Se debe probar la aplicaci n en distintas plataformas Windows Linux Mac OS e Todos los identificadores SQL que se env en a DES deben aparecer encerrados entre delimitadores e El editor de texto que corresponda a la Vista Dise o de una vista debe estar sincronizado con la selecci n en el rbol del Explorador de bases de datos Es decir se debe seleccionar el nodo del rbol que corresponda cuando el editor tenga el foco y deseleccionar el nodo del Explorador de proyecto sin olvidar que se debe volver a seleccionar adecuadamente cuando se lleve el foco a otro editor de archivo e El cierre de cualquier ventana se podr realizar con la combinaci n de teclas de acceso directo Alt F4 e Las ventanas deben ser redimensionables e Todos los men s y barras de comando deben ser parametrizables por archivo de configuraci n 7 2 DESCRIPCI N DE LA APLICACI N 7 2 1 INICIO DE LA APLICACI N Para acceder a la Aplicaci n de gesti n y consulta de bases de datos DES se debe a adir Bases de datos Databases como un elemento nuevo en el men Ver View Sistemas Inform ticos 2012 2013 27 ACIDE y A CONFIGURABLE IDE Inform tica ACIDE 0 8 DES2 5 File Edit Project Show Lag w KI Project Browser w E Co
147. lready exits this history similar to when he gets commands entered earlier in the same run The XML file that contains the commands history must be saved in the path configuration console The root label of this file is User s Manual 130 d ke mg Facultad C l D E S de A CONFIGURABLE IDE L Inform tica lt acide configuration console AcideConsoleCommandsConfiguration gt to reference the AcideConsoleCommandsConfiguration class Inside this label user has to define another label of Manager type called _commandsManager As usual at Managers there are two nested _list Inside the last the user defines by String labels the commands he wants to introduce in the commands history The first command at the list acts like the less recently entered at the console User s Manual 131 ACIDE CL A CONFIGURABLE IDE 14 REGULAR EXPRESSIONS A regular expression often called pattern is an expression that describes a set of strings without listing their elements Most formalizations provide the following constructors a regular expression is a way of representing regular languages finite or infinite and is constructed using alphabet characters on which the language is defined Regular expressions provide a flexible way to search or recognize strings 14 1 CONSTRUCTION OF REGULAR EXPRESSIONS Specifically regular expressions are built using the operators union concatenation and Kleene closure e Alterna
148. m ticos 2012 2013 51 ACIDE Oy A CONFIGURABLE IDE Informatica e Filtrar por contenido Filter by Conten Filtrar segun el contenido de la celda e Filtrar excluyendo el contenido Filter Excluding Content Filtrar excluyendo el contenido de la celda e Quitar filtro Discard Filter e Ordenar ascendente Sort Ascending Ordenar ascendente seg n la columna a la que pertenece la celda e Ordenar descendente Sort Descending Ordenar descendente seg n la columna a la que pertenece la celda e Ocultar columna Hide Column Ocultar la columna a la que pertenece la celda e Mostrar columnas Show Columns Abrir el cuadro de di logo Mostrar columnas e Cortar Cut Cortar el contenido de la celda e Copiar Copy Copiar el contenido de la celda e Pegar Paste Pegar en la celda 7 2 4 5 3 MENU CONTEXTUAL DE UNA FILA Aparece al pulsar con el bot n secundario sobre la celda m s a la izquierda de una fila Contiene las siguientes entradas ya descritas e Eliminar registro Delete Record e Insertar registro Insert Record e Cortar Cut Cortar de las columas mostradas del registro e Copiar Copy Copiar las columnas mostradas del registro e Pegar Paste Pegar en las columas mostradas del registro Sistemas Inform ticos 2012 2013 52 AC DE O Escutia A CONFIGURABLE IDE Inform tica 8 PLANIFICACI N Para llevar a cabo este proyecto no hemos realizado ninguna planificaci n formal de
149. mana se ha entregado una nueva versi n de la aplicaci n al director Fernando S enz P rez que consist a en un archivo ZIP y el documento TODO de tareas Dentro del archivo ZIP se encontraba el ejecutable del proyecto Cada archivo semanal segu a el siguiente convenio de nomenclatura ACIDE a o_mes_dia zip expresando el a o mes y d a en forma num rica De esta forma pod amos ir almacenando todo el conjunto de versiones que se han ido entregando y examinar la evoluci n temporal del proyecto sin lugar a la confusi n El repositorio en Google Code sigue la siguiente estructura e svn es el directorio principal del proyecto o branches este directorio contiene las versiones mas importantes que se han comportado de forma estable en el desarrollo del proyecto Es decir lo que se ha considerado una version entregable o tags aqu se encuentra la documentaci n del proyecto Todos los documentos con listas de tareas que se han elaborado semanalmente se encontraban en este directorio o trunk aqu se encuentra el c digo fuente del proyecto Sistemas Inform ticos 2012 2013 17 Facultad de Inform tic a ACIDE A CONFIGURABLE IDE o wiki este directorio no ha sido usado ya que en teor a estaba dedicado a la documentaci n acerca del proyecto Sin embargo dada la comunicaci n constante entre alumnos y director no ha sido finalmente necesario este directorio 5 2 DOCUMENTACI N En la comunicaci n ent
150. management CG Figure 76 Data view records menu Next all the previous menu items will be further explained 8 4 5 2 3 1 NEW Inserts a new record in the grid The values of the new record must be written at the last row of the grid It also can be done clicking in the cell with the icon User s Manual 93 ACIDE CRT A CONFIGURABLE IDE Inform tica 8 4 5 2 3 2 DELETE Deletes the selecetd record from the grid 8 4 5 2 3 3 REFRESH Updates the view of the grid 8 4 5 2 3 4 GOTO It contains the following menu items for the common grid editor management b Pret Record Ctrl Inicio Last Ctrl Fin Previous Go to Record Figure 77 Data view go to menu e First record Goes to the first record It also can be done with the key combination Ctrl home e Last Goes to the last record It also can be done with the key combination Ctrl end e Next Goes to next record It also can be done with the up arrow key e Previous Goes to previous record It also can be done with the down arrow key e Go to record It displays a dialog window where the user will type down the row number he wants go to Go to m Enter the record number User s Manual 94 Facultad ACIDE es A CONFIGURABLE IDE Informatica 8 4 5 2 3 5 SELECT RECORD Selects the current record from the grid 8 4 5 2 3 6 SELECT ALL Selects all the records from the grid 8 4 5 2 4 VIEW
151. mplazamiento de ACIDE A Configurable IDE Con toda la informaci n a adida y que consider bamos necesaria se ha conseguido una gran ampliaci n de la informaci n suministrada al usuario ya que el nuevo manual casi triplica en tama o al manual de la ltima versi n Sistemas Inform ticos 2012 2013 88 AC DE O Ce A CONFIGURABLE IDE Informatica 9 8 TAREAS DE CAR CTER GENERAL En ultimo lugar vamos a detallar las tareas de car cter general que hemos realizado en la aplicaci n En esta secci n se encontrar an las nuevas funcionalidades implementadas que no encajar an en ninguna otra secci n 9 8 1 ADAPTACI N A LINUX y MACOS Una de las primeras tareas con las que nos enfrentamos al empezar a desarrollar la aplicaci n fue asegurarnos de que sta era compatible con los sistemas operativos LINUX y MacOS Se llev a cabo una revisi n del c digo poniendo especial cuidado en el tratamiento de las rutas de archivo ya que los caracteres separadores en estos sistemas operativos son distintos entre ellos Por tanto se revis todo el c digo concerniente al tratamiento de archivos en funcionalidades varias como la apertura de archivos la creaci n de proyectos o la configuraci n de la consola 9 8 2 CURSOR DE ESPERA Hay determinadas tareas en ACIDE A Configurable IDE susceptibles de alargarse demasiado En versiones anteriores nada indicaba que esta tarea se estuviera realizando correctamente y la a
152. n choose between copying only the schema or copying the schema and the data 8 4 4 DESIGN VIEW It will display the Design view of the selected table where the user can make changes on it add columns change the primary key and go on Figure 68 Design view User s Manual 87 ACIDE BET A CONFIGURABLE IDE Inform tica Clicking on OK button changes will be applied If an error occurs the table will be restored to its previous schema 8 4 5 DATA VIEW Displays the following window which shows the data contained in the selected table or view where the simbol indicates the current record PRA F3 employee Table pP vc LE ES ee i department salary Record Olof 11 Goto Figure 69 Data view If it is opened for a view the modification is not allowed Also if a data view for the selected table is already opened only another read only data view can be opened 8 4 5 1 ACTIONS PERMITTED ON THE GRID e Key navegation o Up arrow selects previous record o Down arrow selects next record o Ctrl Home selects the first record o Ctrl End selects the last record o Tab selects next field o Tab Shift selects previous field o Clicking on the column header rows will be sorted ascending the first record displayed will be the record with the lowest value for User s Manual 88 Facultad de Inform tica ACIDE A CONFIGURABLE IDE this field Pressing successiv
153. nd all the constraints like primary key foreign key and go on rl employee department string varchar name string varchar salary number integer E Columns r0 name string varchar department string varchar E salary number integer gt department name i 73 parking name string varchar lot string varchar Figure 88 Children of table nodes In the primary key node and in all the nodes which define a constraint in the figure the node department name the user has these options in the popup menu X Drop PD Modify 8 5 1 DROP It will drop the restriction 8 5 2 MODIFY The user can modify the restriction with this action User s Manual 101 ACID A CONFIGURABLE IDE 8 6 VIEWS NODE The children of this node are all the views of the selected database Its popup menu is the following 8 6 1 CREATE With the next window the user can create a view defining it with an SQL command Figure 89 Create view window 8 6 2 PASTE A new view will be created with the same schema than the view that had been copied before User s Manual 102 E acultad de A CONFIGURABLE IDE Inform tica 8 7 VIEW NODE This node relates the name and the fields informatino of one view of the selected database Figure 90 View node Its popup menu is as follows Figure 91 View node popup menu 8 7 1 DROP The view will be deleted from the database 6 7 2 RENA
154. nd the information needed to configure File Editor The labels are e fileEditorConfigurationList acts like a Manager explained on Chapter 15 1 including two nested _list labels with AcideFileEditorPanelConfiguration objects These objects store information about files which must be shown opened at File Editor next time the application will be opened e SelectedFileEditorPanelName the name of the file which is shown at the File Editor e fontName the font name of the text of File Editor e _fontStyle font style of the text of File Editor e fontSize font size of the text of File Editor e foregroundColor backgroundColor RGB components of font color and background color e editionMode with false value edition mode is INSERT with true value it is OVERWRITE e automaticIndent with true value automatic indent with false value manual indent e maximumLinesToConsole the maximum number of lines that can be sent to the console at the same time e lineWrapping with true value sets on line wrapping with false value sets off line wrapping e sendToConsoleConfirmation with true value system needs confirmation to send content of file to console With false value file content is sent without confirmation User s Manual 126 ACIDE SJT A CONFIGURABLE IDE Informatica 13 3 4 CONSOLE PANEL CONFIGURATION At Console Panel content of shell connected with the application is displayed It has two labels e
155. ndo sea pulsado Puede ser o bien lanzado en consola o bien realizar una acci n de la aplicaci n M s adelante hablaremos sobre este tema e parameter contiene el tipo de par metro que necesita el comando expresado en el atributo anterior El tipo de par metro puede ser uno de estos cuatro NONE ning n par metro TEXT par metro de texto FILE par metro de tipo archivo o DIRECTORY de tipo directorio e name contiene l gicamente el nombre con el que se mostrar el item e visible con valor true o false indica si el item debe ser visible o no Este valor es el que realiza la funci n de todo el archivo de configuraci n de versiones anteriores e erasable con valor true o false Las entradas de men por defecto de ACIDE A Configurable IDE tiene este valor a false lo que quiere decir que este Sistemas Inform ticos 2012 2013 69 Facultad de Inform tic a ACIDE A CONFIGURABLE IDE tem no puede ser borrado pero s hecho no visible Dado que un tem con este valor a false no puede ser borrado la propia aplicaci n al analizar el archivo de configuraci n a adir todos estos tems que deber an existir y no est n por una configuraci n incorrecta del usuario e image contiene la ruta de la imagen que servir como icono del item M s adelante hablaremos sobre el tratamiento a estas im genes Adem s de tems de men hemos dicho que tambi n pod an aparecer entradas de men en las li
156. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnne HTTP Figure 12 Compilation by marked files sesenta tnn MT EE QI ITI NE Nescis S cima TUS EEE n E E A E Figure 16 Configuration Denn PIOUIC LAS ESKE EEE MTT NCW e Figure 19 Reserved words r seemrsreversrareurssrareeresrnneeresrnveeresrnveeressnvesresenvesensenneserssnnesenseseestnsesersrnsesererneenee Figure 20 Delimiters configUratiOT coccion Figure 21 Remarks configuration eese teta tatnen aetas tanta asas Figure NN Figure 23 Grammar THEM icd ER DUE EM Ur e ele e User s Manual 1 AC DE O Facuad A CONFIGURABLE IDE Inform tica Figure 25 Grammar generation Drocess sesenta retenta tnnt Figure 26 Modify grammar risina Figure 27 S t Figure 28 Compiler configuration ENEE Figure 29 File editor configuration eerte tnra Figure 30 File editor display option Figure 31 Maximum line NUM EE Figure 32 Console eden IER EA E A IIR IHE PIOUEFO DONC CON FLATE GENE Figure 34 Execute external command een Figure 35 Console display configuration ENEE Figure Ee Figure 37 Database panel menu Figure 38 Language configuration menu Figure 39 Menu configuration menu retreat taret eV THOU sepan d PROIN PP Figure 41 Object menu popup Dien PG UTC e ee Figure 43 Tool Bar configuration Dien Figure 44 New tool bor Figure 45 Modify tool bar reete tnnt TU Figure 4
157. nsole Window aggregates d aggregates sql Figura 5 Ment bases de datos 7 2 2 VENTANA EXPLORADOR DE BASES DE DATOS DATABASE EXPLORER El resultado debe ser que se muestre un panel similar a la ventana del proyecto Bases de datos relacionales y deductivas 22 Aunque las funcionalidades admitidas van a ser parecidas la organizaci n ser diferente En el ejemplo se abre una ventana cuyo t tulo es el nombre de la base de datos activa en DES mp Proyecto Sistemas Inform ticos Archivo Edici n Yer Insertar Herramientas Ayuda EB test Crear tabla con SOL Crear tabla con Vista Dise o Crear tabla con Catalog 5 E x Y Figura 6 Ventana explorador de bases de datos de 22 Sin embargo la nueva aplicaci n tendr una organizaci n m s parecida a la de MySQL Workbench como se muestra en la siguiente figura Sistemas Inform ticos 2012 2013 28 A Facultad CIDE de Inform tica A CONFIGURABLE IDE Catalog Tree E mydb test E Tables E se te E mr E Views Ly voa Catalog BETRE ar Figura 7 MySQL Workbench Si se intenta abrir esta ventana y la consola de DES no est conectada se debe emitir un cuadro de di logo de error Una vez que se ha emitido este comando se debe iniciar la sesi n interactiva con la consola de DES por las corrientes est ndar streams Estas corrientes estar n conectadas a la aplicaci n DES ACIDE cuanto sta tenga el foco y al panel de la
158. odel 5 checkBalance float xi fg Use Case Diagram canc 5 Class Diagram i ATM Class Diagram D 189 Sequence Diagram D v E Collaboration Diagram x _ State Diagram Le Activity Diagrarn xi F CardController Property P v gt E roperty Pane erte void ES Bankic 3 ue Connection point Round the shape p Fill bel SC Font Dialog Ej CashDispenser Leaf O m Line E Black Operation sort ty No Sorting Root l P Show attribute 0 Show all Show initial attrib Show operation Show all Show operation O v Stereotype Unspecified 4 rd Transparency D IO Visibility packade Ly Diagram Figura 2 Captura de pantalla de JBuilder En el grupo de programas no orientados exclusivamente a un lenguaje se encuentra el gran conocido Eclipse 10 Posee gran cantidad de opciones de configuraci n para muchos lenguajes Su gran inconveniente es que su configuraci n requiere una larga descarga de plugins y s lo para los lenguajes que sus desarrolladores nos ofrezcan no se puede configurar a mano Por otra parte a veces se hace demasiado complicado para lo que se buscaba en ACIDE A Configurable IDE Sistemas Inform ticos 2012 2013 14 ACIDE aya A CONFIGURABLE IDE Informatica A pesar de las desventajas enumeradas no deja de ser un programa muy completo y recomendable a la hora de tomarlo como referencia En
159. odes sesrarssenrsvsrarsavsesvarorsrsenrorsevsesesrosenesesvenseenesenrese vsenraresenennsveseesentnnr 101 Po PEEL A e erT Eaa TONET EE ea 101 Gae MO oorsien an a E A Oe 101 8 6 AAO a E 102 oG C 1 0 PR o 102 O aa 102 8 7 A 103 MEM 0 PERO Pe 103 2 NE 103 Sl nn 104 PP 104 OT NVS 104 OG IN 104 8 8 A aasre E EnaA TEE ana Ria 104 8 9 SQL text and Datalog text nodes essent nnne nns 104 EE 0 Da OO AP 107 10 Accessibility eg aa 108 10 1 Accessibility shortcuts in English eene 108 10 2 Accessibility shortcuts in Spanish sese 110 User s Manual 10 ACIDE DET A CONFIGURABLE IDE F Inform tica 11 NEDENES 12 ACIDE default Commands essen tenete tette tenente nnn 115 13 Configuration of ACIDE by configuration documents 120 13 1 Managers in XML D 120 152 Prop riesconigeuratiON EE 120 13 9 Workbench conngeuratio E 122 13 3 1 Menu OU A e EEE EE 123 13 3 2 Toolbar COMMS WEA CON E 124 13 3 3 File editor configuration sees rene narran 126 13 3 4 Console panel configuration eese nennen tentent ntnnnnns 127 13 3 5 lexiconAssigner configuration eese tenente neret nente ntn tnnt 127 13 4 Project configuration cin m tust eee mixtes I IMEEM E
160. odeshare varchar 255 varcher 255 integer OO nuk wn tra EATE destinations rel FromX ToY Company MAPTO destinations varchar 255 varchar 255 varchar 2 T destinations AS composedCompanyRoutes pra agencyName agencyPasswd Figura 4 Captura de pantalla de ASPIDE Sistemas Inform ticos 2012 2013 MAPTO flight integer varchar 255 varchar 255 varchaz B USE codeshare_rel o TABLE codeshare rel FROM MAPTO codeshare gt E CREATE destinations ri J OUTPUT OVERWRITE d y ER travelConfig typ Y dido y ll ddAirports BB nion Ur dbCommercial BB cosesnare 16 AC DE O Escutia A CONFIGURABLE IDE Inform tica 5 EST NDARES La aplicaci n de est ndares en el desarrollo de un proyecto de gran envergadura como ste es totalmente necesaria y recomendable sobre todo si hablamos de una aplicaci n de c digo abierto y cuando en el desarrollo de la misma participa un n mero considerable de personas Se han seguido teniendo en cuenta los est ndares aplicados en versiones anteriores de este proyecto mencionadas en 1 2 y 3 Sin embargo algunos de ellos se han modificado para su mejora en la medida de lo posible A continuaci n son detalladamente explicados 5 1 CONTROL DE VERSIONES Se ha llevado a cabo el control de versiones utilizando el cliente subversi n Tortoise SVN 21 y el repositorio gratuito Google Code 20 Cada se
161. of files arranged in folders with any tree depth all the configurations for the session lexicon grammar compiler shell language file editor menu and toolbar main GUI arragement panel sizes and opened files in the project and file attributes File attributes identify a file in a project as compilable and or main If a file is compilable then the compiler configuration can be set to compile each of these files If a file is a main file there is only one in the project then it can be used in the compiler configuration or in the toolbar commands The project structure shown in folders is a logical view which may coincide with the physical structure of the OS folders but this is not needed User can include in a given project a file belonging to another tree structure therefore allowing to share files for different projects 2 4 CONFIGURATION The main objetive of this system is to be as highly configurable as possible keeping the configurations easy and portable by means of text files The user can configure the Lexicon Grammar Compiler File Editor Shell Database Panel Language Menu and Toolbar These configurations will be further explained throughout this document User s Manual 21 ACIDE GAS A CONFIGURABLE IDE Inform tica 3 MENU BAR Next we further detail each one of the submenus that ACIDE A Configurable IDE as default As is explained in Chapter 3 5 8 the user can insert new menu submenus and i
162. oii incas 89 99A O o A PP ME IU TEE 89 200 Ventanas modales iii ipods 90 9 8 4 Atajos de teclado en ventanas rene rene cerraran 90 9 9 OBJELIVOS CUM ON GOS ascii 91 9 9 1 Gesti n de bases d datos aimed itp minime rd anni 91 9 9 2 Configuraci n de barra de MENUS smseeseevresererseneversenesersenesersenereesererseneversenerersenerersennne 91 9 9 3 Ventanas de b squeda y reemplazamiento sss 92 VALE MEUM E A 92 9 9 5 ENN 93 906 Barta der HUS io 93 9 9 7 Ampliaci n del manual de usuario esee nennen nannten 93 9 9 8 Tareas de caracter peneraliannsaaio island 93 9 10 ObJetivos no CUM pS casa 95 DII Wer USONE OPOOPPREn EP o e D ME 97 10 Posibles MAINE Lana 98 LOA Codigo A E raai 98 10 2 PuncionalidadeS mms 99 11 Lista de palabras ClAV ES canina aceras 102 12 BIDUO Prieta 103 13 FN 104 Sistemas Inform ticos 2012 2013 6 ACIDE BET A CONFIGURABLE IDE 14 Informaci n de contacto eee nnnn nenne treats said Ap ndice Manual de Usuario eee sensere arar 107 Sistemas Inform ticos 2012 2013 7 ACIDE ey A CONFIGURABLE IDE Informatica INDICE DE FIGURAS Figura 1 Captura de pantalla de El arancel ER e s RUE 13 Figura 2 Captura de pantalla de JBuilder sierras 14 Figura 3 Captura de p
163. ole window CLOSE_CONSOLE Closes the console o Database panel submenu DES PANEL Selects the DES conection in database panel ODBC_PANEL Selects the ODBC conection in database panel o Language submenu SPANISH Selects Spanish as language ENGLISH Selects English as language o Menu submenu NEW_MENU Displays the new menu configuration window LOAD_MENU Loads a menu configuration and applies it to application MODIFY_MENU Displays the menu configuration window for modifying SAVE_MENU Saves the current menu configuration SAVE_MENU_AS Saves the current menu configuration with a different path o Toolbar submenu NEW TOOLBAR Displays the new toolbar configuration window LOAD TOOLBAR Loads a tool bar configuration and applies it to application MODIFY TOOLBAR Displays the tool bar configuration window for modifying SAVE TOOLBAR Saves the current tool bar configuration S SAVE TOOLBAR AS Saves the current tool bar configuration with a different path e Help menu o SHOW HELP Opens this document o SHOW ABOUT US Displays the About Us window User s Manual 118 Facultad de ACIOE A CONFIGURABLE IDE Inform tica These commands can be assigned to other menu items than are not the default menu items User s Manual 119 J ord Facultad e O E S de A CONFIGURABLE IDE c Inform tica 13 CONFIGURATION OF ACIDE BY CONFIGURATION DOCUMENTS 13 1 MANAGER
164. on Datalog Create Table with Datalog Al pulsar esta opci n debe aparecer un cuadro de di logo con un cuadro de texto para escribir la consulta Datalog relleno previamente con type y botones Aceptar OK y Cancelar Cancel El texto type no se debe poder modificar Nota Estas opciones son similares a las de la aplicaci n BDRD 22 Figura 6 7 2 2 4 NODOS DE TIPO TABLA Los hijos del nodo Tablas Tables son las tablas de la base de datos y se denominan nodos de tipo Tabla Las tablas que aparecen en el Explorador de bases de datos deben ir anotadas con sus nombres de columna y tipos Por ejemplo e s b string varchar 20 a number integer e t a number integer Al desplegar cada nodo de tipo tabla se deben mostrar sus columnas nodo Columnas Columns y restricciones nodos de tipo Restricci n de integridad A seleccionar un nodo de tipo Tabla se debe tener un menu contextual con las siguientes opciones que coinciden o mejoran las mismas opciones de la aplicaci n BDRD 22 Sistemas Inform ticos 2012 2013 32 AC DE O Facuad A CONFIGURABLE IDE 7 Inform tica e Eliminar Drop Para eliminar la tabla tambi n con la tecla Supr directamente como atajo de teclado Se debe pedir confirmaci n con cuadro de di logo e Cambiar nombre Rename Para renombrar la tabla Debe aparecer un cuadro de di logo con un cuadro de texto relleno previamente con el nombre actual de la tabla y este nombre presele
165. onsole Console panel panel panel panel panel panel panel panel panel panel panel Shell path Shell directory exit command is echo command parameters foreground color background color Font name Font style Font size buffer size Is explorer panel showed flag Is console panel showed flag ACIDE A Configurable IDE main ACIDE Configurable IDE main ACIDE Configurable IDE main ACIDE Configurable IDE main ACIDE Configurable IDE main ACIDE Configurable IDE main Language configuration Database panel configuration Menu configuration Menu new configuration Tool bar configuration Number of files of the project width height X coordinate y coordinate vertical split horizontal Split window window window window window window The following lines show the properties of the project files For each file there are seven lines of text storing the file properties Therefore there will be many groups of seven lines in the configuration file as indicated at line number 34 The properties are as follows e Absolute path e Name e Parent e Directory flag e Compilable flag e Main flag e Opened flag User s Manual 128 AC DE O Facuad A CONFIGURABLE IDE Informatica 13 5 CONFIGURATION OF LEXICONS Lexicons can be configured by manually editing XML files that define them A XML file that defines a lexicon begins with the root label to reference the class AcideLexicon
166. orm tica DEFAULT LEXICON Shows the default lexicon configuration window o Grammar submenu NEW GRAMMAR Opens the new grammar configuration window LOAD GRAMMAR Loads a grammar configuration MODIFY GRAMMAR Displays the modify grammar configuration window S SAVE GRAMMAR Saves the current grammar configuration into a file SAVE GRAMMAR AS Saves the current grammar configuration into a file with a different path SST PATHS Displays the set paths window o COMPILER Displays the compiler configuration window o File editor submenu S FILE EDITOR DISPLAY OPTIONS Displays the file editor display configuration window AUTOMATIC INDENT Enables or disables the automatic indent in the file editor LINE_WRAPPING Enables or disables the line wrapping in the file editor MAXIMUM LINES Asks to the user for the maximum number of lines to send to the console panel SEND CONSOLE CONFIRMATION Enables or disables the confirmation request when user sends contents to console panel o Console submenu CONFIGURE CONSOLE Opens the console configuration window CONSOLE DISPLAY OPTIONS Displays the console display configuration window SAVE CONSOLE CONTENT Saves the console content into a file User s Manual 117 AC DE O Facuad A CONFIGURABLE IDE d Inform tica DOCUMENT_CONSOLE Loads a lexicon configuration into the console panel SEARCH_CONSOLE Opens the search in cons
167. ory requirement is the previous installation of the Java Virtual Machine JVM The user will have to get the JRE installation file with 1 6 and later versions which is available in the following link http www java com es download manual jsp Only with this easy and fast step the user will be able to run ACIDE A Configurable IDE on his computer without problems However in order to fully enjoying all the features of the application such as ACIDE A Configurable IDE grammar configurations two extra tools will have to be also installed Javac exe and Jar exe Those tools are available in the Java Development Kit JDK installation file which is available in the following link http www oracle com technetwork java javase downloads index html At last in order to visualize the present document it is mandatory for the users to have previously installed any software for PDF files visualization User s Manual 17 ACIDE O Facuad A CONFIGURABLE IDE KT Inform tica Li DEVELOPER For developers it is mandatory to have previously installed the Java Development Kit JDK with 1 6 and later versions and any software for the edition of the source code The source code has been fully edited with the Eclipse IDE tool which is available http www eclipse org Furthermore with the ACIDE A Configurable IDE source code distribution the Eclipse project file is available The developer has to import the project file into
168. ot erasable it is a default item e lt _image gt the path of its image icon e lt _command gt the command will be run when user click on this menu item e parameter the type of parameter that command needs to run It can be NONE TEXT FILE or DIRECTORY User can insert delete reorder etc AcideMenuObjectConfiguration labels AcideMenuSubmenuConfiguration and AcideMenultemConfiguration both are subclasses of AcideMenuObjectConfiguration inside the root label to manage the configuration of the Menu Bar 13 3 2 TOOLBAR CONFIGURATION The Tool Bar is situated below the Menu Bar In the Tool Bar appear several buttons for typical actions with files and projects It also contains buttons that user configures to send commands to shell and to launch external applications Toolbar configuration is done in toolbarConfig files These files are divided in two parts one part that stores settings of buttons for the toolbar that paste code on the console to be run and other part for configuration of buttons to launch external applications To configure buttons to send commands to the console each configuration of a button should be headed by a comment line starting with and consists of six lines with the following structure e name name displayed e action command to run on the console e hintText help text displayed when user puts mouse over the button e icon path ofthe image for the button User s
169. pecial character Figura 27 Bot n especial Seleccionando alguna de las dos opciones el usuario a adir el car cter especial correspondiente al campo de texto al que pertenezca el bot n Write the text to search for Aggregates p Recents pedal o Z T Special At Add tab special character Options p Add paragraph special character Figura 28 Insertado p El sistema transformar estos caracteres especiales por los correspondientes para realizar la busqueda en el editor de texto Esta funcionalidad esta disponible para las ventanas de busqueda y reemplazamiento y para los campos de texto a buscar y texto a reemplazar Los caracteres especiales afiadidos tambi n aparecer n en la lista de b squedas y reemplazamientos recientes 9 3 1 2 B SQUEDAS Y REEMPLAZAMIENTOS RECIENTES Como se puede observar en Figura 25 e Figura 26 se ha afiadido una lista desplegable para cada campo de texto con una etiqueta Recientes En esta lista se muestran los elementos recientemente introducidos en el campo de busqueda o reemplazamiento al que pertenece la lista Consiste en un historial en el que el usuario puede recuperar b squedas o reemplazamientos recientes Sistemas Inform ticos 2012 2013 78 ACIDE A CONFIGURABLE IDE Write the text to search for employee Recents Special Aggregates Figura 29 Ejemplo de uso de Recientes Seleccionando uno de ellos ese elemento se asignara
170. plicaci n simplemente parec a colgada mientras que este tipo de tareas se completaba Esto podr a hacer pensar al usuario que la tarea no se hab a realizado correctamente y la aplicaci n hab a quedado bloqueada Para evitar esto en las tareas que se ha detectado que su tiempo de ejecuci n puede ser superior al normal se ha insertado un cursor de espera De esta forma al ejecutar una de estas acciones el cursor normal cambia a un cursor de espera indicando al usuario que la aplicaci n est funcionando correctamente Una vez terminada la acci n el cursor volver a su estado original y el usuario podr seguir utilizando la aplicaci n Acciones en las que aparece el cursor de espera durante su ejecuci n e Esquema de las bases de datos o Actualizar el rbol de la base de datos o Abrir un nodo del rbol de la base de datos Sistemas Inform ticos 2012 2013 89 AC DE O Ce A CONFIGURABLE IDE Informatica e B squeda reemplazamiento o Busqueda o Reemplazamiento individual o Reemplazamiento general e Editor de archivos o Enviar contenido de archivo a la consola o Enviartexto seleccionado a la consola 9 8 3 VENTANAS MODALES Una de las modificaciones en el aspecto gr fico de la aplicaci n ha sido definir todas las ventanas de ACIDE A Configurable IDE como modales Esto quiere decir que en todas las ventanas de ACIDE A Configurable IDE el resto de la aplicaci n queda deshabilitado hasta qu
171. pplication has been completely done using Java under Eclipse Version control was kindly provided by Tortoise SVN Zi THE MAIN GUI Figure 1 shows the main GUI of ACIDE It consits of four main panels The left panel shows the organistation of the current project the MDI windows in the right are the opened files which may belong to the project files may be opened without assigning them to the project Below the left panel shows the databases system connected with ACIDE which allows user interaction Beside the shell panel is shown The case shown is the DES console The databases shell and project panels can be hidden Moreover there is no need to work with projects if this flexibility is not needed a regular user may use the system as is The status of the GUI is remembered for the next time the tool is executed If the tool opens a project its status when it was last saved is restored The menu bar includes some common entries e File For file related operations e Edit For clipboard related operations Search Replace Undo Redo Select All and Go To Line e Project For project related operations e View For showing hiding project shell and databases panels and displaying the log Window arrangements are not possible up to now but User s Manual 19 ACIDE SET A CONFIGURABLE IDE Inform tica usual features are cascading and tiling windows both vertically and horizontally ES ACIDE 0 11 DES33 o x
172. ptions In the configuration window the user can configure the following parameters e Font type e Font size e Font style e Foreground color e Background color e Restore default values applies the default configuration Monospaced font plain size of 12 black with white blackground 3 5 4 2 AUTOMATIC INDENT Enables or disables the automatic indent in the file editor 3 5 4 3 LINE WRAPPING Enables or disables the line wrapping in the file editor User s Manual 55 Facultad Acioe GY A CONFIGURABLE IDE Inform tica 3 5 4 4 MAXIMUM LINE NUMBER TO SEND TO CONSOLE Asks to the user for the maximum number of lines to send to the console panel from the active file in the file editor Maximum number of lines to send to the console Figure 31 Maximum line number 3 5 4 5 SEND TO CONSOLE CONFIRMATION If this option is selected when the user sends contents of the active file in the file editor the application will display the following confirmation message o Are you sure about to send the file content to the console for its execution If this option is not selected when the user sends contents of the active file in the file editor the application simply sends the contents to the console panel adding each sent line as a separate command in the console panel command record User s Manual 56 A CONFIGURABLE IDE 3 5 5 CONSOLE CONFIGURATION It contains the menu item option
173. qUed O ccciciciinininininir es 76 Figura 26 Ventana de reemplazamiento eterna 77 Figura 27 Bot n CSPCCIAL eessen 78 Figura 28 Lame BE 78 Figura 29 Ejemplo de uso de Recientes rrrsremrernvveresrarearesrnresressnvesrnsenreserserresensesvesenseseesrnsesersrneesee 79 Figura 30 Barra de progreso parcialmente completa en una b squeda 80 Figura 3T Editores EE EE 62 Figura 32 Confirmaci n del env o a la consola enean 65 Figura 33 Bot n para enviar el contenido del archivo a la consola 86 Sistemas Informaticos 2012 2013 9 Facultad de Inform tica ACIDE A CONFIGURABLE IDE 1 AUTORIZACI N Se autoriza a la Universidad Complutense a difundir y utilizar con fines acad micos no comerciales y mencionando expresamente a sus autores tanto la propia memoria como el c digo la documentaci n y o el prototipo desarrollado Pablo Guti rrez Garcia Pardo Elena Tejeiro L pez de greda Andr s Vicente del Cura Sistemas Inform ticos 2012 2013 10 AC DE O Ce A CONFIGURABLE IDE Informatica 2 RESUMEN DEL PROYECTO Este proyecto de la asignatura de Sistemas Informaticos consiste en el desarrollo de varias versiones de un proyecto ya existente llamado ACIDE A Configurable IDE realizado en varias fases como proyecto de la asignatura de Sistemas Informaticos de varios alumnos En primer lugar fue realiza
174. r integer b string varchar 20 Columns e a number integer e bsstring varchar 20 SQL Text e SELECT ALL FROM t NATURAL INNER JOIN s Datalog Text e V A B t A s A B 7 2 2 8 NODOS DE TIPO VISTA Los hijos del nodo Vistas Views son las vistas de la base de datos y se denominan nodos de tipo Vista Las vistas que aparecen en el Explorador de bases de datos deben ir anotadas con sus nombres de columna y tipos Por ejemplo e v a number integer b string varchar 20 Al seleccionar un nodo de tipo Vista se debe tener un menu contextual con las siguientes opciones e Eliminar Drop Para eliminar la vista tambi n con la tecla Supr directamente como atajo de teclado Se debe pedir confirmaci n con cuadro de di logo Sistemas Inform ticos 2012 2013 36 ACIDE O Facuad A CONFIGURABLE IDE 7 Inform tica e Cambiar nombre Rename Para renombrar la vista Debe aparecer un cuadro de di logo con un cuadro de texto relleno previamente con el nombre actual de la vista y con botones Aceptar OK y Cancelar Cancel Si el nombre es el mismo que el original no hacer nada Si ya existe se informa de que no es posible porque ya existe otra relaci n con el mismo nombre y se vuelve al cuadro anterior para elegir otro e Copiar Copy Para copiar la vista tambi n con la combinaci n de teclas Ctrl C e Pegar Paste Para pegar la vista tambi n con la combinaci n de teclas Ctrl V En este c
175. re alumnos y profesor durante la realizaci n del proyecto se ha llevado a cabo el seguimiento de una serie de documentos de tareas escritos peri dicamente Este tipo de documentos de tareas se enviaba semanalmente junto a cada entregable para su correcci n y actualizaci n siendo entregada la nueva versi n del documento a los alumnos con las tareas a corregir y realizar durante la siguiente semana Para llevar correctamente el control de estos documentos y evitar confusiones entre distintos entregables se ha establecido una nomenclatura normalizada para cada documento semanal a o_mes d a TODO_ACIDE docx siendo expresados a o mes y d a en forma num rica En cuanto al contenido estos documentos se han dividido en dos secciones principales Tareas Realizadas y Tareas Pendientes Estas categor as se dividen a su vez en secciones bas ndose en las diversas funcionalidades de la aplicaci n Se establecen dos niveles de prioridad tareas urgentes y futuras funcionalidades Se ha creado una leyenda para mejorar la comprensi n de estos documentos explicando el significado de cada color de fuente utilizado en la redacci n de las tareas e Verde Implementaci n completa y funcionamiento correcto e Azul Implementaci n no completa e Rojo Sin implementar e Negro Comentarios del profesor e Naranja Aclaraciones preguntas de los alumnos Los est ndares aplicados en estos documentos de tareas han sido los sigui
176. rendizaje sobre el desarrollo de un entorno de desarrollo integrado IDE la conexi n con las bases de datos del sistema la implementaci n de nuevas funcionalidades necesarias y ampliaci n y correcci n de otras ya existentes Todo esto ha llevado a la obtenci n de una versi n distribuible de ACIDE A Configurable IDE Sistemas Inform ticos 2012 2013 97 A CONFIGURABLE IDE Informatica 10 POSIBLES AMPLIACIONES En esta secci n vamos a exponer posibles mejoras para la aplicaci n hablando de ellas tanto a nivel de c digo fuente como de adici n de nuevas funcionalidades o correcci n de funcionalidades ya existentes Muchas de ellas ya exist an en la versi n previa de este proyecto y al no haberse cumplido en esta versi n siguen vigentes 10 1 C DIGO FUENTE Hablando de mejoras a nivel de c digo fuente se identifican las siguientes e Definir e implementar el AcideExceptionManager sta clase estar a encargada de gestionar todas las excepciones que puedan surgir en el sistema e A ra z de la implementaci n de la funcionalidad anterior definir e implementar una jerarqu a de excepciones Estas excepciones ser n controladas por AcideExceptionManager e Redefinir AcideUndoManager ya que actualmente existen comportamientos indeseados en los editores de archivos como los sigulentes o Despu s de un reemplazamiento general habr a que hacer tantos deshacer como n mero de reemplazamientos individuales se han hec
177. rent path than it was saved before 3 1 9 SAVE ALL FILES Save all files opened in the file editor 3 1 10 PRINT FILE Prints the active file in the file editor 3 1 11 EXIT Closes the application and if any changes have been encountered in the current project configuration displays the following dialog to the user User s Manual 23 Facultad de Inform tica ACIDE O A CONFIGURABLE IDE Adittionally if any of the opened files in the file editor has been modified it will asked to the user for saving them with the following dialog The user can abort the exit process in any time by cancelling any of the previous dialogs User s Manual 24 ACIDE BET A CONFIGURABLE IDE Inform tica Sud EDIT MENU It contains the following menu items for the common file editor management Undo Ctrl Z Redo Ctrl Y B Copy Ctrl C F Paste Ctrl V o Cut Ctrl X Select All Ctri E W Go to line number 49 Find Ctrl F AB Replace Ctrl R Figure 3 Edit Menu Next all the previous menu items will be further explained 3 2 1 UNDO Undo the changes in the file editor setting the focus on the file which is the owner of the change 3 2 2 REDO Redo the changes in the file editor setting the focus on the file that is the owner of the change 3 2 3 COPY Copy the selected text in the active file in the file editor or in the console and put it into the system clipboard 3 2 4 PASTE Pas
178. rita en el apartado 7 2 4 2 El boceto de esta ventana se muestra a continuaci n Barra de titula con al texta nombre Tabla Table Barra de menus Archivo Edicion Barra de comandos Iconos Rejilla de datos ae describe mas abajo Figura 11 Boceto ventana de datos Notas e Enlarejilla de datos no se deben anadir las comillas e as celdas con valor nulo aparecen vac as en lugar de con el identificador null e Els mbolo indica el registro actual e Unregistro o campo seleccionado se muestra en video inverso La rejilla se mostrar a como Sistemas Inform ticos 2012 2013 41 SN Facuitad C D E S de A CONFIGURABLE IDE L Inform tica i Esta fila se usa para a adir un nueva resisto Figura 12 Rejilla de vista de datos 7 2 4 1 ACCIONES PERMITIDAS SOBRE LA REJILLA e Navegaci n con teclas o Flechas arriba y abajo registro anterior y siguiente o RePag y AvPag p gina anterior y posterior o Ctrl Inicio y Ctrl Fin primer registro y ultimo o Inicio y Fin primer campo m s a la izquierda y ltimo m s a la derecha o Tab y May s Tab campo anterior y posterior Si se alcanza el ltimo campo y se pulsa Tab se debe trasladar el foco al primer campo del registro anterior Si se alcanza el primer campo y se pulsa May s Tab se debe trasladar el foco al ltimo campo del registro anterior e B squeda o Reusar la b squeda y reemplazamiento de texto de ACIDE
179. rsiones anteriores exist a la opci n de enviar el contenido del archivo a la consola mediante men contextual Ahora se ha implementado la posibilidad de enviar s lo el texto seleccionado El funcionamiento es id ntico al anteriormente comentado pero nicamente se env a el texto seleccionado Esta opci n resulta til a la hora de querer probar fragmentos de c digo en la consola Adem s ahora tambi n se visualizar en la consola el contenido enviado El comportamiento de estas funciones es muy similar al de copiar y pegar en consola ver cap tulo 9 4 1 Par metro para habilitar deshabilitar la confirmaci n al enviar contenido a la consola Esta funcionalidad se implement al plantearse la posibilidad de eliminar la solicitud de confirmaci n al enviar contenido a la consola El usuario podr a preferir una manera m s r pida de realizar este proceso sin que el sistema necesite una y otra vez la confirmaci n del usuario Para ello se ha a adido en Configuraci n Editor de Archivos la opci n Confirmaci n del env o a la consola para habilitar o deshabilitar la solicitud de informaci n Esta nueva informaci n se almacena en el archivo de configuraci n del Editor de Archivos explicado en el capitulo 13 3 3 del Ap ndice Manual de Usuario mop A l l l Editor de Archivos Ha gt Configuraci n de la presentaci n del editor de archivos Consola Ur Sangrado automatico Pand de hase A E Ajuste de linea Ctrl Mayus A E amp M
180. rtunos debe pulsar el bot n Aceptar para aplicarlos 9 2 3 FUNCIONAMIENTO DE LA NUEVA CONFIGURACI N Despu s de toda esta explicaci n sobre c mo configurar el men vamos a detallar algo m s el funcionamiento de esta configuraci n La clase AcideMenultemsConfiguration es la que se encarga de gestionar toda la configuraci n de la barra de men s Esta clase usa el patr n singleton y dentro contiene un objeto AcideMenultemsManager que como hemos explicado antes gestiona la configuraci n indicada por los archivos de configuraci n La ventana de configuraci n explicada en el apartado anterior edita el fichero de configuraci n que utilice el proyecto activo y al aplicar los cambios hace que la clase AcideMenultemsConfiguration vuelva a leer ese archivo y construya la barra de menus con las propiedades indicadas Las clases AcideMenultemConfiguration y AcideMenuSubmenuConfiguration son las encargadas de gestionar las propiedades de cada item de men y submen respectivamente y ambas heredan de la clase AcideMenuObjectConfiguration Todas estas clases se encuentran en el paquete acide configuration menu En cuanto a la ventana de configuraci n la clase encargada es AcideMenuNewConfigurationWindow en el paquete acide gui menuBar configurationMenu menuMenu gui Esta clase cuenta con un panel para cada menu por defecto de ACIDE A Configurable IDE un Hashmap que contiene los paneles del resto de menus insertados por el usuar
181. s ACIDE Configuration The following line shows the date of the last time the user ran this issue of ACIDE A Configurable IDE Displays the following format Mon May 27 18 16 32 CEST 2013 User s Manual 120 AC DE O Facuad A CONFIGURABLE IDE The following lines show the property name followed by a Inform tic a tt and the value assigned to that property with the following structure consolePanel fontName name of the font of console panel workbenchConfiguration path to XML file that configures the workbench Chapter 13 3 lastOpenedFileDirectory the folder was last opened Used to locate the user in the same folder next time javacPath path of javac exe jarPath path of jar exe consolePanel exitCommand exit command for console ed consolePanel fontStyle style of the font of console panel consolePanel bufferSize size of buffer of console panel previousMenuNewConfiguration path to XML file that previously configured ACIDE A Configurable IDE menu with the new configuration of version 0 11 Chapter 13 3 1 consolePanel backgroundColor console panel background color numeric valor currentMenuConfiguration path to menuConfig file that was configurating ACIDE A Configurable IDE menu with the configuration of older versions consolePanel shellDirectory path to the folder where the exe of console Shell is stored console Panel shellPath path to the exe file of console shell consolePane
182. s de datos a trav s de los men s contextuales de los diferentes niveles del arbol del panel e Conectar el nuevo panel con la consola de DES e Permitir la conexi n del panel de base de datos con ODBC e Crear una estructura robusta para el manager de las conexiones a las bases de datos que permita afiadir f cilmente otras implementaciones para otros tipos de conexiones e A adir una vista de datos con la que visualizar el contenido de las tablas de las bases de datos de forma tabular e intuitiva e Dotar a la tabla de datos de funcionalidad para poder modificar insertar y eliminar filas as como filtrar la tabla y buscar y reemplazar e Importar y exportar datos de ficheros CSV y XML de tablas del sistema e Crear una vista de dise o de las tablas que permite visualizar el esquema de dichas tablas de forma tabular e Permitir la modificaci n de los metadatos de las tablas que est n vac as 9 9 2 CONFIGURACI N DE BARRA DE MEN S e Modificar el modo de configuraci n de la barra de men s pasando de poder definir s lo la visibilidad de los items a poder definir tambi n la imagen los comandos y las posiciones e Cambiar el fichero de configuraci n de men s a formato XML Sistemas Inform ticos 2012 2013 91 A CONFIGURABLE IDE Inform tica e A adir una nueva ventana que permita realizar estas configuraciones de forma visual 9 9 3 VENTANAS DE B SQUEDA Y REEMPLAZAMIENTO e Incluir una barra de progreso en l
183. s for the console panel configuration management Shell ES Configuration Database Panel amp Execute command Language amp Console display configuration n Save content into file Term Ae Documentleicon 4 Find Ctrl May s F ER Close shell Figure 32 Console menu We also explain how to configure console panel externally with XML files in Chapter 13 3 4 3 5 5 1 CONFIGURE Configures the shell configurations that are loaded in the console panel EN Executable Path Exit Command Figure 33 Shell configuration It contains the following components e Executable executable file path e Parameters shell is configured with these parameters User s Manual 57 Facultad Acioe GY A CONFIGURABLE IDE Inform tica e Change executable path it is used for especifying a different folder where the executable file is placed e Executable path executable file folder e Exit command exit command for closing the data stream e Command echo indicates if the commands typed in the console panel have to be displayed or not 3 5 5 2 EXECUTE EXTERNAL COMMAND Executes a command into a shell and displays the result in a separate window that looks like Figure 34 Execute external command 3 5 5 3 CONSOLE DISPLAY CONFIGURATION Displays the following configuration window User s Manual 58 ACIDE BET A CONFIGURABLE IDE Inform
184. s primeras tareas del documento de tareas que corresponden a arreglos de bugs de la versi n anterior y de nuevos desarrollos sencillos Algunas de las mejoras introducidas en esta iteraci n son e Incluir en el manual informaci n sobre la configuraci n con XML e Recuperaci n del historial de comandos de la sesi n anterior Sistemas Inform ticos 2012 2013 53 ACIDE O Facuad A CONFIGURABLE IDE d Inform tica e Total compatibilidad con Linux y Mac OS e Escritura de los comandos al enviar contenido del editor a la consola e Opci n de enviar a la consola el contenido de un fichero o s lo el texto seleccionado e Aceptaci n de las rutas de consola que contengan espacios en blanco e Solucionar la p rdida de respuesta de la consola ante ENTER sucesivos e Arreglar la p rdida de los cambios que se realizaran en la barra de herramientas e Dise as las clases necesarias para implementar el panel de las bases de datos con distintos or genes de datos En la finalizaci n de esta iteraci n cont bamos con una nueva versi n de la aplicaci n versi n 0 9 m s estable y con alguna funcionalidad afiadida 8 2 SEGUNDA ITERACI N La segunda iteraci n comprende desde el dia 20 de diciembre de 2012 hasta el 15 de febrero de 2013 Durante esta fase se comenz a implantar el nuevo panel de informaci n de las bases de datos al proyecto Inicialmente este panel tendr como origen de datos DES que es el ej
185. se Manager 2 getTables acide process console Des ts ee A OE a ee Database Manager BE AL ae di IV i adi E i OCH e getTables Figura 18 Interfaz AcideDatabaseManager Este diagrama representa el estado inicial de las clases de acceso a las bases de datos Para no hacer el diagrama demasiado exhaustivo solamente hemos afiadido una de las operaciones que se definen la interfaz getTables Como se puede ver DesDatabaseManager implementa el patr n singleton de tal forma que s lo habr una instancia de sta clase en toda la aplicaci n Este disefio fue el que se instaur en ACIDE A Configurable IDE hasta el momento en el que se nos pidi a adir ODBC como origen de datos alternativo para el nuevo panel Esta nueva funcionalidad requeria que s lo una de las dos conexiones estuviera abierta en cada instante Por lo tanto aunque realiz ramos otra implementaci n de AcideDatabaseManager que cumpliera el patr n singleton no ver amos cubierto ese problema as tuvimos que redisenar el acceso a datos La clase que deber a pasar a ser singleton es la superclase de los dos managers AcideDatabaseManager En ese momento era imposible por ser una interfaz por lo que pas a convertirse en una clase abstracta con todos los m todos que definen la interfaz abstractos Esta clase pasa a tener un atributo instance de su propio tipo Adem s del m todo getInstance necesario en este caso a adimos
186. so de la consola el texto pegado se a ade en el JTextPane del panel De este modo cuando la consola devuelva resultados se colocar n a continuaci n del texto del comando En caso de que el ltimo comando copiado o enviado ver cap tulo 9 5 no vaya seguido por un salto de l nea el proceso no devolver resultado alguno pero al haber sido enviado a la consola en versiones anteriores no pod a ser modificado Con los cambios efectuados este ltimo comando ser identificado y no se enviar a la consola Se permitir su edici n o borrado en el panel 9 4 2 HISTORIAL DE COMANDOS PERSISTENTE Otra de las tareas importantes en esta secci n fue la de crear un historial de comandos persistente de una sesi n a otra Para ello se implement la clase AcideConsoleCommandsManager dentro del paquete acide configuration console commands Al iniciar la aplicaci n esta clase lee el archivo default xml ubicado en la ruta configuration console y guarda en una lista todos los comandos all almacenados Los comandos introducidos por el usuario en la sesi n Sistemas Inform ticos 2012 2013 83 Facultad de Inform tica ACIDE A CONFIGURABLE IDE activa se insertan en esa lista cada vez que son enviados a la consola Al cerrar la aplicaci n el manager de comandos s lo incluir en el archivo XML los comandos introducidos en esta sesi n evitando as un historial que guarde comandos de varias sesiones 9 4 3 0TRAS TARE
187. ss isting dbschema pdg strata abolish istet de ret cd Is pwd log nolog verbose noverbose builtins help Actebat Reader Figure 53 Tool bar Next we further describe each one of the previous components e zy Creates a new file L5 5 Y Opens a file Saves current file Saves all opened files a Creates a new project Opens a project K Q Saves current project e The following items are commands configured by user that run commands on shell explained on chapters 3 5 9 and 13 3 2 s e Sends file content to console e The following items are commands configured by user that run external applications explained on chapters 3 5 9 and 13 3 2 User s Manual 78 Facultad de Inform tica ACIDE A CONFIGURABLE IDE 7 CONSOLE PANEL At console panel the user can work with the shell he connects to ACIDE A Configurable IDE explained on Chapter 3 5 5 An example of console panel connected with DES EXA RARA AAA oko koko oko koko koko ko koko kokok koko oko okok koh kokok koko kokok koko ko ko ko oko oko ok hok AAA kA DES Datalog Educational System v 3 3 Iype help for help about commands Fernando Saenz Perez c 2004 2013 GPD UCM Please send comments questions etc to fernan isip ucm es Web site http des sourceforge net se This program comes with ABSOLUTELY NO WARRANTY is free software and you are welcome
188. stas de elementos Su estructura ser a como sigue lt acide configuration menu AcideMenuSubmenuConfiguration gt lt itemsManager itemsManager gt name gt lt name gt visible visible gt erasable erasable image image acide configuration menu AcideMenuSubmenuConfiguration La funci n de cada elemento es la siguiente _itemsManager ya se ha explicado antes para la lista de entradas que conforman la barra de menus Funciona exactamente igual de tal forma que en cada menu podemos ir definiendo menus anidados e name el nombre que presentar el men e visible define si es visible o no id ntico a los items antes explicados e _erasasable funciona igual que para los tems de men s explicados anteriormente e image para las entradas de men estas etiquetas deben aparecer vac as ya que las entradas de men o submen s no tienen icono Conociendo c mo funciona la configuraci n para los tems de men y las entradas de men es f cil configurar la barra de men s Simplemente se trata de insertar en el orden requerido los distintos elementos en el primer _itemsManager que aparece en el archivo de configuraci n que corresponde a la configuraci n de la barra de men s Anidando nuevos elementos en este primer m nager conseguiremos la apariencia deseada para la barra Como puntualizaci n a adir que en el primer m nager el que corresponde a la configuraci n
189. stilo del resto de ventanas de configuraci n Mediante estos botones el usuario puede crear un nuevo men dentro de la barra de men s borrar un men a adir un nuevo tem o submen borrar componentes que se puedan borrar cambiar el orden de los men s y las entradas dentro de uno de ellos etc Est n disponibles todas las acciones posibles con los distintos componentes de men Adem s de los distintos componentes de la ventana de configuraci n explicados la tabla tiene el siguiente men contextual Cargar imagen dh m Nuevo submenu Nuevo item S Borrar elemento 1 Mover item o submenu arriba Mover tem a submenu arriba Enviar a menu Insertar en submenu Figura 24 Men contextual configuraci n de men s Las acciones son las mismas que se pod an realizar con los botones anteriormente explicados salvo dos que s lo son accesibles desde aqu e Enviar a menu sirve para mover a otro menu distinto de la barra de men s el componente seleccionado El usuario lo elegir de una ventana que le muestra las distintas opciones Sistemas Inform ticos 2012 2013 72 AC DE O Facuad A CONFIGURABLE IDE PY Informatica e Insertar en submenu con esta acci n el usuario puede introducir el componente seleccionado en un submen distinto dentro del men en el que se encuentra Se elegir d nde desea insertarlo en una ventana mostrando las opciones Una vez el usuario ha realizado los cambios opo
190. ta para enumeraciones de Microsoft Word 2007 5 3 C DIGO FUENTE Como se ha comentado anteriormente se ha hecho un gran esfuerzo por mantener el c digo en forma estandarizada Se han seguido las siguientes normas e Todo el c digo est en ingl s En cada una de las clases del c digo se encuentra el c digo de licencia p blica GPLv3 al comienzo de las mismas ACIDE A Configurable IDE Official web site http acide sourceforge net Copyright 2007 2015 Authors Fernando S enz P rez Team Director Version from 0 1 to 0 6 Diego Cardiel Freire Juan Jos Ortiz Sanchez Delfin Rup rez Ca as Version 0 7 Miguel Mart n Lazaro Version 0 9 Sistemas Inform ticos 2012 2013 20 ACIDE A CONFIGURABLE IDE Javier Salcedo G mez Version from 0 9 to 0411 Pablo Guti rrez Garcia Pardo Elena Tejeiro P rez de Agreda Andr s Vicente del Cura opo c cb b A This program is free software you can redistribute it and or modify it under the terms of the GNU General Public License as published by the Free Software Foundation either version 3 of the License or at your option any later version This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANBILITY or FITNESS FOR A PARTICULAR PURPOSE See the GNU General Public License for more details You should have rec
191. te Key Clave candidata Este nodo puede varios hijos e FK significa Foreign Key Clave externa Este nodo puede varios hijos e NL significa Nullable Admite nulos Este nodo tiene como hijos las columnas que admitan nulos e FD significa Functional Dependency Dependencia funcional Este nodo puede varios hijos e IC significa Integrity Constraint Restricci n de integridad Este nodo puede varios hijos Sistemas Inform ticos 2012 2013 34 AC DE O Facuad A CONFIGURABLE IDE Informatica Cada hijo de cualquiera de estos nodos es la restricci n en concreto Por ejemplo e S b string varchar 20 a number integer us o PK b En este caso la restricci n es la clave primaria de la tabla s la columna b de s Al seleccionar un nodo de tipo Restricci n de integridad de la tabla se debe poder e Eliminarla con la tecla Supr y con la entrada Eliminar Drop de menu contextual de la restricci n de integridad en concreto Se debe pedir confirmaci n con cuadro de di logo Si tiene m s de un hijo hay que indicar que se eliminar n todos Al seleccionar una restricci n de integridad de la tabla se debe poder e Eliminarla con la tecla Supr y con entrada Eliminar Drop de menu contextual Se debe pedir confirmaci n con cuadro de di logo e Modificarla entrada Modificar Modify de men contextual Se debe abrir un cuadro de di logo textual donde aparezca el texto de creaci n de la restricci n Este c
192. te the text stored in the system clipboard in the current position of the active file in the file editor or in the console User s Manual 25 Facultad de ACIDE A CONFIGURABLE IDE 3 2 5 CUT Cut the selected text in the active file in the file editor or in the console and put it into the system clipboard 3 2 6 SELECT ALL Selects all the content of the active file in the file editor 3 2 7 G0 TO LINE It displays a dialog in which the user will type down the number of the line where he wants to place the caret cursor in the active file in the file editor Go to ne a Input a line number Coca 3 2 8 SEARCH Shows the search text window of the file editor User s Manual 26 ACIDE SET A CONFIGURABLE IDE Write the text to search for Scope Selected Text Current Document 3 All Opene Figure 4 Search window Then we proceed to describe each component of the window e Text box Here is where user enters the search text e Special You can search for paragraph breaks and tabs by the special marks p and t These special marks can be written in the text box or selected in the Special combo menu e Recents This combo menu displays a list which contains all the recent searches that have been executed before When user selects one this appears in the Text box e Options o Case sensitive this option is used to search for strings without h
193. tems In Chapter 5 7 and Chapter 0 we explain how to use these objects We also explain how to configure this menu externally with XML files in Chapter 13 3 1 3 1 FILE MENU It contains the following menu items for the files management Mew Ctrl M Open Ctrl 0 Open Recent Files amp Open All Files Close RS Close All a Save Ctrl 5 Save As Save All Ctrl Mayds 5 Print Ctrl P ele Exit Alt X Figure 2 File Menu Next all the previous menu items will be further explained 3 1 1 NEW Creates a new empty file in the file editor 3 1 2 OPEN Open a previously saved file into the file editor 3 1 3 0PEN RECENT FILES Displays a list which contains all the files that have been opened previously in the file editor and the option to set the list to empty User s Manual 22 ACIDE BET A CONFIGURABLE IDE Informatica 3 1 4 OPEN ALL FILES Open all the files associated to the current project in the file editor 3 1 5 CLOSE FILE Close the active file in the file editor asking to the user if he wants to save it if the file was previously modified 3 1 6 CLOSE ALL FILES Close all the opened files in the file editor asking to the user if he wants to save them if the files were previously modified 3 1 7 SAVE FILE Save the active file in the file editor at the same path that it was previously saved 3 1 8 SAVE FILE AS Save the active file in the file editor into a diffe
194. the current caret position to the end of the file in the source file editor o Backward searches from the current caret position to the beginning of the file in the source file editor o Cyclic searches from the current caret position to the end of the file in the source file editor and star from the beginning until the starting position e Progress bar shows the progress of the active search or replacement When a general replacement is performed it displays the following dialog to the user informing of the number of replacements User s Manual 30 ASIDE Figure 6 Number of replacements User s Manual 31 Facultad ACIDE O Inform tica 3 3 PROJECT MENU It contains the menu items required for the project configurations management New Project Alt Mayus N Open Project Alt May s Q Open Recent Projects d Close Project Save Project Alt May s Save Project As Add Opened Files New file Add File s Alt May s A Remove File Delete File Add Folder Remove Folder Compile Project Alt C Execute Project Alt E Set File as Compilable Unset File as Compilable Set File as Main File Unset File as Main File DUDURTRTINEK CRD el Figure 7 Project menu Next all the previous menu items will be further explained 3 3 1 NEW PROJECT Configures a new project displaying the following configuration window User s Manual 32 CIDE A CONFIGURABLE IDE Compil
195. the popup menu user can show and edit too and copy the definition text User s Manual 106 da bar m Facultad C OE S de A CONFIGURABLE IDE Inform tica 9 STATUS BAR The Status Bar contains some information about the active file the current project and go on It is as follows examples aggregates d Grammar bytes Lexicon Configuration des 23 28 NumLines 98 INS 00 19 56 Figure 96 Status bar Next we further describe all the components e Panel 1 the status message is displayed It shows the path and name of the active file in the File Editor e Panel 2 the syntactic configuration shows the name of the grammar applied to the current project e Panel 3 the lexicon configuration shows the name of the lexicon applied to the current project e Panel 4 shows the line and column where the caret is e Panel 5 BLOQ MAYUS status e Panel 5 BLOQ NUM status e Panel 6 BLOQ SCROLL status e Panel 7 writing mode INSERT or OVERWRITE e Panel 8 the System clock User s Manual 107 SN Facuitad E D E S de A CONFIGURABLE IDE Inform tica 10 ACCESSIBILITY SHORTCUTS The application offers some accessibility shortcuts to wrapper common user actions such as e F3 Selected text performs the forward text search with the selected text in the file editor in the console panel or in the data view window e F3 Shift Selected text performs the backward text search with the select
196. tica D Console display configuration e besser Choose font foreground color Choose font background color Choose a maximum buffer size 500 Restore Default Configuration Preview Panel Font Monospaced Font PLAIN 12 Figure 35 Console display configuration The user can selects e Fonttype e Font size e Font color e Background color e Maximum buffer size specifies the maximum number of lines that are displayed in the console panel e Restore default configuration applies the default configuration for the console panel Monospaced font plain size of 12 black with white background 3 5 5 4 SAVE CONTENT INTO FILE Saves the console content into a file 3 5 5 5 DOCUMENT LEXICON Loads a lexicon configuration with XML extension into the console panel User s Manual 59 Facultad de Inform tica ACIDE A CONFIGURABLE IDE 3 5 5 6 FIND Displays the search text window for the console panel D Find Options Direction Case Sensitive Forward Regular Expressions Backward Complete Words j Cydic Search Figure 36 Console search window Then we proceed to describe each component of the window e Text box Here is where user enters the search text e Recents This combo menu displays a list which contains all the recent searches that have been executed before When user selects one this appears in the Text box e Options o Case sensiti
197. tion A vertical bar separates alternatives For example red brown joins with red or brown e Quantification A quantifier after a character specifies the frequency with which this can occur The most common quantifiers and o The plus sign indicates that the preceding character must appear at least once For example hello joins hello helloo hellooo etc o The question mark indicates that the preceding character can appear at most once For example S pain joins Spain and pain o The asterisk indicates that the preceding character can appear zero one or more times For example 10 joins 1 10 100 1000 etc e Grouping Parentheses may be used to define the scope and precedence of other operators For example m h ouse is the same as mouse house and in sensitive joins with insensitive and sensitive Builders can be freely combined within the same expression so H ae del is the same as H a ae del Its most obvious use is to describe a set of strings which is useful in text editors and applications for searching and manipulating text User s Manual 132 AC DE O Ce A CONFIGURABLE IDE Informatica 14 2 DESCRIPTION OF REGULAR EXPRESSIONS 14 2 1 THE DOT The dot is interpreted by the search engine as any character looking for any character NOT including line breaks The dot is used as follows If we search g t in the string gat get got goot the JD
198. to redistribute it under certain conditions Type license for details ERE AAA AAA AAA AAA okockokoko koX ok okokokoko AAA AAA E DES gt employee smith sales 1000 Figure 54 Console panel The popup menu is as follows e Console display configuration Save content into file Document Lexicon me Copy Cut Paste Reset Clear console buffer Find Ctrl May s F P e E a 5 E Figure 55 Console panel popup menu User s Manual 79 Facultad de Inform tica ACIDE A CONFIGURABLE IDE All the options have been explained before in Chapter 3 The user can send commands to the shell in different ways As explained before user can send the selected text or the content of a file to the sell Also he can configure the toolbar with buttons which send commands to shell A new performance of this version is that user can configure the Menu Bar to build buttons that send commands to shell in the same way that the toolbar buttons The default buttons of ACIDE A Configurable IDE send special commands that will be further explained in Chapter 12 User s Manual 80 ACIDE BET A CONFIGURABLE IDE Informatica 8 DATABASE PANEL The database panel shows the metadata of your computer s databases on the lower left corner of the screen Figure 56 Database panel This panel can be connected with the DES or ODBC connections of your computer The user can choose the connection in th
199. tos del panel de consola que a n no hab an sido explicados e 8 Database panel este capitulo es nuevo b sicamente porque habla de un panel que no exist a en versiones anteriores de la aplicaci n En este cap tulo se explica el funcionamiento del panel de bases de datos la vista de datos de las tablas y vistas y la vista de dise o de las mismas e 9 Status bar en este nuevo cap tulo se explica el aspecto de la barra de estado Anteriormente no exist a ning n cap tulo que tratara sobre este tema e 10 Accessibility shortcuts en este cap tulo totalmente nuevo se hace un resumen de los distintos atajos de teclado que se permiten en la aplicaci n e 11 ACIDE Variables este cap tulo contiene la explicaci n de las variables de sistema compatibles con ACIDE A Configurable IDE Esta explicaci n ya exist a en el anterior manual e 12 ACIDE default commands en este cap tulo se exponen los comandos para usar en la configuraci n del men que definen las acciones de los items de men que existen por defecto en la aplicaci n e 13 Configuration of ACIDE by configuration documents en este cap tulo totalmente nuevo se ofrece una explicaci n para configurar diversos aspectos de ACIDE A Configurable IDE de forma externa y manual mediante diversos documentos de configuraci n e 14 Regular expressions este cap tulo pretende ofrecer una introducci n a las expresiones regulares que se pueden usar en la b squeda y ree
200. troducida es incorrecta ya que en ese caso la busqueda no se podr realizar 9 3 2 2 B SQUEDA CON F3 Y SHIFT F3 EN EDITORES La b squeda con F3 ya estaba implementada para los editores En esta versi n se ha a adido que la b squeda con F3 busque el texto seleccionado de forma c clica y hacia delante Adem s tambi n se ha afiadido la posibilidad de realizar la misma busqueda del texto seleccionado de forma c clica y hacia atr s con Shift F3 Sistemas Inform ticos 2012 2013 81 SN Facuitad E D E S de A CONFIGURABLE IDE Inform tica 9 3 2 3 OTRAS TAREAS En esta secci n vamos a comentar otras tareas mejoradas o corregidas de menor importancia que las anteriores A continuaci n las explicamos detalladamente e B squeda con F3 o Shift F3 sin texto seleccionado si se pulsa F3 o Shift F3 sin que haya texto seleccionado en el editor abierto se realiza la b squeda con la configuraci n de la ltima b squeda Esto es de gran utilidad para repetir b squedas de forma muy r pida e Editores afectados por reemplazamiento cuando se realiza un reemplazamiento ya sea general o particular se marcan en rojo los editores afectados como se muestra en Figura 31 y se habilita el bot n de guardar archivo Si se cierra la aplicaci n sin haber guardado se le preguntar al usuario si quiere guardar los archivos con cambios realizados aggregates dl Ki aggregates ra Ed Write the text to search for o on
201. uadro de di logo debe tener los botones Aceptar OK y Cancelar Cancel 7 2 2 7 NODOS VISTAS VIEWS En el nodo Vistas Views se muestran las vistas en la base de datos las vistas deben aparecer ordenadas alfab ticamente Al pulsar este nodo con el bot n secundario del rat n debe aparecer un men contextual con las siguientes opciones e Crear Create Al pulsar esta opci n debe aparecer un cuadro de di logo con un cuadro de texto para escribir la consulta relleno previamente con CREATE VIEW y botones Aceptar OK y Cancelar Cancel Las vistas deben ir anotadas con sus nombres de columna y tipos Por ejemplo e v a varbinary 20 b varbinary 20 Sistemas Inform ticos 2012 2013 35 AC DE O Ce A CONFIGURABLE IDE Informatica Una vista puede tener hasta tres hijos e Columnas Columns que siempre debe aparecer e Definici n SQL SQL Text opcional e Definici n Datalog Datalog Text opcional Notas e En estos dos ltimos hijos como la definici n puede ser extensa esta definici n se debe poder abrir en una ventana nueva del editor de archivos con una entrada en el men contextual Mostrar Show e El menu contextual de estos dos hijos tambi n incorpora la entrada Copiar Copy para copiar el contenido al portapapeles Al desplegar cada nodo de tipo vista se deben mostrar sus columnas nodo Columnas Columns y definiciones SQL y Datalog Por ejemplo e Views o v a numbe
202. ualquiera de la serie de comandos de modificaci n del esquema se debe mostrar un cuadro de di logo con el texto del error y el bot n Aceptar OK Si se pulsa Cancelar Cancel en la ventana Dise o se debe recuperar el estado de la definici n de la tabla que se debe haber almacenado previamente en las correspondientes estructuras de datos Notas e Para poder abrir esta ventana es necesario no tener abierta ninguna ventana de la misma tabla ya sea de la misma vista Dise o o de la vista Datos En el primer caso al intentar abrir esta ventana simplemente se traslada el foco a la abierta En el segundo se debe emitir un mensaje de error e informar de que hay otras abiertas para lo que se solicita si se deben cerrar Los botones de este cuadro deben ser Aceptar OK y Cancelar Cancel Sistemas Inform ticos 2012 2013 39 ur Facultad CIDE a A CONFIGURABLE IDE Inform tica e Sobre esta ventana se deben poder realizar una serie de acciones definidas en un ment contextual de la barra de t tulo o Configuraci n de formato Display Configuration Reusar la aplicaci n de formato de ACIDE A Configurable IDE El formato de esta ventana se aplica sobre todas las ventanas Dise o independientemente de la tabla a que se aplique Esta configuraci n de formato se debe guardar en el espacio de trabajo Workbench o Cerrar Close para cerrar la ventana y tambi n con la combinaci n de teclas de acceso directo Alt F4
203. umns visibility User s Manual 96 ACIDE A CONFIGURABLE IDE Figure 80 Data view hide show columns 8 4 5 2 5 HELP MENU Contains the following menu items y Show Help CErl H About Figure 81 Data view help menu Next the previous menu options are further explained 8 4 5 2 5 1 SHOW HELP Links directly to the user s manual of DES ACIDE 8 4 5 2 5 2 ABOUTUS Displays the following window with some extra information about the application User s Manual 97 A CONFIGURABLE IDE D About ACIDE About ACIDE Operating System OS Independent Java License GNU General Public License GPL Category Integrated Development Environments IDE Version 0 11 Web http acide sourceforge net Developers Fernando Saenz P rez Team Director Diego Cardiel Freire Juan Jos Ortiz Sanchez Delfin Rup rez Ca as Miguel Martin L zaro Javier Salcedo G mez Pablo Guti rrez Garda Pardo Elena Tejeiro P rez de greda Andr s Vicente del Cura Figure 82 Data view about us window 8 4 6 ADD PRIMARY KEY A primary key constraint specifies that no two tuples have the same values for a given set of columns To define a primary key constraint user has to type pk name of the relation column name list This menu option displays a window where user can write the datalog command to create a primary key in the selected table Figure 83 Add primary key 8 4 7 ADD F
204. una novedad y el icono ser el indicado por esa ruta Sin embargo si se trata de una ruta absoluta podr a ocurrir que esa imagen se encuentra fuera del directorio de la aplicaci n En este caso se comprobar a en la clase antes mencionada si ya existe en el directorio de iconos a adidos esa imagen Si no existe se copiar a dicha imagen dentro del directorio y en el archivo XML para los iconos a adidos se incluir a una nueva entrada para esta imagen Con este procedimiento nuevo en esta versi n no habr problemas por cambiar el directorio donde se encuentra la aplicaci n ya que las im genes siempre se mover n con ella y la ruta relativa no cambiar Sistemas Inform ticos 2012 2013 75 A CONFIGURABLE IDE Inform tica AGIDE BET 9 3 VENTANAS DE BUSQUEDA Y REEMPLAZAMIENTO Al comienzo del desarrollo del proyecto en este curso existian gran cantidad de tareas por realizar en las ventanas de busqueda y la de reemplazamiento en los editores y la de busqueda en el panel de la consola Es por ello que durante dos de las iteraciones se dedic un gran esfuerzo a subsanar errores existentes en estas ventanas y a implementar nuevas funcionalidades necesarias A continuaci n vamos a explicar detalladamente cada una de las tareas que se han llevado a cabo dividi ndolas en nuevas funcionalidades y correcci n de errores Opciones Coincidir may sculas y min sculas Expresiones regulares Palabras completas
205. ve this option is used to search for strings without having or taking into account the Upper Lowercase o Regular expressions regular expressions search associated with a search pattern More information about Regular Expressions on Chapter 14 o Whole words find whole words only e Direction o Forward searches from the current caret position to the end of the file in the source file editor o Backward searches from the current caret position to the beginning of the file in the source file editor User s Manual 60 Facultad de Inform tica ACIDE A CONFIGURABLE IDE o Cyclic searches from the current caret position to the end of the file in the source file editor and star from the beginning until the starting position 3 5 5 7 CLOSE CONSOLE Closes the active shell in the console panel 3 5 5 8 RESET CONSOLE Only available in the popup menu of the console panel Resets the active shell in the console panel 3 5 5 9 CLEAR CONSOLE BUFFER Only available in the popup menu of the console panel Clears the console panel content and leaves only the last line of the previous buffer content 3 5 6 DATABASE PANEL CONFIGURATION It contains the menu item options for the database panel configuration management Im Database Panel gt DES Panel aa ODBC Panel Lanqua Figure 37 Database panel menu Then we proceed to describe each component of the menu 3 5 6 1 DE
206. ve check box for specify if the remark is case sensitive or not e Color selection button for the color selection of the remarks User s Manual 46 Facultad de Inform tica ACIDE A CONFIGURABLE IDE e Font style combo box for the font style selection e Preview text field shows a preview of the remarks The lexicon configuration window has in the bottom side the following buttons e Save as saves the current lexicon configuration in other path with XML extension e Apply applies the changes to all the opened files with the current lexicon configuration in the file editor and saves the changes in the configuration file with XML extension e Cancel closes the lexicon configuration window without applying the changes Finally if there are any changes in the current configuration in the previously described panels and the user closes the window with the close button or the ESC key the following dialog will be displayed concretion ET emn Do you want to save the changes in the lexicon confiquration 3 5 1 4 DEFAULT LEXICONS Shows the default lexicons configuration window User s Manual 47 ACIDE BET A CONFIGURABLE IDE D Default Lexicons Configuration Window Lo Default Lexicon Configuration configuration lexicon java xml Java onfigurationfexicon c xml SE EE configurationlexicon sd EET rn EE Text txt onfiguration lexicon default xml EE Log O lex kdeonf
207. w submenu will be inserted at the end of the list of the root menu e Add new item adds a new menu item to the menu selected If there is a menu submenu selected the new item will be inserted inside it If there is a menu item selected the new item will be inserted after it In other case the new item will be inserted at the end of the list of the root menu e Delete object deletes the selected object after a confirmation message The objects that are not erasable can not be deleted e Move item or submenu to up moves to up the selected menu object e Move item or submenu to down moves down the selected menu object e Send to menu it displays a window with a list of menus where user can send the selected menu object e Insert in submenu it displays a window with a list of submenus inside the present menu where user can insert the selected menu object 3 5 8 1 3 KEY NAVEGATION e Uparrow selects previous object e Down arrow selects next object e Ctrl Home selects the first object e Ctrl End selects the last object e Tab selects next attribute e Tab Shift selects previous attribute e Esc deselects the selected object 3 5 8 2 LOAD Loads a menu configuration with XML extension User s Manual 66 A CONFIGURABLE IDE 3 5 8 3 MODIFY Selecting this option displays the following configuration window similar to creating a new configuration window but with corresponding options of th
208. xicon e Ctrl Shift T Creates a new grammar e Ctrl Shift A Actives line wrapping User s Manual 111 AC DE O Facuad A CONFIGURABLE IDE d Inform tica e Ctrl Shift F Opens the search in console window e Alt S Changes language to Spanish e Alt E Changes language to English Shortcuts in Help menu e Ctrl H Shows this document Shortcuts in Data view e Up arrow goes to previous record e Down arrow goes to next record e Tab goes to next field e Shift Tab goes to previous field e Alt F4 closes the Data view window e Ctrl Z undoes the updates in the grid e Ctrl Y redoes the last undo in the grid e Ctrl C copies the selected text active field from the grid to the System clipboard e Ctrl V pastes the text stored in the System clipboard in the current position of the active field in the grid e Ctrl X cuts the selected text active field from the grid to the System clipboard e Ctrl F shows the search text window for the Data view e F5 refresh the view of the grid e Ctrl home goes to the first record e Ctrl end goes to the last record e Ctrl H links directly to the present document Shortcuts in Menu configuration e Uparrow selects previous object e Down arrow selects next object e Ctrl Home selects the first object e Ctrl End selects the last object User s Manual 112 ACIDE BET A CONFIGURABLE IDE Inform tica e
209. yed User s Manual 50 Facultad e D ACID E Inform atica Executing ANTLR C Archivos de programa Java jdkl 6 0 2libin amp java exe ep lib antlr jar antle Tool grammar g ANTLR execution task completed successfully Executing generated files by ANTLE modification Generated files by ANTLR modification successfully Compiling generated files by ANTLR Ci Archivos de programa Java jdkl 6 0 21 bin javac exe gp c elasses 1 java d Compilation of generated files by ANTLR task completed successfully Reallocating generated files by ANTER Reallocation of generated files by ANTLE task completed successfully Generating the jar file Generation of jar file task completed successfully Deleting generated files by ANTLE Deletion of generated files by ANTLR task completed successfully Reallocating the jar file into the configuration folder Reallocation of the Jar file into the configuration folder task completed successfully Figure 25 Grammar generation process 3 5 2 2 LOAD GRAMMAR Loads a grammar configuration with JAR extension 3 5 2 3 MODIFY GRAMMAR Displays the same grammar configuration window than the New Grammar menu item option but it contains the lexicon categories and grammar rules text areas filled with their file contents User s Manual 51 Facultad ACIDE A CONFIGURABLE IDE a ne Inform tica akbom STAR atom IN LPLREN
210. ytes Lexicon Configuration sql 14 15 NumLines 50 Figure 1 ACIDE Main GUI e Configuration This entry allows to configure Lexicon for syntax highlight ing Grammar for parsing on the fly Compiler for compiling the project File Editor for changing the display and behavior of the editors Shell the shell in the right bottom panel Database Panel the database panel in the left bottom panel Language of the GUI Menu for the configuration of the menu bar and Toolbar for the commands which can be displayed either as icons or textual descriptions Tooltips for toolbar commands can be configured e Help This entry contains Show Help and About ACIDE In addition there is a fixed toolbar which includes common buttons for the file and project related basic operations New Open Save and Save All this last one only for files Next to the fixed toolbar there is the configurable toolbar User s Manual 20 AC DE O Facuad A CONFIGURABLE IDE Informatica Finally the status bar gives information about some items The complete path of the selected file the selected grammar and lexicon the line and column numbers Caps Lock Scroll Lock Num Lock and current time All these components will be further explained throughout this document 2 3 PROJECTS A project contains the whole status of a session which is defined by all the possible configurations as well as the current display status It consists

Download Pdf Manuals

image

Related Search

Related Contents

2 Preparing to use your FALCOM NAVI-1  注意喚起資料  PTT (Push to Talk - Pressione para Falar)  Lenovo IdeaPad S405  Fujitsu ST6012 User's Guide  Guide de l`utilisateur du système de bureau Java Version 2  1. - Confetti World  Installation and operating manual - ElectronXx-Shop  

Copyright © All rights reserved.
Failed to retrieve file