Skip to content

Commit

Permalink
Downgrading back to Java 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jahudzik committed Nov 7, 2016
1 parent a941aad commit 4bb6961
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Expand Up @@ -12,8 +12,8 @@ apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'

compileJava {
sourceCompatibility = 1.7
targetCompatibility = 1.7
sourceCompatibility = 1.6
targetCompatibility = 1.6
}

intellij {
Expand Down
Expand Up @@ -82,7 +82,7 @@ && getAccessibleContext().getAccessibleChild(0) instanceof ComboPopup) {
}

public void filter(String inputText) {
List<String> filterList = new ArrayList<>();
List<String> filterList = new ArrayList<String>();
for (String text : comboBoxList) {
if (text.toLowerCase().contains(inputText.toLowerCase())) {
filterList.add(text);
Expand Down
Expand Up @@ -375,7 +375,7 @@ public void propertyChange(PropertyChangeEvent event) {
}

private void initColorComboBox() {
colorPaletteMap = new HashMap<>();
colorPaletteMap = new HashMap<String, String>();

try {
Document doc = JDOMUtil.loadDocument(getClass().getResourceAsStream(COLOR_PALETTE_COMBOBOX_XML));
Expand All @@ -386,7 +386,9 @@ private void initColorComboBox() {
colorPaletteMap.put(key, element.getText());
comboBoxColor.addItem(key);
}
} catch (JDOMException | IOException e) {
} catch (JDOMException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}

Expand Down Expand Up @@ -469,7 +471,9 @@ private void initIconComboBox() {
for (org.jdom.Element element : elements) {
comboBoxIcon.addItem(element.getText());
}
} catch (JDOMException | IOException e) {
} catch (JDOMException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}

Expand Down Expand Up @@ -612,7 +616,13 @@ private void changeColorAndSize(File destFile) {
transformer.setOutputProperty(OutputPropertiesFactory.S_KEY_INDENT_AMOUNT, "4");
StreamResult result = new StreamResult(destFile);
transformer.transform(new DOMSource(doc), result);
} catch (ParserConfigurationException | SAXException | TransformerException | IOException e) {
} catch (ParserConfigurationException e) {
e.printStackTrace();
} catch (SAXException e) {
e.printStackTrace();
} catch (TransformerException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
Expand Down Expand Up @@ -712,7 +722,9 @@ public void mouseClicked(MouseEvent event) {
try {
URI uri = new URI(url);
desktop.browse(uri);
} catch (IOException | URISyntaxException e) {
} catch (IOException e) {
e.printStackTrace();
} catch (URISyntaxException e) {
e.printStackTrace();
}
}
Expand Down

0 comments on commit 4bb6961

Please sign in to comment.