Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts
Tuesday, 24 November 2009
Friday, 2 October 2009
Eclips Shortcut Key
I do not have patient to browse through the files, I always look for shortcuts and customize the editor shortcut keys as I wish.
You can assign or edit the shortcut key binding.
Goto , Window --> Preferences --> General --> Keys, Just play around with that window.
List of shortcut keys : CTRL+SHIFT+L
List of shortcut key list
Open a Resource : Ctrl+Shift+Y
Open a Type: Ctrl+Shift+T
Go to Method : Ctrl+O , Shift+O,O
Go to Line: Ctrl+L
Lower Case: Ctrl+Shift+Y
Upper Case: Ctrl+Shift+X
Expand: Ctrl+Numpad_Add
Expand All: Ctrl+Numpad_Multiply
Collapse: Ctrl+Numpad_Subtract
Collapse All: Ctrl+Shift+Numpad_Divide
You can assign or edit the shortcut key binding.
Goto , Window --> Preferences --> General --> Keys, Just play around with that window.
List of shortcut keys : CTRL+SHIFT+L
List of shortcut key list
Open a Resource : Ctrl+Shift+Y
Open a Type: Ctrl+Shift+T
Go to Method : Ctrl+O , Shift+O,O
Go to Line: Ctrl+L
Lower Case: Ctrl+Shift+Y
Upper Case: Ctrl+Shift+X
Expand: Ctrl+Numpad_Add
Expand All: Ctrl+Numpad_Multiply
Collapse: Ctrl+Numpad_Subtract
Collapse All: Ctrl+Shift+Numpad_Divide
Tuesday, 15 September 2009
Eclipse Warning : "The type MobTest collides with a package"
Reason : The package name is same as class name.
Friday, 11 September 2009
Eclipse Error : Access restriction:The method ..
Error message ..
Access restriction: The method createJPEGEncoder(OutputStream) from the type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0_11\jre\lib\rt.jar
Access restriction: The method getDefaultJPEGEncodeParam(BufferedImage) from the type JPEGImageEncoder is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0_11\jre\lib\rt.jar
Access restriction: The method setJPEGEncodeParam(JPEGEncodeParam) from the type JPEGImageEncoder is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0_11\jre\lib\rt.jar ImageUtil.java
Solution
Go to Project properties -->Java Compiler --> Errors Warnings, Then enable project specific settings,
Expand Deprecated and restrited APIs category
-Forbidden reference (acess rule) , Change to warning or ignore.
Access restriction: The method createJPEGEncoder(OutputStream) from the type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0_11\jre\lib\rt.jar
Access restriction: The method getDefaultJPEGEncodeParam(BufferedImage) from the type JPEGImageEncoder is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0_11\jre\lib\rt.jar
Access restriction: The method setJPEGEncodeParam(JPEGEncodeParam) from the type JPEGImageEncoder is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0_11\jre\lib\rt.jar ImageUtil.java
Solution
Go to Project properties -->Java Compiler --> Errors Warnings, Then enable project specific settings,
Expand Deprecated and restrited APIs category
-Forbidden reference (acess rule) , Change to warning or ignore.
Spell checker for Eclipse
Create the text file or Down load this file
Edit Eclipse Preferences:
- Window -> Preferences -> General-> Editors-> Text Editors-> Spelling
- Browse to the text file or downloaded file.
Click on the word and type CTRL+1, It will show context menu in eclipse editor.You can click your option.
Ref
Eclipse: Catch Those Spelling Errors
Edit Eclipse Preferences:
- Window -> Preferences -> General-> Editors-> Text Editors-> Spelling
- Browse to the text file or downloaded file.
Click on the word and type CTRL+1, It will show context menu in eclipse editor.You can click your option.
Ref
Eclipse: Catch Those Spelling Errors
Eclipse Error : "Java compiler level does not match the version of the installed Java project facet"
Go o Project ->Properties -> Project Facets panel and set java facet version to match the java compiler compliance level.
How to increase java heap size in Eclipse?
Add following entries to eclipse.ini file.Current eclipse.int contents given below
-vmargs
-Xms512m [minimum memory ]
-Xmx1024m [maximum memory]
-Duser.name=Thillakan Sabanayakam [Eclipse uses you OS user name in the
Contents
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-clean
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx1024m
-Duser.name=Thillakan Sabanayakam
-vmargs
-Xms512m [minimum memory ]
-Xmx1024m [maximum memory]
-Duser.name=Thillakan Sabanayakam [Eclipse uses you OS user name in the
@author
java doc tag for default ]Contents
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-clean
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx1024m
-Duser.name=Thillakan Sabanayakam
Saturday, 22 August 2009
Eclipse Plug-In - Easy Explorer
Easy Explorer is a very useful plug in, Which helps you to browse resources with the native Operating system explorer. In the Eclipse, select a file, right-mouse click, and select the 'Easy Explore...'
I am using Galileo & easy-explore-1.0.4.
Image Magnification Testing :(
Plug-In details links
Easy Explorer Home
Download Plug-in
I am using Galileo & easy-explore-1.0.4.
Image Magnification Testing :(
Plug-In details links
Easy Explorer Home
Download Plug-in
Labels:
Easy Explorer,
Eclipse,
Java,
Plug-In
Saturday, 22 November 2008
How to enable Log4j logging in Eclipse console window?
Problems:
Could not see the log message in eclipse console window but it shows following warning message
log4j:WARN No appenders could be found for logger (com.test.HelloWorld).
log4j:WARN Please initialize the log4j system properly.
Reasons:
Log4j is not initialised.
Solution:
Add a ConsoleAppender
or Appender
Code Sample:
BasicConfigurator.configure();
or
PropertyConfigurator.configure("log4j.xml");
Ref:
Log4j Manual
Log4j API
BasicConfigurator
PropertyConfigurator
Subscribe to:
Posts (Atom)