Package es.uma.ama.maudeWorkstationGUI

Examples of es.uma.ama.maudeWorkstationGUI.MaudeWorkstationException


         
         
            listaModulo.removeFirst();
          }
          catch (Exception ex) {
            throw new MaudeWorkstationException("Error: empty list"); //$NON-NLS-1$
          }
         
      }
      else if (!listaModulo.isEmpty()){
        /* estamos dentro de un modulo */
       
         String nomModulo=(String)listaModulo.getFirst(); /* nombre del modulo */
        
        
         if(palabra.startsWith("mb ") || palabra.startsWith("eq ") || palabra.startsWith("ceq ") //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
            || palabra.startsWith("cmb ") || palabra.startsWith("rl ") || palabra.startsWith("crl ")){ //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

          
           String etiqueta=""; //$NON-NLS-1$
           boolean encontrado=false;
           try {
            
             StringTokenizer stokem = new StringTokenizer(palabra," []",true); //$NON-NLS-1$
             stokem.nextToken(); //el nombre : eq , ceq , rl ....
             stokem.nextToken(); //un espacio
             if(stokem.nextToken().equals("[")){ //$NON-NLS-1$
                   //si son etiquetas al principio que siguen el formato eq [nombre] :
                   etiqueta=stokem.nextToken();
                   if(stokem.nextToken().equals("]") && (stokem.nextToken().equals(" "))  //$NON-NLS-1$ //$NON-NLS-2$
                   && stokem.nextToken().equals(":")) //$NON-NLS-1$
                     encontrado=true;
                  
                  
             }
            
           
             while(stokem.hasMoreTokens() && !encontrado){
                 String token= stokem.nextToken();
              
                 if(token.equals("label")){ //$NON-NLS-1$
                   encontrado=true;
                   stokem.nextToken();
                   etiqueta=stokem.nextToken();
                  
                 }
              
             }
            
            
            
            
          }
          catch (Exception ex) {
                throw new MaudeWorkstationException("Error: "+ex.getMessage());       //$NON-NLS-1$
          }
            
           if(encontrado){
   
             SortedSet<String> cjtoEtiquetasModulo = mapaEtiquetasModulo.get(nomModulo);
View Full Code Here


       }
            pos+=longitudPalabra;
          }   
    }
    catch (BadLocationException ex) {
        throw new MaudeWorkstationException("Error: "+ex.getMessage()); //$NON-NLS-1$
   
  } 
View Full Code Here

        printJob.setPrintable(this,printerPageFormat);
        if (printJob.printDialog()) {
            try {
                printJob.print();
            } catch (Exception ex) {
                throw new MaudeWorkstationException("Error: "+ex.getMessage()); //$NON-NLS-1$
            }
        }
    }
View Full Code Here

TOP

Related Classes of es.uma.ama.maudeWorkstationGUI.MaudeWorkstationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.