Package org.erlide.wrangler.refactoring.exception

Examples of org.erlide.wrangler.refactoring.exception.WranglerException


            } else {
                try {
                    fieldCount = ((OtpErlangLong) ((OtpErlangTuple) wranglerResult)
                            .elementAt(1)).intValue();
                } catch (final OtpErlangRangeException e) {
                    throw new WranglerException(e.getMessage());
                }
            }
            stateFuns = resultTuple.elementAt(2);
            setSuccessful();
        }
View Full Code Here


     */
    public ErlTextMemberSelection(final ITextSelection selection, final ITextEditor editor)
            throws WranglerException {
        final IEditorInput input = editor.getEditorInput();
        if (!(input instanceof IFileEditorInput)) {
            throw new WranglerException("Can not refactor external modules!");
        }
        document = editor.getDocumentProvider().getDocument(input);
        final IFileEditorInput fileInput = (IFileEditorInput) input;
        final IFile theFile = fileInput.getFile();
        store(selection, theFile, document);
View Full Code Here

                    final IErlModule module = ErlangEngine.getInstance().getModel()
                            .findModule(file);
                    wranglerSelection = new ErlModuleSelection(module, file);
                } else {
                    wranglerSelection = null;
                    throw new WranglerException("Please select an Erlang element!");
                }
            } else {
                wranglerSelection = null;
                throw new WranglerException("Please select an Erlang element!");

            }
        } catch (final ClassCastException e) {
            ErlLogger.error(e);
        }
View Full Code Here

TOP

Related Classes of org.erlide.wrangler.refactoring.exception.WranglerException

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.