Changeset 812


Ignore:
Timestamp:
Jul 31, 2012 12:13:28 PM (12 years ago)
Author:
Anya Helene Bagge
Message:

The memo caching framework

Location:
trunk/magnolia-eclipse
Files:
12 added
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/magnolia-eclipse/META-INF/MANIFEST.MF

    r797 r812  
    2727 rascal_eclipse;bundle-version="0.4.19";visibility:=reexport,
    2828 org.eclipse.ui.forms;bundle-version="3.5.100",
    29  org.eclipse.core.filesystem
     29 org.eclipse.core.filesystem,
     30 org.junit
    3031Bundle-RequiredExecutionEnvironment: JavaSE-1.6
    3132Import-Package: org.eclipse.ui.console,
  • trunk/magnolia-eclipse/src/org/magnolialang/compiler/ICompiler.java

    r709 r812  
    33import org.eclipse.imp.pdb.facts.IValue;
    44import org.eclipse.imp.pdb.facts.type.Type;
    5 import org.magnolialang.errors.FactNotAvailableException;
     5import org.magnolialang.errors.FactNotAvailableError;
    66import org.magnolialang.nullness.Nullable;
    77import org.rascalmpl.interpreter.Evaluator;
     
    2626         *            Name of the requested entity
    2727         * @return The associate fact
    28          * @throws FactNotAvailableException
     28         * @throws FactNotAvailableError
    2929         *             if fact was not found / couldn't be produced
    3030         */
     
    5555         *
    5656         * @return The fact value
    57          * @throws FactNotAvailableException
     57         * @throws FactNotAvailableError
    5858         *             if fact was not found / couldn't be produced
    5959         * @throws Exception
  • trunk/magnolia-eclipse/src/org/magnolialang/eclipse/commands/GenerateCxxCode.java

    r796 r812  
    6767                                        }
    6868                                        long t2 = System.currentTimeMillis();
    69                                         System.err.printf("Generate C++ Code: %dms refresh + %dms work = %dms total\n", t1 - t0, t2 - t1, t2 - t0);
     69                                        System.err.printf("Generate C++ Code: %dms refresh + %dms work = %dms total%n", t1 - t0, t2 - t1, t2 - t0);
    7070                                        return Status.OK_STATUS;
    7171                                }
  • trunk/magnolia-eclipse/src/org/magnolialang/errors/FactNotAvailableError.java

    r810 r812  
    33import org.eclipse.imp.pdb.facts.ISourceLocation;
    44
    5 public class FactNotAvailableException extends ImplementationError {
     5public class FactNotAvailableError extends ImplementationError {
    66        private static final long       serialVersionUID        = -2802661086018099176L;
    77
    88
    9         public FactNotAvailableException(String factName) {
     9        public FactNotAvailableError(String factName) {
    1010                super(factName);
    1111        }
    1212
    1313
    14         public FactNotAvailableException(String factName, Throwable cause) {
     14        public FactNotAvailableError(String factName, Throwable cause) {
    1515                super(factName, cause);
    1616        }
    1717
    1818
    19         public FactNotAvailableException(String factName, ISourceLocation loc) {
     19        public FactNotAvailableError(String factName, ISourceLocation loc) {
    2020                super(factName, loc);
    2121        }
  • trunk/magnolia-eclipse/src/org/magnolialang/infra/ConsoleInfra.java

    r808 r812  
    7777        public void logException(String msg, Throwable t) {
    7878                System.err.println("error: " + ((t != null) ? t.toString() : "no exception") + " (" + ((msg != null) ? msg : "no details") + ")");
    79                 t.printStackTrace();
     79                if(t != null)
     80                        t.printStackTrace();
    8081        }
    8182
  • trunk/magnolia-eclipse/src/org/magnolialang/magnolia/MagnoliaCompiler.java

    r745 r812  
    1313import org.magnolialang.compiler.IXRefResolver;
    1414import org.magnolialang.eclipse.OptionsProducer;
    15 import org.magnolialang.errors.FactNotAvailableException;
     15import org.magnolialang.errors.FactNotAvailableError;
    1616import org.magnolialang.errors.ImplementationError;
    1717import org.magnolialang.errors.RascalErrors;
     
    9292
    9393                if(fact == null)
    94                         throw new FactNotAvailableException(key.toString() + ":" + name.toString());
     94                        throw new FactNotAvailableError(key.toString() + ":" + name.toString());
    9595
    9696                return fact;
  • trunk/magnolia-eclipse/src/org/magnolialang/testutil/MagnoliaCompiler.java

    r807 r812  
    1212import org.magnolialang.compiler.ICompiler;
    1313import org.magnolialang.compiler.IXRefResolver;
    14 import org.magnolialang.errors.FactNotAvailableException;
     14import org.magnolialang.errors.FactNotAvailableError;
    1515import org.magnolialang.errors.RascalErrors;
    1616import org.magnolialang.infra.ConsoleInfra;
     
    101101
    102102                if(fact == null)
    103                         throw new FactNotAvailableException(key.toString() + ":" + name.toString());
     103                        throw new FactNotAvailableError(key.toString() + ":" + name.toString());
    104104
    105105                return fact;
Note: See TracChangeset for help on using the changeset viewer.