Examples of SVNEntrada


Examples of es.juanrak.svn.modelo.SVNEntrada

            rootNodo.setTitulo(repositorio.getRaiz());

            modelo.setRoot(rootNodo);
            ArrayList<SVNEntrada> lista = repositorio.getEntries(path);
            for (int i = 0, total = lista.size(); i < total; i++) {
                SVNEntrada entrada = (SVNEntrada) lista.get(i);
                SVNTreeNodo hijo = new SVNEntradaTreeNodo(entrada);
                modelo.addNodo(rootNodo, hijo);
                TreePath selPath = getTreeSelectionModel().getSelectionPath();
                if (selPath == null) {
                    selPath = new TreePath(modelo.getRoot());
View Full Code Here

Examples of es.juanrak.svn.modelo.SVNEntrada

    public void valueChanged(TreeSelectionEvent arg0) {
      //DefaultMutableTreeNode node = (DefaultMutableTreeNode)getLastSelectedPathComponent();
            SVNEntradaTreeNodo node = (SVNEntradaTreeNodo)getTreeSelectionModel().getSelectionPath().getLastPathComponent();
      if (node == null) return;
      Object nodeInfo = node.getUserObject();
      SVNEntrada entrada = (SVNEntrada)nodeInfo;
            controlador.setObjetoSeleccion(entrada);
      for(int i=0,total=arrayListNodosListener.size();i<total;i++) {
        arrayListNodosListener.get(i).nodoSeleccionado(origen, entrada);
      }
    }
View Full Code Here

Examples of es.juanrak.svn.modelo.SVNEntrada

            boolean isSelected, boolean hasFocus, int row, int column) {
        super.getTableCellRendererComponent(table, valorMapeoPrincipalRecibo, isSelected, hasFocus, row, column);
        if (valorMapeoPrincipalRecibo instanceof SVNEntradaTreeNodo) {
         
          SVNEntradaTreeNodo nodo = (SVNEntradaTreeNodo) valorMapeoPrincipalRecibo;
          SVNEntrada entrada = nodo.getEntrada();
          if (entrada.isDirectorio()) {
              if (getImagenCarpeta() != null)
                  setIcon(getImagenCarpeta());
              else
                  setIcon(null);
          } else if (entrada.isFichero()) {
              if (getImagenFichero() != null)
                  setIcon(getImagenFichero());
              else
                  setIcon(null);
          } else
              setIcon(null);

          setText(entrada.getNombre());

          this.setText(nodo.getEntrada().getNombre());
      } else {
          SVNTreeNodo nodo = (SVNTreeNodo) valorMapeoPrincipalRecibo;
          this.setText(nodo.getTitulo());
View Full Code Here

Examples of es.juanrak.svn.modelo.SVNEntrada

        });
    }
   

    public SVNLogEntrada getListaLogEntrada(String pathRecibo, long desdeRevisionRecibo)throws SVNException {
        SVNEntrada entrada = this.repositorio.getEntry(pathRecibo, desdeRevisionRecibo);
        SVNLogEntry logEntry = this.repositorio.log(pathRecibo, desdeRevisionRecibo);
        SVNParametro parametroRutaParcial = configuracion.getParametro("RUTA_PARCIAL_DESDE");
        String rutaParcial = null;
        int indexRutaParcial = 0;
        if ((parametroRutaParcial != null) && (parametroRutaParcial.getValor() != null)) // TRUNK
View Full Code Here

Examples of es.juanrak.svn.modelo.SVNEntrada

                showLogFrame.initProceso();
                showLogFrame.setVisible(true);
               
            }
            else if(SVNMenuPopupConstructor.COMANDO_VER.equals(action.getActionCommand())) {
                SVNEntrada entrada = getEntrada();
                if( entrada.getFicheroRemoto() == null ) entrada.setFicheroRemoto(controlador.getFichero( entrada ));
                controlador.getLogger().log( entrada.getFicheroRemoto().getAbsolutePath() );
                UtilFicheroComando comando = new UtilFicheroComando(controlador, entrada.getFicheroRemoto());
                controlador.getLogger().log("Ejecucion " + comando.visualizar() );
            }
            else if(SVNMenuPopupConstructor.COMANDO_PROPIEDADES.equals(action.getActionCommand())) {
                SVNPropiedadesDialog propiedades = new SVNPropiedadesDialog(controlador);
                propiedades.setVisible(true);
            }
            else if(SVNMenuPopupConstructor.COMANDO_GUARDAR_COMO.equals(action.getActionCommand())) {
                SVNEntrada entrada = getEntrada();
                JFileChooser fileChooser = new JFileChooser();
                fileChooser.setSelectedFile(new File(entrada.getNombre()));
                int returnVal = fileChooser.showSaveDialog(controlador.getRootWindow());
                if (returnVal == JFileChooser.APPROVE_OPTION) {
                    File ficheroLocal = fileChooser.getSelectedFile();
                    if( entrada.getFicheroRemoto() == null ) entrada.setFicheroRemoto(controlador.getFichero( entrada ));
                    UtilFichero.copiarFichero(entrada.getFicheroRemoto(), ficheroLocal);
                    UtilFicheroComando comando = new UtilFicheroComando(controlador, ficheroLocal);
                    comando.visualizar();
                }
            }
            else if(SVNMenuPopupConstructor.COMANDO_COMPARAR.equals(action.getActionCommand())) {
View Full Code Here

Examples of es.juanrak.svn.modelo.SVNEntrada

        }
    }


    public SVNEntrada getEntry(String path, long revision) throws SVNException {
        SVNEntrada entrada = null;
        try {
          SVNDirEntry entry = repositorio.info(path, revision);
          entrada = new SVNEntrada(entry);
          entrada.setPath(path);
        }
        catch (Exception exception) {
            throw new SVNException(exception);
        }
        return entrada;
View Full Code Here

Examples of es.juanrak.svn.modelo.SVNEntrada

                 */
                if (entry.getKind() == SVNNodeKind.DIR) {
                    // listEntries( (path.equals("")) ? entry.getName()
                    // : path + "/" + entry.getName());
                }
                SVNEntrada entrada = new SVNEntrada(entry);
                entrada.setPath((path.equals("")) ? entry.getName() : path + "/" + entry.getName());
                resultado.add(entrada);
            }
            Collections.sort(resultado, new Comparator<SVNEntrada>() {

                public int compare(SVNEntrada entrada1, SVNEntrada entrada2) {
View Full Code Here

Examples of es.juanrak.svn.modelo.SVNEntrada

    }

    public SVNFichero getFicheroRevisionAnterior(final String pathRecibo, long revisionRecibo) throws Exception {
        Log.getLogger().log("FicheroRevisionAnterior(pathRecibo::" + pathRecibo + ",revisionRecibo::" + revisionRecibo + ")");
        final SVNEntrada entrada = getEntry(pathRecibo, revisionRecibo);
        final ArrayList<SVNLogEntrada> listaEntradas = new ArrayList<SVNLogEntrada>();
        String targetPaths[] = new String[] { pathRecibo };
        repositorio.log(targetPaths, revisionRecibo - 1 // inicio
                , -1 // final
                , true // changedPath,
View Full Code Here

Examples of es.juanrak.svn.modelo.SVNEntrada

        return nodos;
    }

    public int getChildCount() {
        int childCount = 0;
        SVNEntrada entrada = getEntrada();
        if( entrada.isFichero() ) {
            childCount = 0;
        }
        else if( entrada.isDirectorio() && !isCargado() ) {
            childCount = 0;
        }
        else {
         childCount = super.getChildCount();
        }
View Full Code Here

Examples of es.juanrak.svn.modelo.SVNEntrada

        }
        return childCount;
    }

    public boolean isLeaf() {
        SVNEntrada entrada = getEntrada();
        if (entrada.isFichero()) return true;
       
        if (entrada.isDirectorio() && !isCargado()) return false;
        return super.isLeaf();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.