Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.KernelRuntimeException


                    directoryFile = attribute.directory.asFile();
                    fileFilter = attribute.fileFilter.getExpression();
                    subdirs = ((BooleanToken) attribute.subdirs.getToken())
                            .booleanValue();
                } catch (IllegalActionException e) {
                    throw new KernelRuntimeException(e,
                            "Unable to get boolean " + "token.");
                }
            }

            if (directoryFile == null) {
                ComponentDialog dialog = new ComponentDialog(
                        TransformationEditor.this, "Select Model Directory",
                        new Configurer(_attribute));
                if (dialog.buttonPressed().equalsIgnoreCase("OK")) {
                    try {
                        directoryFile = _attribute.directory.asFile();
                        fileFilter = _attribute.fileFilter.getExpression();
                        subdirs = ((BooleanToken) _attribute.subdirs.getToken())
                                .booleanValue();
                    } catch (IllegalActionException e) {
                        throw new KernelRuntimeException(e, "Unable to get "
                                + "boolean token.");
                    }
                }
            }
View Full Code Here


            try {
                new MatchResultTableau.Factory(entity,
                        entity.uniqueName("_tableauFactory"))
                .setPersistent(false);
            } catch (KernelException e) {
                throw new KernelRuntimeException(e, "Unexpected exception");
            }
        }
        for (Object subentity : entity.entityList(CompositeEntity.class)) {
            _setTableauFactory(originator, (CompositeEntity) subentity);
        }
View Full Code Here

            _tableModel.addRow(new Object[] { rowCount + 1, row, row });
            if (rowCount == 0) {
                _table.getSelectionModel().addSelectionInterval(0, 0);
            }
        } catch (Exception e) {
            throw new KernelRuntimeException(e, "Unable to create a new "
                    + "criterion or operation instance.");
        }
    }
View Full Code Here

        if (visible && _attribute != null) {
            try {
                _initialIngredientList = _attribute.getIngredientList();
                resetTable(_initialIngredientList);
            } catch (MalformedStringException e) {
                throw new KernelRuntimeException(e, "Attribute \""
                        + _attribute.getName() + "\" of " + "entity "
                        + _target.getName() + " is malformed.");
            }
        }
        super.setVisible(visible);
View Full Code Here

                .getIngredientClass();
        GTIngredient ingredient;
        try {
            ingredient = _createTemporaryIngredient(ingredientClass);
        } catch (Exception e) {
            throw new KernelRuntimeException(e,
                    "Unable to create criterion or "
                            + "operation from class \""
                            + ingredientClass.getName() + "\".");
        }
View Full Code Here

                    try {
                        viewer.setPage(_help);
                        viewer.pack();
                        viewer.show();
                    } catch (IOException e2) {
                        throw new KernelRuntimeException("Cannot open help "
                                + "file.");
                    }
                }
            }
        }
View Full Code Here

                    _setIconDescription(_COLLAPSING_ICON);
                } else {
                    _setIconDescription(_NON_COLLAPSING_ICON);
                }
            } catch (IllegalActionException e) {
                throw new KernelRuntimeException(e,
                        "Cannot get token from the attribute.");
            }
        }
    }
View Full Code Here

                    return null;
                }

                return modelFile;
            } catch (IllegalActionException e) {
                throw new KernelRuntimeException(e, "Cannot obtain model file.");
            }
        }
View Full Code Here

            System.out.println("Writing " + file);
            try {
                effigy.writeFile(file);
                effigy.setModified(false);
            } catch (IOException ex) {
                throw new KernelRuntimeException(effigy, "Failed to write "
                        + file);
            }
        }
        return true;
    }
View Full Code Here

            if (!_fireAtCurrentTimeCalled) {
                try {
                    _fireAtCurrentTimeCalled = true;
                    getDirector().fireAtCurrentTime(Receiver.this);
                } catch (IllegalActionException ex) {
                    throw new KernelRuntimeException(Receiver.this, null, ex,
                            "fireAtCurrentTime() failed.");
                }
            }

            synchronized (Receiver.this) {
View Full Code Here

TOP

Related Classes of ptolemy.kernel.util.KernelRuntimeException

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.