List of usage examples for org.jdom2 Element getText
public String getText()
From source file:de.relaunch64.popelganda.database.Settings.java
License:Open Source License
public boolean getCodeFolding() { Element el = root.getChild(SETTING_CODE_FOLDING); if (el != null) return el.getText().equals("1"); return true;/* w w w . j a va 2 s.co m*/ }
From source file:de.relaunch64.popelganda.database.Settings.java
License:Open Source License
public int getCodeFoldingTokens() { int foldtokens = 0; Element el = root.getChild(SETTING_CF_MANUAL); if (el != null) foldtokens = foldtokens + (el.getText().equals("1") ? Assemblers.CF_TOKEN_MANUAL : 0); el = root.getChild(SETTING_CF_BRACES); if (el != null) foldtokens = foldtokens + (el.getText().equals("1") ? Assemblers.CF_TOKEN_BRACES : 0); el = root.getChild(SETTING_CF_LABELS); if (el != null) foldtokens = foldtokens + (el.getText().equals("1") ? Assemblers.CF_TOKEN_LABELS : 0); el = root.getChild(SETTING_CF_DIRECTIVES); if (el != null) foldtokens = foldtokens + (el.getText().equals("1") ? Assemblers.CF_TOKEN_DIRECTIVES : 0); el = root.getChild(SETTING_CF_STRUCTS); if (el != null) foldtokens = foldtokens + (el.getText().equals("1") ? Assemblers.CF_TOKEN_STRUCTS : 0); el = root.getChild(SETTING_CF_SECTIONS); if (el != null) foldtokens = foldtokens + (el.getText().equals("1") ? Assemblers.CF_TOKEN_SECTIONS : 0); return foldtokens; }
From source file:de.relaunch64.popelganda.database.Settings.java
License:Open Source License
public Assembler getPreferredAssembler() { Element el = root.getChild(SETTING_PREF_ASM); try {/*from w w w . j av a2 s . co m*/ if (el != null) return Assemblers.byID(Integer.parseInt(el.getText())); } catch (NumberFormatException ex) { } return Assemblers.ASM_KICKASSEMBLER; }
From source file:de.relaunch64.popelganda.database.Settings.java
License:Open Source License
public int getSidebarSort() { Element el = root.getChild(SETTING_SIDEBAR_SORT); try {/*from ww w . j av a2 s.c o m*/ if (el != null) return Integer.parseInt(el.getText()); } catch (NumberFormatException ex) { } return SORT_CASE; }
From source file:de.relaunch64.popelganda.database.Settings.java
License:Open Source License
public int getColorScheme() { Element el = root.getChild(SETTING_SYNTAX_SCHEME); try {/*from ww w. ja v a 2s . c o m*/ if (el != null) return Integer.parseInt(el.getText()); } catch (NumberFormatException ex) { } return ColorSchemes.SCHEME_DEFAULT; }
From source file:de.relaunch64.popelganda.database.Settings.java
License:Open Source License
public boolean getCheckForUpdates() { Element el = root.getChild(SETTING_CHECKUPDATES); if (el != null) return el.getText().equals("1"); return true;//w w w . j a v a 2 s . c o m }
From source file:de.relaunch64.popelganda.database.Settings.java
License:Open Source License
public boolean getFindFieldFocus() { Element el = root.getChild(SETTING_FINDFIELDFOCUS); if (el != null) return el.getText().equals("1"); return true;//from www . jav a 2 s . c o m }
From source file:de.relaunch64.popelganda.database.Settings.java
License:Open Source License
public boolean getAlternativeAssemblyMode() { Element el = root.getChild(SETTING_ALT_ASM_MODE); if (el != null) return el.getText().equals("1"); return false; }
From source file:de.relaunch64.popelganda.database.Settings.java
License:Open Source License
public boolean getShowLineHightlight() { Element el = root.getChild(SETTING_SHOW_LINEHIGLIGHT); if (el != null) return el.getText().equals("1"); return false; }
From source file:de.relaunch64.popelganda.database.Settings.java
License:Open Source License
public boolean getShowBufferSize() { Element el = root.getChild(SETTING_SHOW_BUFFERSIZE); if (el != null) return el.getText().equals("1"); return false; }