Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
FormatAction: Use profile from CeylonStyle
Browse files Browse the repository at this point in the history
For #987.
  • Loading branch information
lucaswerkmeister committed Oct 3, 2014
1 parent 179343e commit ad64246
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -40,6 +40,7 @@
import com.redhat.ceylon.compiler.typechecker.tree.Tree.Statement;
import com.redhat.ceylon.eclipse.code.parse.CeylonParseController;
import com.redhat.ceylon.eclipse.code.parse.TreeLifecycleListener.Stage;
import com.redhat.ceylon.eclipse.code.style.CeylonStyle;
import com.redhat.ceylon.eclipse.util.Indents;
import com.redhat.ceylon.eclipse.util.Nodes;
import com.redhat.ceylon.eclipse.util.StringBuilderWriter;
Expand Down Expand Up @@ -257,7 +258,7 @@ public String getSourceName() {
unit.node,
combinedOptions_.combinedOptions(
loadProfile_.loadProfile(
"default", // TODO profile management
CeylonStyle.getFormatterProfile(pc.getProject()),
/* inherit = */ false,
/* baseDir = */ pc.getProject().getLocation().toOSString()),
new Singleton<SparseFormattingOptions>
Expand Down

0 comments on commit ad64246

Please sign in to comment.