Anuncio

Mostrando entradas con la etiqueta eclipse. Mostrar todas las entradas
Mostrando entradas con la etiqueta eclipse. Mostrar todas las entradas

lunes, 1 de diciembre de 2014

30 de los accesos directos mas útiles en Eclipse

30 de los mas útiles accesos directos para Eclipse

1) Ctrl + T  para encontrar clases incluso dentro de un jar.

Este acceso en eclipse es el favorito y el mas usado.  Permite trabajar con mayor velocidad sobre proyectos con código complejo donde a menudo se tiene la necesidad de encontrar clases que están fuera del alcance visual.

2)   Ctrl + R  para encontrar cualquier recurso (archivo) incluyendo archivos de configuración xml

Este acceso es similar al anterior, con la única diferencia de que permite encontrar no solo archivos java, también te permite encontrar archivos como XMLs, archivos de configuración y muchos otros, solo buscará archivos dentro de tu workspace y no escarbará a nivel jar.

3)   Ctrl + 1  para arreglar el código rápidamente.

Permite arreglar casi cualquier error en tu código. Ya se trate de la omisión de una declaración, un punto y coma o cualquier otro error de importación relacionado, este acceso directo te ayudará corregirlo rápidamente.

4)  Ctrl + Shift + o  para organizar imports.

Es particularmente útil si se copia  código desde otras fuentes y necesita agregar las dependencias.

Accesos directos para navegación rápida

7)  Ctrl + o Abre declaraciones.
9)  Alt + right y Alt + left para ir hacia delante o atrás mientras se está editando.
12)  Alt + Shift + W para motrarlo en el explorador de paquetes.
13)  Ctrl + Shift + Up y Down  para navegar de miembro a miembro (variables y métodos).
15)  Ctrl + k y Ctrl + Shift + k para encontrar el siguiente/previo.
24)  Para ir a la declaración de tipo: F3, Es bastante útil para ver rápidamente la declaración de una función.

Accesos directos para navegación rápida

Estos accesos son bastante útiles para la edición de código en Eclipse.

5)  Ctrl + /  Para comentar, o quitar líneas o bloques de comentarios.
6)  Ctrl + Shift + /  Para comentar, o quitar líneas con bloques de comentarios.
8)  Selecciona la clase y presiona F4 para ver su jerarquía o herencia.
10)  Ctrl + F4 or Ctrl + w Para cerrar el archivo que se está usando.
11)  Ctrl+Shirt+W Para cerrar todos los archivos.
14)  Ctrl + l  Para ir a una línea.
16)  Selecciona un bloque texto y presiona Ctrl + Shift + F para formatearlo.
17)  Ctrl + F Para encontrar o reemplazar.
18)  Ctrl + D Para borrar una línea.
19)  Ctrl + Q Para ir al último lugar de edición.

Miscellanea

Estos son accesos que no entran dentro de ninguna categoría pero son bastante útiles y hacen mas fácil el trabajo.

20)  Ctrl + T Para saltar entre super tipo y subtipo.
21)  Para ir a los editores abiertos: Ctrl + E.
22)  Para dirigirse hacia un problema (i.e.: error, warning) hacia el siguiente (o previo) en un archivo: Ctrl +. Para el siguiente, y Ctrl -, para el problema previo.
23)  Salta hacia atrás o hacia delante entre los archivos que has visitados: Alt + ← y Alt + →, respectivamente.
25)  CTRL+Shift+G, Busca en el workspace las referencias hacia el método o variable seleccionado.
26)  Ctrl+Shift+L Para ver  la lista de todos los accesos directos en eclipse.
27)  Alt + Shift + j Para agregar documentación en cualquier lugar del código fuente en un archivo java.
28)  CTRL+SHIFT+P  Para encontrar el cierre de código.  Pon el cursor en al inicio de bloque de código y usa este acceso.
29)  Alt+Shift+XQ Para correr el archivo build de Ant usando los accesos directos de eclipse.
30)  Ctrl + Shift +F para auto formato.


FUENTE: http://www.decodigo.com/2012/09/eclipse-accesos-directos.html

martes, 26 de agosto de 2014

Jetty Embedded webapp



Create Maven WebApp with Jetty in Netbeans
http://www.youtube.com/watch?v=YaP3LQVzB-Q


