Package ca.nengo.ui.lib.actions

Examples of ca.nengo.ui.lib.actions.ActionException


            } catch (InvocationTargetException e) {
                e.getTargetException().printStackTrace();
            } catch (Exception e) {
                e.printStackTrace();
                throw new ActionException("Could not apply layout: " + e.getMessage(), e);
            }

            layout.initialize(getLayoutBounds());

            if (layout.isIncremental()) {
View Full Code Here


        }

        @Override
        protected void action() throws ActionException {
            if (!restoreNodeLayout()) {
                throw new ActionException("Could not restore layout");
            }
        }
View Full Code Here

            String name = JOptionPane.showInputDialog(UIEnvironment.getInstance(), "Name");

            if (name != null) {
                saveNodeLayout();
            } else {
                throw new ActionException("Could not get layout name", false);
            }

        }
View Full Code Here

    }

    assertMsg.append("*** Stack Trace *** \n");
    exceptionToString(assertMsg, exception);
    if (exception instanceof ActionException) {
      ActionException actionException = (ActionException) exception;
      if (actionException.getTargetException() != null) {
        assertMsg.append("*** Target Exception *** \n");
        exceptionToString(assertMsg, actionException.getTargetException());
      }
    }

    if (msg == null || "".equals(msg)) {
      msg = "Exception";
View Full Code Here

    }

    @Override
    protected void action() throws ActionException {
      if (getModel().isCollectingSpikes())
        throw new ActionException("Already collecting spikes");
      else
        collectSpikes(true);
    }
View Full Code Here

    }

    @Override
    protected void action() throws ActionException {
      if (!getModel().isCollectingSpikes())
        throw new ActionException("Already not collecting spikes");
      else
        collectSpikes(false);

    }
View Full Code Here

                UINeoNode nodeUI = nodeContainer.addNodeModel((Node) objLoaded);
                if (nodeUI instanceof UINodeViewable) {
                    ((UINodeViewable) (nodeUI)).openViewer();
                }
            } catch (ContainerException e) {
                throw new ActionException(e);
            }
        } else {
            UserMessages.showError("File does not contain a Node");
        }
View Full Code Here

            float start = (Float) properties.getValue(pStart);
            float end = (Float) properties.getValue(pEnd);
            float increment = (Float) properties.getValue(pIncrement);

            if (increment == 0) {
                throw new ActionException("Please use a non-zero increment");
            }

            DialogPlotter plotter = new DialogPlotter(dialogParent);

            try {
View Full Code Here

                UINeoNode nodeUI = container.addNodeModel(node);
                if (nodeUI instanceof UINodeViewable) {
                    ((UINodeViewable) (nodeUI)).openViewer();
                }
            } catch (ContainerException e) {
                throw new ActionException(e.getMessage(), e);
            }
        } else {
            throw new ActionException("Sorry we do not support adding that type of object yet");
        }

    }
View Full Code Here

            simulatorActivity.doAction();

        } catch (ConfigException e) {
            e.defaultHandleBehavior();

            throw new ActionException("Simulator configuration not complete", false, e);

        }

    }
View Full Code Here

TOP

Related Classes of ca.nengo.ui.lib.actions.ActionException

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.