Package org.apache.isis.core.commons.exceptions

Examples of org.apache.isis.core.commons.exceptions.IsisException


        fieldById.put(fieldId, new ListOfRootOid());
    }

    public void addElement(final String fieldId, final RootOidDefault elementOid) {
        if (!fieldById.containsKey(fieldId)) {
            throw new IsisException("Field " + fieldId + " not found  in hashtable");
        }

        final ListOfRootOid v = (ListOfRootOid) fieldById.get(fieldId);
        v.add(elementOid);
    }
View Full Code Here


        final ObjectDataVector matches = new ObjectDataVector();
        for (final RootOid oid : instances) {
            final ObjectData instanceData = (ObjectData) loadData(oid);
            // TODO check loader first
            if (instanceData == null) {
                throw new IsisException("No data found for " + oid + " (possible missing file)");
            }
            if (matchesPattern(pattern, instanceData)) {
                matches.addElement(instanceData);
            }
        }
View Full Code Here

        if (spec.canDisplay(new ViewRequirement(content, ViewRequirement.CLOSED))) {
            // View view = spec.createView(new RootObject(rootObject), null);
            final View view = spec.createView(content, new Axes(), -1);
            viewer.setRootView(view);
        } else {
            throw new IsisException();
        }

        viewer.init();

        final String name = userProfiler.getPerspective().getName();
View Full Code Here

        final String exec = program + " " + help;
        try {
            Runtime.getRuntime().exec(exec);
            LOG.debug("executing '" + exec + "'");
        } catch (final IOException e) {
            throw new IsisException("faile to execute '" + exec + "'", e);
        }
    }
View Full Code Here

    public Consent canSet(final ObjectAdapter dragSource) {
        return Veto.DEFAULT;
    }

    public void clear() {
        throw new IsisException("Invalid call");
    }
View Full Code Here

    public boolean isTransient() {
        return adapter != null && adapter.isTransient();
    }

    public void setObject(final ObjectAdapter object) {
        throw new IsisException("Invalid call");
    }
View Full Code Here

    }

    public static Color getColor(final String name) {
        final Color color = getInstance().colorsAndFonts.getColor(name);
        if (color == null) {
            throw new IsisException("No such color: " + name);
        }
        return color;
    }
View Full Code Here

    }

    public static Text getText(final String name) {
        final Text text = getInstance().colorsAndFonts.getText(name);
        if (text == null) {
            throw new IsisException("No such text style: " + name);
        }
        return text;
    }
View Full Code Here

    private Rectangle layoutViews() {
        if (!Thread.currentThread().getName().startsWith("AWT-EventQueue") && !isDotNet()) {
            // REVIEW remove this check and exception when problem with multiple
            // field drawing is resolved
            // (Bug 1)
            throw new IsisException("Drawing with wrong thread: " + Thread.currentThread());
        }
        // overlayView.layout(new Size(rootView.getSize()));
        // rootView.layout(new Size(rootView.getSize()));
        final Size rootViewSize = rootView.getSize();
        overlayView.layout();
View Full Code Here

    @Override
    public void addView(final View view) {
        if (allowSubviewsToBeAdded) {
            subviews.add(view);
        } else {
            throw new IsisException("Can't add view. Do you need to set the allowSubviewsToBeAdded flag?");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.commons.exceptions.IsisException

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.