View source
From RCUB
for
Eclipse 4.5 - podešavanja
Jump to:
navigation
,
search
Preuzeti [http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/R/eclipse-jee-juno-win32.zip Eclipse IDE for Java EE Developers 4.2] Obavezna i preporučena podešavanja za Eclipse Juno 4.2. = Obavezna = == Povećanje raspoložive memorije i permgen-a == U fajlu eclipse.ini promeniti parametre: -Xms128m -Xmx768m == Blanko umesto taba u Java fajlovima == Eclipse: convert tabs to spaces Window->Preferences Java->Code Style->Formatter Hit "edit" Tab policy: Spaces only Chage profile name to "Eclipse [RCUB]" Hit "Ok". == Blanko umesto taba u XML fajlovima == Window -> Preferences XML -> XML files -> Editor Ident using spaces, Identation size = 2. == UTF-8 enkoding za Java fajlove == Window, Preferences, General, Workspace, Text File Encoding, UTF-8 == 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. == Instalacija Subclipse plug-ina == Proveriti link za instalaciju na Subclipse sajtu (http://subclipse.tigris.org). Obicno je to nešto tipa: http://subclipse.tigris.org/update_1.8.x Help, Install new software... U Work with uneti http://subclipse.tigris.org/update_1.8.x, Add... Name: Subclipse, Ok Štiklirati "SVNKit client adapter" i required podpakete, Next... itd... Finish Prihvatiti sve security warning-e. Ako pita da li treba da restartuje Eclipse, restartovati. == Instalacija m2eclipse plug-ina == Preduslov: Instaliran standalone Maven na disku, i podesen user settings file. Proveriti linkove za instalaciju na m2eclipse sajtu (http://wiki.eclipse.org/Maven_Integration). Obicno je to nesto tipa: http://download.eclipse.org/technology/m2e/releases Help, Install new software... U Work with uneti http://download.eclipse.org/technology/m2e/releases, Add Name: m2e, Ok Štiklirati samo "Maven integration for Eclipse", Next... itd... Finish Prihvatiti sve security warning-e. Ako pita da li treba da restartuje Eclipse, restartovati. Dodati m2e-sublicse integraciju: Help, Install new software... U Work with uneti http://subclipse.tigris.org/m2eclipse/1.0, Add Name: m2e-subclipse, Ok Štiklirati "Maven SCM handler for Subclipse", Next... itd... Finish Prihvatiti sve security warning-e. Ako pita da li treba da restartuje Eclipse, restartovati. U Eclipse-u podesiti novi Maven runtime: Window, Preferences, Maven, Installations, Add... Izabrati folder gde je standalone Maven instaliran na disku (npr. c:\apps\apache-maven-2.2.1), Apply Window, Preferences, Maven, User settings, Brows Izabrati global settings fajl za Maven (npr. c:\apps\apache-maven-2.2.1\conf\settings.xml), Apply == Isključivanje validacije == Windows, Preferences, Validation, isključiti sve Build. Opciono isključiti i sve manual osim "XML Schema Validator, XML Validator, XSL Validator". == Dodavanje foldera i fajlova na ignore listu == Neki folderi i fajlovi po pravilu ne treba komitovati na SVN. Ukoliko Eclipse nudi Eclipse specificne foldere da komituje, staviti ih na ignorisane resurse: Window, Preferences, Team, Ignored resources, Add pattern..., Primeri su .settings, .project, .classpath, target, itd... = Opciona = == Podešavanje maksimalne dužine reda u Java fajlovima == Window, Preferences, Java, Code style, Formatter, Edit..., Line wrapping, Maximum line width: 120. == Podešavanje markera maksimalne dužine reda u tekstualnim fajlovima == Window, Preferences, General, Editors, Text Editors. Stiklira se show print margin box i postavi na 120. Moze u istom prozoru da se promeni i boja te linije. == 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. == Isključivanje spell checkinga == Window, Preferences, General, Editors, Text editors, Spelling == Copy+paste u sting literale == Windows, Preferences, Java, Editor, Typing, in string literals, "Escape text when..." == Dodavanje Tomcata u instalirane servere == Window, Preferences, Server, Runtime Environments, Add, Apache tomcat 6.0, Next, Browse, Izabrati Tomcat instalaciju. Window, Show view, server Kliknuti na view, New, Server, Tomcat 6.0 server, Next, Finish = Tips and tricks = == Zaključan workspace == When I start my eclipse(eclipse-SDK-3.2M3-win32), then an message/error is comming: "Worksapce in use". But no ather eclipse is running and the workspace is an lokal one no vnc or shared on network. What can i do to the workspace? Go to the ".metadata" directory loacted in you workspace and delete the file ".lock" if any. == Ant sql task i datumi == Da bi eclipse mogao da izvrsi Ant task SQL potrebno je da datumi budu pod apostrofima: '1998-03-03' a ne samo 1998-03-03 == HTML kodovi u JSF view source == Ukoliko prilikom pregleda HTML source-a (npr. view source iz Firefoxa), se prikazuju umesto UTF-8 slova, HTML kodovi (npr. #1234;), uraditi sledeće: Da bi se isforsirao UTF8 podesiti Project, Properties, Resource, Text file encoding, Other: UTF-8. (Ukoliko stoji Inherited from container, to moze da pravi problem, jer onda kada se deployuje container mu je npr. Tomcat koji moze da ima i neki drugi encoding). == Duplirane klase na classpathu == Eclipse dozvoljava da se importuje vise .jar fajlova sa istim klasama. Eclipse ce pozvati klasu koja je u projektu ukoliko je ima, a ukoliko je nema, pozvace klasu iz PRVOG jar fajla na listi. == Ne radi validacija prema XSD šemi == U Eclipse-u 3.3.0, Validacija XML fajla prema zadatoj XSD semi ne radi ako se XML fajl nalazi bilo gde u src folderu koji nije u istom projektu. == Dodavanje serverskih jarova u calsspath == Da bi se u classpath dodale i sve klase koje su potrebne za kompajliranje servleta na primer potrebno je u Project properties, Target Runtimes dodati odgovarajuci server. == Problem sa Access restrictions == Pri prelasku na novi Eclipse može se dogoditi da budu prijavljene Access restrictions greške. Ovo treba istražiti šta tačno uzrokuje problem, ali se problem može zaobići sa: Window, Preferences, Java, Compiler, Errors/Warnings, Deprecated and restricted API, Forbidden reference (access rules), staviti na Ignore.
Return to
Eclipse 4.5 - podešavanja
.
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
Actions
Search
Navigation
Main page
Community portal
Current events
Recent changes
Random page
Help
Toolbox
What links here
Related changes
Special pages