Skip to content

Commit

Permalink
Indentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pozhidaev committed Oct 13, 2018
1 parent f09b72b commit a04745f
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/main/java/org/luwrain/app/viewer/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ private void createArea()
NullCheck.notNull(event, "event");
if (event.isSpecial() && !event.isModified())
switch(event.getSpecial())
{
case ESCAPE:
closeApp();
return true;
}
{
case ESCAPE:
closeApp();
return true;
}
return super.onInputEvent(event);
}
@Override public boolean onSystemEvent(EnvironmentEvent event)
Expand All @@ -90,11 +90,11 @@ private void createArea()
case CLOSE:
closeApp();
return true;
default:
default:
return super.onSystemEvent(event);
}
}
@Override public String getAreaName()
@Override public String getAreaName()
{
return arg != null?arg.getName():strings.appName();
}
Expand All @@ -104,19 +104,19 @@ private void createArea()
private void loadFile(File file)
{
NullCheck.notNull(file, "file");
try {
this.pdf = luwrain.createPdfPreview(this, file);
}
catch(Exception e)
{
this.text = new String[]{
"",
"ERROR:",
e.getClass().getName(),
e.getMessage(),
};
luwrain.onAreaNewContent(area);
}
try {
this.pdf = luwrain.createPdfPreview(this, file);
}
catch(Exception e)
{
this.text = new String[]{
"",
"ERROR:",
e.getClass().getName(),
e.getMessage(),
};
luwrain.onAreaNewContent(area);
}
}

@Override public boolean onInputEvent(KeyboardEvent event)
Expand Down

0 comments on commit a04745f

Please sign in to comment.