How to create a war and jar from a web project?
http://stackoverflow.com/questions/15509893/how-to-create-a-war-and-jar-from-a-web-project


Executable WARs with Jetty
http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/

Creating an executable jar executing a war file with embedded jetty
http://stackoverflow.com/questions/15919568/creating-an-executable-jar-executing-a-war-file-with-embedded-jetty

Embedded Jetty Executable JAR
http://blog.anvard.org/articles/2013/10/09/embedded-jetty-executable-maven.html

Embedding Jetty
http://www.eclipse.org/jetty/documentation/current/embedding-jetty.html

create a executable jar using maven and jetty
http://stackoverflow.com/questions/20491407/create-a-executable-jar-using-maven-and-jetty

Setting up embedded Jetty 8 and Spring MVC with Maven
http://steveliles.github.io/setting_up_embedded_jetty_8_and_spring_mvc_with_maven.html

Runnable WAR With Embedded Jetty Server
http://blog.dinauer.at/runnable-war-with-embedded-jetty-server/

Configuring Jetty JSP support in embedded mode in Maven project
http://stackoverflow.com/questions/4235082/configuring-jetty-jsp-support-in-embedded-mode-in-maven-project

web app started by jetty runner not working with jstl tags?
http://stackoverflow.com/questions/9333403/web-app-started-by-jetty-runner-not-working-with-jstl-tags

Jetty/Howto/Configure JSP
http://wiki.eclipse.org/Jetty/Howto/Configure_JSP

Disable Maven warning message - “Selected war files include a WEB-INF/web.xml which will be ignored”
http://stackoverflow.com/questions/4342245/disable-maven-warning-message-selected-war-files-include-a-web-inf-web-xml-wh



Newbie Guide to Jetty
http://docs.codehaus.org/display/JETTY/Newbie+Guide+to+Jetty

Starting up Jetty

  • jetty-runner.jar - fast and easy way to run your webapp, without needing to install and administer a jetty distro. Run it using java -jar jetty-runner.jar webappcontext. Further instructions can be found in the blog entry linked to above.
  • start.jar - start from within your Jetty installation. Run it using java -jar start.jar configuration files
  • embed Jetty into your application
  • as a distribution package (RPM, .deb)
  • Maven Jetty Plugin



WAR FILES VS. JAVA APPS WITH EMBEDDED SERVERS
http://steveperkins.net/war-files-vs-embedded-servers/

a jetty server app can work in eclipse but can't in Windows Console?
http://stackoverflow.com/questions/11094029/a-jetty-server-app-can-work-in-eclipse-but-cant-in-windows-console


Jetty/Tutorial/Jetty and Maven HelloWorld
http://wiki.eclipse.org/Jetty/Tutorial/Jetty_and_Maven_HelloWorld


Rapid Testing Using the Jetty Plugin
http://maven.apache.org/plugins/maven-war-plugin/examples/rapid-testing-jetty6-plugin.html

maven jetty - org.mortbay.jetty vs org.eclipse.jetty
http://stackoverflow.com/questions/15386461/maven-jetty-org-mortbay-jetty-vs-org-eclipse-jetty

Embedding Jetty with Netbeans 7 (and Maven)
http://www.giantflyingsaucer.com/blog/?p=3023

Embedded vs Stand alone Tomcat ( HTTP ) server
http://stackoverflow.com/questions/20736356/embedded-vs-stand-alone-tomcat-http-server

-Dorg.apache.jasper.compiler.disablejsr199=true
http://www.eclipse.org/jetty/documentation/current/configuring-jsp.html

JSPs for embedded Jetty in Maven tests not compiling
http://stackoverflow.com/questions/23394842/jsps-for-embedded-jetty-in-maven-tests-not-compiling

Jetty/Howto/Using Jetty Runner
http://wiki.eclipse.org/Jetty/Howto/Using_Jetty_Runner

Running a web application (WAR) with embedded jetty server
http://stackoverflow.com/questions/21861019/running-a-web-application-war-with-embedded-jetty-server

Embedded Jetty : how to use a .war that is included in the .jar from which Jetty starts?
http://stackoverflow.com/questions/13434538/embedded-jetty-how-to-use-a-war-that-is-included-in-the-jar-from-which-jetty

Executable war file that starts jetty without maven
http://stackoverflow.com/questions/2458440/executable-war-file-that-starts-jetty-without-maven