Advanced Programming TA Session 3 Advanced Programing TA Session, Sharif University of Technology TA Session 3
Eclipse Perspectives and views Eclipse Packages Java, Java EE, Java Reporting, C++ Differ by add-ons installed by default Workspace The .metadata folder Startup Create a new “Java Project” The .project and .classpath file Create a new Class Write code in the Class Perspectives and views Advanced Programing TA Session, Sharif University of Technology
Eclipse Building Build = Compile all files in project Builds automatically by default Every save results to compiling Clean project to build again Advanced Programing TA Session, Sharif University of Technology
Eclipse Tips Use Navigator Refresh project to see new resources Use Quick fix for: Creating getter setters Correcting standard problems Use Source Generation for: Overriding methods Advanced Programing TA Session, Sharif University of Technology
Eclipse Preferences Setting java compiler Set compiler to 1.6 or compliance to 1.6 for this course Advanced Programing TA Session, Sharif University of Technology
Eclipse Shortcuts Ctrl + Space--> Auto Complete Type “sysout” + Ctrl + Enter --> System.out.println Ctrl + D --> Delete line Ctrl + 1 --> Quick Fix Ctrl + Shift + o --> Fix imports Ctrl + H --> Search Ctrl + O --> Goto method Ctrl + Shift + R --> Find resource by name Ctrl + I --> Correct Indentation Advanced Programing TA Session, Sharif University of Technology