Ctrl + Shift + I for image files?
In a 5.0.1 tip of the day it says
"You can quickly view the image referenced at caret, by using the Quick
Definition Lookup (CtrlShiftI). The underlying image will be opened in
a popup, instead of a separate editor tab."
I am not able to get this to work.
Using the latest 5.0.1 on windows XP.
Does this work for other people?
Ted
Please sign in to leave a comment.
Hello Ted,
TH> In a 5.0.1 tip of the day it says
TH>
TH> "You can quickly view the image referenced at caret, by using the
TH> Quick Definition Lookup (CtrlShiftI). The underlying image will be
TH> opened in a popup, instead of a separate editor tab."
TH>
TH> I am not able to get this to work.
TH> Using the latest 5.0.1 on windows XP.
TH> Does this work for other people?
Point cursor on file name (not path) and press CtrlShiftI
new ImageIcon("/my/resources/myImage.gif")
Cursor must be in bounds of "myImage.gif"
--
Alexey Efimov, Java Developer
Tops BI
Here is the source line from my .java file.
add(new JButton("Test", new ImageIcon("pt_info_norm.png")));
I put my cursor inside the quotes for pt_info_norm.png.
The png file is in the same directory as the .java source file.
I don't see any 'preview.'
Any suggestions on how to get this to work would be appreciated.
Thanks.
This functionality is provided by the "images" plugin. Perhaps you
deinstalled it?
Bas
Ted Hill wrote:
According to my plugins page, it is installed.
Images version 1.1
For the Images plugin, what do we need for the External Editor
"Executable path:"
I have nothing here. I assume that is why it is not working.
Is there a good editor for Windows XP that is free?
Thanks,
Ted
Hello Ted,
TH> For the Images plugin, what do we need for the External Editor
TH> "Executable path:"
TH>
TH> I have nothing here. I assume that is why it is not working. Is
TH> there a good editor for Windows XP that is free?
IDEA is a viewer only for images. To open it in exernal editor, you should
point it to executable.
For example, photoshop.exe, etc.
The CtrlShiftI should work without this settings anyway. If it does not,
please file JIRA issue with details to reproduce.
Thanks!
--
Alexey Efimov, Java Developer
Tops BI
Hi Alexy,
I assume you are the author of the Images 1.1 plugin.
If I do main menu File | Open File ...
on a png file, it will open the png file in a separate tabbed window in
the editor.
So the Images plugin itself is there and working.
Is there some other configuration or set up that needs to be done to get
the CtrlShiftI behavior working?
Thanks,
Ted
Hello Ted,
TH> So the Images plugin itself is there and working.
TH>
TH> Is there some other configuration or set up that needs to be done to
TH> get the CtrlShiftI behavior working?
Ok, just check that CtrlshiftI is work for Java (not for images). Maybe
you have keymapping collisions?
If CtrlShiftI is work for Java and not work for images, please file JIRA
issue - it is bug.
Thanks!
--
Alexey Efimov, Java Developer
Tops BI
Sorry for late answer,
only absolute resource path are supported to the moment like "/com/company/stuff/pt_info_norm.png"
should work.
You may wish to file a request to JIRA to extend to relative paths.
-
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"