Enable content assist for *.properties in Eclipse STS - java

I have STS 4.4.0.RELEASE installed in my computer which is directly downloaded from spring.io
Content assist works fine for application.properties but does not work for bootstrap.properties. I have enabled file associations to open *.properties with "Generic Editor - Spring Properties". But still there is no content assist.
Any pointers?

Go to: Preferences > General > Content Types > Text and select Spring Properties File.
Now click on Add in File associations, add the content type accordingly (in my case it was *.properties) and click on OK.

Related

In intellij idea, how to browse a file locally after I configured an FTP?

Before I make any FTP configuration, when I right click on an "index.html" file and select Run "index.html", this file will be opened in a browser window with the address localhost:8080/index.html. The Run Tool Window pops up:
However, after I configured an FTP:
every time when I right click on the index.html file and select Run, the file will always be opened with the address vimer2.java.jspee.net/index.html. I want it to be opened locally as before, but I don't know how.
Can you follow the steps listed on the page below:
Open the Settings / Preferences Dialog by choosing File | Settings for Windows and Linux or IntelliJ IDEA | Preferences for OS X, and click Web Browsers under Tools.
More details can be seen here:
https://www.jetbrains.com/help/idea/2016.1/configuring-browsers.html

Files not executing in any browser except IE

I am doing a simple dynamic web project in eclipse Luna with a set of JSP files and Tomcat web server. But problem is, whenever I run any of the JSP files, it gives an error "File name, directory name or volume label syntax is incorrect" on all browsers except IE. I have searched a lot for this but I only got answers for maven projects. Can someone please provide a simpler solution ? Thanks in advance
Solved : We just need to change the settings in Window > Preferences > General > Web Browser and click on new and add our own browser(FF or chrome) by giving its file path. Then it works.

I can not see with db Questoid SQLite Browser

i am using eclipse for android programing and now i need to view SQLite database in the emulator.
I followed these step:
Download .jar file
Place the plugin .jar file in your Eclipse plugins folder (e.g. /usr/lib/eclipse/plugins)
Restart Eclipse
Start up an Android Emulator w/ Debugging in Eclipse
Switch to the DDMS Perspective in Eclipse
Go to the 'File Explorer' tab to locate your device's database file
Navigate to: e.g. 'data -> data -> com.myproject -> databases -> myproject
Now when i try to Open the database file in Questoid i can't select it!
(see screen shot)
same advice?
From your screen shot there, the database does not have a "." (read: period) in the file name & extension area.
Improper: mydatabaseDB
Proper: mydatabase.db
Once the database shows the proper extension (and is a proper SQLite database), then Questoid will (I use the plugin all the time in Eclipse (Juno version)) then show the "active" button (not disabled like in your screen shot). When looking for latest database entries (what was just added into the database), I then click once again on the toolbar icon as you show there, in the upper right of the screen. I then go to the Browse Data tab for that view, then choose the table from the database I want to view the fields from.
I hope this helps.
Happy coding...
I had the same problem with "sqlitemanager": only .db-Database files are accepted.
This is the solution:
Download this Questoid SqLiteBrowser: http://www.java2s.com/Code/JarDownload/com.questoid/com.questoid.sqlitebrowser_1.2.0.jar.zip
Unzip and put it into eclipse/dropins (not Plugins)
Try following these steps:
1) Close Eclipe
2) Remove the .jar from /usr/lib/eclipse/plugins.
3) Place the .jar in /eclipse/dropins and let Eclipse try to install it for you.
4) Start Eclipse.
you can always use sqlitebrowser externally . You will have to pull your databse everytime from ddms though .
The file has to end with .db extension, so the answer is to name your database as this sqlite browser expects it to be.
Another way of fixing it is to find a year old version that does not have this constraint.
Please use the extension ".db" in lowercase, please don't try with these extensions .SLQLITE, .BD, .DB, .SQL, or similar or without extensions.
Regards,

How to make properties file in netbeans

i am working on a struts2 web application-project and using netbeans 6.9. i want to create a properties file for my project.
how do i do that in net-beans........
right click on the location where you would like to add property file.
new > other > other > Properties file

How to enable jsp partitions in xml document?

I have created editor, which extends JSP Editor. I have added my own content assist, however I would like to be able to open XML documents, edit them using my editor and what is the most important to have content assist available. The problem is that, while editing xml I do not get content assist from JSP tags. Is there any possibility to enable JSP partitioning in xml document? Because I think it would resolve the problem, when text is properly partitioned, I obtain proper proposals.
Usually Following file extensions are automatically recognized by JSP Editor in eclipse with WTP plugin installed.
inc
jsp
jspx
jsv
jtpl
If the file you are adding is not in the listed file extesions you can add it to contenttypes in eclipse
[ Window > Preferences > General > Content Types : In right pane expand Text , Select JSP , add the file extension you are trying to open in JSP editor

Categories