mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-14 15:29:31 -06:00
fix the grammar browser in the editor
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user