Eclipse 4.5 - podešavanja
From RCUB
(→Dodavanje Tomcata u instalirane servere) |
(Dopunjeno m2e-wtp) |
||
Line 16: | Line 16: | ||
== Blanko umesto taba u Java fajlovima == | == Blanko umesto taba u Java fajlovima == | ||
− | + | Window, Preferences, Java, Code Style, Formatter, Edit | |
− | + | Tab policy: Spaces only | |
− | Window | + | Promeniti ime profila na "Eclipse [RCUB]" |
− | Java | + | Ok |
− | + | ||
− | + | ||
− | + | ||
− | Tab policy: Spaces only | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== Blanko umesto taba u XML fajlovima == | == Blanko umesto taba u XML fajlovima == | ||
− | Window | + | Window, Preferences, XML, XML files, Editor |
− | + | Indent using spaces, | |
− | + | Indentation size = 2. | |
− | + | ||
== UTF-8 enkoding za Java fajlove == | == UTF-8 enkoding za Java fajlove == | ||
− | Window, Preferences, General, Workspace, Text File Encoding, UTF-8 | + | Window, Preferences, General, Workspace, Text File Encoding, UTF-8 |
== UTF-8 enkoding za sve JSP fajlove == | == UTF-8 enkoding za sve JSP fajlove == | ||
− | Window, Preferences, General, Content Types, Text/JSP i sva njegova deca, moraju za Default Encoding da imaju UTF-8. | + | Window, Preferences, General, Content Types, Text/JSP i sva njegova deca, moraju za Default Encoding da imaju UTF-8. |
== Instalacija Subclipse plug-ina == | == Instalacija Subclipse plug-ina == | ||
+ | |||
+ | Subclipse plugin je potreban za rad sa SVN serverom. | ||
Proveriti link za instalaciju na Subclipse sajtu (http://subclipse.tigris.org). Obicno je to nešto tipa: | Proveriti link za instalaciju na Subclipse sajtu (http://subclipse.tigris.org). Obicno je to nešto tipa: | ||
Line 63: | Line 56: | ||
− | == Instalacija | + | == Instalacija m2e plug-ina == |
+ | |||
+ | M2e plugin je potreban za integraciju sa Mavenom. | ||
Preduslov: Instaliran standalone Maven na disku, i podesen user settings file. | Preduslov: Instaliran standalone Maven na disku, i podesen user settings file. | ||
Line 79: | Line 74: | ||
Ako pita da li treba da restartuje Eclipse, restartovati. | Ako pita da li treba da restartuje Eclipse, restartovati. | ||
+ | |||
+ | M2e-subclipse integracija je potrebna da bi u SVN Repositories pogledu postojala opcija "Checkout as Maven project". | ||
Dodati m2e-sublicse integraciju: | Dodati m2e-sublicse integraciju: | ||
Line 113: | Line 110: | ||
Primeri su .settings, .project, .classpath, target, itd... | Primeri su .settings, .project, .classpath, target, itd... | ||
+ | |||
+ | == Dodavanje Tomcata u instalirane servere == | ||
+ | |||
+ | Window, Preferences, Server, Runtime Environments, Add, Apache tomcat 7.0, Next, Browse, Izabrati folder sa Tomcat instalacijom (npr. C:\apps\apache-tomcat-7.0.22). | ||
+ | Window, Show view, server | ||
+ | Desni klik na panel u okviru Server View-a, New, Server, Tomcat 7.0 Server, Finish | ||
+ | |||
+ | |||
+ | == Instalacija m2e-wtp plug-ina == | ||
+ | |||
+ | M2e-wtp plugin je potreban da bi Maven projekat mogao da se publish-uje na Tomcat serveru u okviru Eclipse-a. | ||
+ | |||
+ | Windows, Preferences, Maven, Discovery, Open Catalog, Štiklirati m2e-wtp, Finish | ||
Line 126: | Line 136: | ||
Moze u istom prozoru da se promeni i boja te linije. | Moze u istom prozoru da se promeni i boja te linije. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Isključivanje spell checkinga == | == Isključivanje spell checkinga == | ||
− | Window, Preferences, General, Editors, Text editors, Spelling | + | Window, Preferences, General, Editors, Text editors, Spelling |
== Copy+paste u sting literale == | == Copy+paste u sting literale == | ||
− | Windows, Preferences, Java, Editor, Typing, in string literals, "Escape text when..." | + | Windows, Preferences, Java, Editor, Typing, in string literals, "Escape text when..." |
− | == Dodavanje | + | == Dodavanje starije Jave == |
+ | |||
+ | Ukoliko je potrebno dodati neku stariju verziju Jave ići na: | ||
+ | |||
+ | Windows, Preferences, Java, Installed JREs, Add... | ||
+ | Ukazati na folder sa npr. JDK 1.5 instalacijom, i raditi ok dok se ne zatvori preferences prozor. | ||
− | |||
− | |||
− | |||
= Tips and tricks = | = Tips and tricks = |