Package org.antlr.works.dialog

Examples of org.antlr.works.dialog.NewWizardDialog


    }

    public boolean displayNewDocumentWizard(XJDocument document) {
        // only display for grammar (*.g) files
        if (document != null && document instanceof GrammarDocument) {
            NewWizardDialog dialog = new NewWizardDialog(document.getWindow().getJavaContainer());

            if(dialog.runModal() == XJDialog.BUTTON_OK) {
                ((GrammarWindow)document.getWindow()).loadText(dialog.getGeneratedText());
                return true;
            }
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of org.antlr.works.dialog.NewWizardDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.