Skip to content

Commit

Permalink
Merge pull request #165 from mdrillin/TEIIDDES-1515B
Browse files Browse the repository at this point in the history
TEIIDDES-1515 Added WindowFunction handling to editor
  • Loading branch information
blafond committed May 17, 2013
2 parents efbb2a9 + 891258f commit 096f9eb
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import java.util.Arrays;
import java.util.List;

import org.teiid.designer.core.ModelerCore;
import org.teiid.designer.query.IQueryService;
import org.teiid.designer.query.sql.ISQLStringVisitor;
Expand All @@ -32,6 +33,8 @@
import org.teiid.designer.query.sql.symbol.IFunction;
import org.teiid.designer.query.sql.symbol.IGroupSymbol;
import org.teiid.designer.query.sql.symbol.IMultipleElementSymbol;
import org.teiid.designer.query.sql.symbol.IWindowFunction;
import org.teiid.designer.query.sql.symbol.IWindowSpecification;

/**
* The <code>DisplayNodeFactory</code> class is the Factory used to create all different types of DisplayNodes.
Expand Down Expand Up @@ -147,6 +150,9 @@ static DisplayNode constructDisplayNode( DisplayNode parentNode,
// ---------------------------------------------------------------------
FunctionDisplayNode node = new FunctionDisplayNode(parentNode, (IFunction)obj);
return node;
} else if (obj instanceof IWindowFunction || obj instanceof IWindowSpecification ) {
TextDisplayNode node = new TextDisplayNode(parentNode, obj.toString());
return node;
} else if (obj instanceof IAliasSymbol) {
AliasSymbolDisplayNode node = new AliasSymbolDisplayNode(parentNode, (IAliasSymbol)obj);
return node;
Expand Down

0 comments on commit 096f9eb

Please sign in to comment.