In Eclipse I want to open a .xml file in a web browser and my colleagues who have the same drop that I have are able to right click the file and select open with option. My drop does not give me that option. What do I need to do to get that option?
Related
I have not seen this asked anywhere, so I was wondering if it's possible to configure Eclipse to open a specific file whenever a project is opened. For instance, all of my projects have a /src/main.c file that is the main code I typically edit. It would be fantastic if Eclipse would auto open it.
Does anybody know if this is possible? Thanks.
EDIT:
I should specify that if I'm working in Eclipse, close the project with Eclipse still running, and then re-open the project, I want the /src/main.c file to be opened.
Yes it is possible. All you need to do is one time open the file using
File>>open File>>
Then dont close that file let it be open and close eclipse and open eclipse again. you can see that file opened already in eclipse.
Do you create this file manually? From the first time you create it, just leave it open when you close Eclipse. The next time you start it, the file should open automatically. In fact it will open all files which were open at the end of the previous session.
Is there a way to use netbeans as a simple text editor, without setting up a project?
I am interested in using netbeans features as a text editor, especially for making quick changes on remote servers.
Yes, of course you can use it as a text editor. Just Open Netbeans and select File > Open File and select the file to open from the file chooser dialog. Make changes and click Save.
If you want to edit files on network locations, again do File > Open File and paste the location of your remote file.
I use eclipse (Spring STS actually). I need quick access to two files:
- web.xml
- servlet-context.xml (spring config)
Every time I want to open the files, I need to find them and that takes time.
Is there a way to create a link on the root folder of a project? This way I can quickly access it?
Thanks!
One option is to use Ctrl+Shift+R and type the name of the file that you want to open.
You can also create a link to some file under the root of the project:
Right click the project and select New->File
In the New File dialog click Advanced and then select Link to file in the file system
Click Browse and select the file for which you want to have quick access
Click Finish and you are done
In Visual Studio, or MyEclipse, you have a button which is able to locate a source file on disk, and open the containing directory in Windows explorer.
This is useful, for example, to browse images, or to use an other tool when a conflict occurs in CVS or SVN.
What would be the way to do it in Eclipse with a free plugin, or without any plugin ?
I found it :
"In eclipse, it is common requirement to open the folder containing source file but there is no direct method to do that like in Visual studio of Microsoft."
http://shivasoft.in/blog/others/tips/locate-source-file-on-local-disc-in-eclipse-external-tool/
An actual plugin can be found at http://blog.samsonis.me/2009/02/open-explorer-plugin-for-eclipse/
And version 1.5 can be found here http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/
One that I've since upgraded to & find more useful
http://basti1302.github.io/startexplorer/
I always do this:
right click on file/folder, show in..., system explorer. Done.
I guess we don't need a plugin to do that, or I am misunderstanding the question?? I am using Luna 4.4.2 on Windows 7.
On Mac you can follow this steps to add it without a plug-in:
Click the disclosure icon to the right of the External Tools icon:
Select External Tools Configuration:
The External Tools Configuration window will appear. Select Programs and then click New Launch Configuration:
This will create a new launch configuration. Enter a name of the configuration in the name field:
In the Location field enter the path to the Open Finder, "/usr/bin/open" without quotes:
In the Arguments field enter the following argument, "${container_loc}" with quotes:
Click Apply. It should look like the following:
Switch to the build tab and deselect Build before launch:
Switch to the Common tab and select the External Tools checkbox in Favorites. Click Apply again and close out of the window.
You are done. Now to use:
Select a file or folder in Eclipse Package Explorer.
Click the disclosure icon to the right of the External Tools icon:
Select the Open Containing Folder from the drop down menu:
You're file or folder should open in Finder.
PRO TIP: After you use the external tool once you can click the External Tools icon again and it will run the last used external tool. In other words, you won't need to select it from the pop up menu each time.
You can also look up the source directory by right clicking on the project, going to properties, and looking at "Location: ... "
I am getting following error on
Cannot create the in-place editor
This is probably because there is no
OLE editor registered against the type
of file you were trying to open.
Failed to create Ole Client. result =
-2147417851
I have MS office 2007,and the excel file is stored as "save as 2003 version".
I'm using 3.5 so things could be different. Window->Preferences->General->Editors->File Associations.
Add *.xls and add Associated Editor (from this window you can select external programs to open with)
I think you should be able to open the excel file inside and eclipse editor, but it looks like the OLE is not working on your system for some reason.
first check the system editor available or not.
if available right click on xls file and click on open with system editor.
if not available follow bellow steps.
eclipse-->help-->Install new software-->search for editor and download and restart the eclipse. After restart the eclipse right click on xls file and click on open with system editor.