# Anjuta internal configuration file

#----------------- WARNING ------------------------------------#
# Any modification in this file without knowing proper internal
# working of Anjuta may lead to instabilites.
#----------------- WARNING ------------------------------------#

# Anjuta uses this file for internal operations,
# therefore this file should never be modified.
# Only Anjuta developers will be tampering with this file. 

# Any modification if needed should be approved by the Anjuta
# developers, so that the source code is also changed (if needed)
# and the changes incorporated in the next release of Anjuta.

##################################################
# Filters to be used in file open/close/save etc #
##################################################
filter.java=Java (.java)|*.java|
filter.js=Javascript (.js)|*.js|

############################################
# File patterns defined for all file types #
############################################
file.patterns.java=*.java
file.patterns.js=*.js

####################################################
# Lexer to be used for corresponding file patterns #
####################################################
lexer.$(file.patterns.java)=cpp
lexer.$(file.patterns.js)=cpp

################################################
# File type corresponding to the file patterns #
################################################
filetype.$(file.patterns.java)=java
filetype.$(file.patterns.js)=js

#####################
# Keywords for Java #
#####################
keywordclass.java=abstract assert boolean break byte case catch char class \
const continue default do double else extends final finally float for future \
generic goto if implements import inner instanceof int interface long \
native new null operator outer package private protected public rest \
return short static super switch synchronized this throw throws \
transient try var void volatile while
keywords.*.java=$(keywordclass.java)

#############################
# Keywords for Java scripts #
#############################
keywordclass.javascript=abstract boolean break byte case catch char class \
const continue debugger default delete do double else enum export extends \
final finally float for function goto if implements import in instanceof \
int interface long native new package private protected public \
return short static super switch synchronized this throw throws \
transient try typeof var void volatile while with
keywords.*.js=$(keywordclass.javascript)

#########################
# Other java properties #
#########################
file.has.folds.$(file.patterns.java)=1
file.has.folds.$(file.patterns.js)=1
file.interpreted.$(file.patterns.java)=1
file.interpreted.$(file.patterns.js)=1
file.is.source.$(file.patterns.java)=1
file.is.source.$(file.patterns.js)=1

######################################################
# Default Commands for handling different file types #
######################################################

command.compile.file.$(file.patterns.java)=javac "$(current.file.name.ext)"
command.build.file.$(file.patterns.java)=javac *.java
command.execute.file.$(file.patterns.java)=java "$(current.full.filename)"
