Commit d908a70d authored by Anton Hattendorf's avatar Anton Hattendorf
Browse files

added Info message when trying to generate code for NiosIICores

refs 920
parent beddb6d8
......@@ -15,3 +15,4 @@ Export-Package: org.fortiss.af3.multicore,
org.fortiss.af3.multicore.model.impl,
org.fortiss.af3.multicore.model.util,
org.fortiss.af3.multicore.utils
Import-Package: org.conqat.ide.commons.ui.dialog
......@@ -5,8 +5,6 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.af3.multicore.generator.executable;
import static org.fortiss.af3.expression.utils.ExpressionModelElementFactory.funcCall;
import java.util.List;
import org.conqat.lib.commons.collections.Pair;
......@@ -14,6 +12,7 @@ import org.fortiss.af3.component.model.Component;
import org.fortiss.af3.component.model.Port;
import org.fortiss.af3.expression.model.terms.IExpressionTerm;
import org.fortiss.af3.generator.common.model.c.CSourcePackage;
import org.fortiss.af3.multicore.model.NiosIICore;
import org.fortiss.af3.platform.language.executable.ExecutionUnitExecutableBase;
import org.fortiss.af3.platform.language.executable.IInitializableExecutable;
import org.fortiss.af3.platform.language.executable.ITerminatableExecutable;
......@@ -22,11 +21,9 @@ import org.fortiss.af3.platform.model.PlatformConnectorUnit;
import org.fortiss.tooling.kernel.extension.data.ITransformationContext;
/**
* {@link IInitializableExecutable} and {@link ITerminatableExecutable} for the
* generic platform ECU.
* {@link IInitializableExecutable} and {@link ITerminatableExecutable} for the {@link NiosIICore}.
*
* @author hoelzl
* @author wandinger
* @author hattendorf
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 8E408D8D0D8DF90F542C8F146A67E02E
......@@ -42,13 +39,13 @@ public class NiosIICoreExecutable extends
/** {@inheritDoc} */
@Override
public IExpressionTerm getInitialization() {
return funcCall("init_generic_ecu");
return null;
}
/** {@inheritDoc} */
@Override
public IExpressionTerm getTermination() {
return funcCall("term_generic_ecu");
return null;
}
/** {@inheritDoc} */
......
......@@ -7,15 +7,13 @@ package org.fortiss.af3.multicore.generator.transform;
import org.fortiss.af3.multicore.generator.executable.NiosIICoreExecutable;
import org.fortiss.af3.multicore.model.NiosIICore;
import org.fortiss.af3.platform.generic.generator.executable.GenericExecutionUnitExecutable;
import org.fortiss.af3.platform.model.generic.GenericExecutionUnit;
import org.fortiss.tooling.kernel.extension.ITransformationProvider;
import org.fortiss.tooling.kernel.extension.data.ITransformationContext;
/**
* Transformation from {@link GenericExecutionUnit} to {@link GenericExecutionUnitExecutable}.
* Transformation from {@link NiosIICore} to {@link NiosIICoreExecutable}.
*
* @author hoelzl
* @author hattendorf
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: DF6B51BCE299396FB7C2A43D7F39220E
......@@ -44,6 +42,8 @@ public final class NiosIICoreTransformation implements ITransformationProvider {
/** {@inheritDoc} */
@Override
public Object transform(Object source, ITransformationContext context) {
org.conqat.ide.commons.ui.dialog.MessageUtils.showInfo("Nios II Core Generation",
"Code generation for Nios II Multicore systems is currently not supported.");
return new NiosIICoreExecutable((NiosIICore)source);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment