Examples of DialogWorker


Examples of edu.harvard.wcfia.yoshikoder.util.DialogWorker

        super(yk, ShowConsoleAction.class.getName());
        logFile = YKFS.getYKFS().getLogFile();
    }

    public void actionPerformed(ActionEvent e) {
        dworker = new DialogWorker(yoshikoder){
            protected void doWork() throws Exception {
                String messages = FileUtil.slurp(logFile);
                dia = new MessageDialog(yoshikoder, "Console", messages);
            }
            protected void onError() {
View Full Code Here

Examples of edu.harvard.wcfia.yoshikoder.util.DialogWorker

        documentImporter.setFile(null);
        documentImporter.show();
        String file = documentImporter.getFile();
        if (file == null) return;
        final File f = new File(documentImporter.getDirectory(), file);  
        dworker = new DialogWorker(yoshikoder){
            protected void doWork() throws Exception {
                dia = new ImportDocumentDialog(yoshikoder, f);
            }
            protected void onError(){}
        };
View Full Code Here

Examples of edu.harvard.wcfia.yoshikoder.util.DialogWorker

    public ShowLicenseAction(Yoshikoder yk) {
        super(yk, ShowLicenseAction.class.getName());
    }

    public void actionPerformed(ActionEvent e) {
        dworker = new DialogWorker(yoshikoder){
            protected void doWork() throws Exception {
                if (license==null){
                    InputStream str =
                        ShowLicenseAction.class.getClassLoader()
                        .getResourceAsStream("LICENSE.txt");
View Full Code Here

Examples of edu.harvard.wcfia.yoshikoder.util.DialogWorker

              cnode = (CategoryNode)n;
            else // patternnode
              cnode = (CategoryNode)n.getParent();
            final CategoryNode catnode = cnode;
           
            dworker = new DialogWorker(yoshikoder){
                protected void doWork() throws Exception {
                    DocumentList dl = new DocumentListImpl();
                    dl.add(doc1);
                    dl.add(doc2);
View Full Code Here

Examples of edu.harvard.wcfia.yoshikoder.util.DialogWorker

   
    public void actionPerformed(ActionEvent e) {
        final YKDocument doc = yoshikoder.getSelectedDocument();
        if (doc == null) return;
       
        dworker = new DialogWorker(yoshikoder){
            protected void doWork() throws Exception {
                TokenizationCache tcache = yoshikoder.getTokenizationCache();
                TokenList tl = tcache.getTokenList(doc);
                if (tl == null){
                    tl = TokenizationService.getTokenizationService().tokenize(doc);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.