mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 01:22:51 -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() /*-{
|
public native void onActivate() /*-{
|
||||||
$doc.browsePanel = this;
|
$doc.browsePanel = this;
|
||||||
$doc.callBrowse = @org.grammaticalframework.ui.gwt.client.BrowsePanel::callBrowse(Lorg/grammaticalframework/ui/gwt/client/BrowsePanel;Ljava/lang/String;);
|
$doc.callBrowse = @org.grammaticalframework.ui.gwt.client.BrowsePanel::callBrowse(Lorg/grammaticalframework/ui/gwt/client/BrowsePanel;Ljava/lang/String;);
|
||||||
}-*/;
|
}-*/;
|
||||||
|
|
||||||
protected Widget createSearchPanel(CompletionOracle oracle) {
|
protected Widget createSearchPanel(CompletionOracle oracle) {
|
||||||
searchBox = new SuggestBox(oracle);
|
searchBox = new SuggestBox(oracle);
|
||||||
|
|||||||
@@ -368,6 +368,7 @@ public class EditorApp implements EntryPoint {
|
|||||||
break;
|
break;
|
||||||
case 3: parent.add(browsePanel);
|
case 3: parent.add(browsePanel);
|
||||||
if (level == 0) History.newItem("browse", false);
|
if (level == 0) History.newItem("browse", false);
|
||||||
|
browsePanel.onActivate();
|
||||||
break;
|
break;
|
||||||
case 4: parent.add(grammarsPanel);
|
case 4: parent.add(grammarsPanel);
|
||||||
if (level == 0) History.newItem("grammars", false);
|
if (level == 0) History.newItem("grammars", false);
|
||||||
|
|||||||
Reference in New Issue
Block a user