fix the grammar browser in the editor

This commit is contained in:
krasimir
2011-03-08 12:32:51 +00:00
parent 93dcac2819
commit 1e4ec3c7d2
2 changed files with 2 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ public class BrowsePanel extends Composite {
public native void onActivate() /*-{
$doc.browsePanel = this;
$doc.callBrowse = @org.grammaticalframework.ui.gwt.client.BrowsePanel::callBrowse(Lorg/grammaticalframework/ui/gwt/client/BrowsePanel;Ljava/lang/String;);
}-*/;
}-*/;
protected Widget createSearchPanel(CompletionOracle oracle) {
searchBox = new SuggestBox(oracle);

View File

@@ -368,6 +368,7 @@ public class EditorApp implements EntryPoint {
break;
case 3: parent.add(browsePanel);
if (level == 0) History.newItem("browse", false);
browsePanel.onActivate();
break;
case 4: parent.add(grammarsPanel);
if (level == 0) History.newItem("grammars", false);