Skip to content

Commit

Permalink
Modified function block workflow to generate files for function block…
Browse files Browse the repository at this point in the history
… web editor

Signed-off-by: shiv12095 <shiv12095@iiitd.ac.in>
  • Loading branch information
shiv12095 committed Jul 25, 2016
1 parent 572827f commit c9609a2
Show file tree
Hide file tree
Showing 30 changed files with 748 additions and 494 deletions.
@@ -0,0 +1,15 @@
FManifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: org.eclipse.vorto.editor.functionblock.ide
Bundle-Vendor: My Company
Bundle-Version: 0.4.0.qualifier
Bundle-SymbolicName: org.eclipse.vorto.editor.functionblock.ide;singleton:=true
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.vorto.editor.functionblock,
org.eclipse.xtext.ide,
org.eclipse.xtext.xbase.ide
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: org.eclipse.vorto.editor.functionblock.ide.contentassist.antlr,
org.eclipse.vorto.editor.functionblock.ide.contentassist.antlr.internal
Import-Package: org.eclipse.vorto.editor.datatype.services,
org.eclipse.vorto.editor.functionblock.services
@@ -0,0 +1,5 @@
source.. = src/,\
src-gen/,\
xtend-gen/
bin.includes = .,\
META-INF/
25 changes: 25 additions & 0 deletions bundles/org.eclipse.vorto.editor.functionblock.ide/pom.xml
@@ -0,0 +1,25 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.eclipse.vorto</groupId>
<artifactId>bundles</artifactId>
<version>0.4.0-SNAPSHOT</version>
</parent>

<artifactId>org.eclipse.vorto.editor.functionblock.ide</artifactId>
<packaging>eclipse-plugin</packaging>

<name>Function Block Editor Plugin IDE</name>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
Expand Up @@ -18,10 +18,11 @@ Require-Bundle: org.eclipse.vorto.editor.functionblock.ui,
org.eclipse.ui.workbench;resolution:=optional,
org.eclipse.xtext.xbase.lib
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: org.eclipse.vorto.editor.functionblock
Import-Package: org.junit.runner;version="4.5.0",
org.junit.runners;version="4.5.0",
Export-Package: org.eclipse.vorto.editor.functionblock.tests
Import-Package: org.hamcrest.core,
org.junit;version="4.5.0",
org.junit.runner;version="4.5.0",
org.junit.runner.manipulation;version="4.5.0",
org.junit.runner.notification;version="4.5.0",
org.junit.runners.model;version="4.5.0",
org.hamcrest.core
org.junit.runners;version="4.5.0",
org.junit.runners.model;version="4.5.0"
@@ -1,5 +1,6 @@
source.. = src/,\
xtend-gen/
xtend-gen/,\
src-gen/
bin.includes = META-INF/,\
.,\
about.html
Expand Up @@ -10,7 +10,7 @@
<artifactId>org.eclipse.vorto.editor.functionblock.tests</artifactId>
<packaging>eclipse-test-plugin</packaging>

<name>Vorto Functionblock Editor Tests</name>
<name>Vorto Function Block Editor Tests</name>

<build>
<plugins>
Expand Down

This file was deleted.

This file was deleted.

Expand Up @@ -12,7 +12,7 @@
* Contributors:
* Bosch Software Innovations GmbH - Please refer to git log
*******************************************************************************/
package org.eclipse.vorto.editor.functionblock;
package org.eclipse.vorto.editor.functionblock.tests;

import org.eclipse.vorto.editor.functionblock.tests.formatter.FunctionblockModelFormatterTest;
import org.eclipse.vorto.editor.functionblock.tests.validator.FBEntityEnumCrossReferenceTest;
Expand Down
@@ -0,0 +1,51 @@
/*******************************************************************************
* Copyright (c) 2014 Bosch Software Innovations GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
* The Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Bosch Software Innovations GmbH - Please refer to git log
*
*******************************************************************************/
/*
* generated by Xtext
*/
package org.eclipse.vorto.editor.functionblock.tests

import com.google.inject.Inject
import org.eclipse.vorto.core.api.model.functionblock.FunctionblockModel
import org.eclipse.vorto.core.api.model.functionblock.impl.FunctionblockPackageImpl
import org.eclipse.xtext.junit4.InjectWith
import org.eclipse.xtext.junit4.XtextRunner
import org.eclipse.xtext.junit4.util.ParseHelper
import org.junit.Assert
import org.junit.BeforeClass
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(typeof(XtextRunner))
@InjectWith(typeof(FunctionblockInjectorProvider))
class FunctionblockParsingTest{

@Inject extension ParseHelper<FunctionblockModel> parserHelper;

@BeforeClass
def static void initializeModel() {
FunctionblockPackageImpl.init();
}

@Test
def void loadModel() {
val result = parserHelper.parse('''
Hello Xtext!
''')
Assert.assertNotNull(result)
}

}
@@ -1,10 +1,10 @@
package org.eclipse.vorto.editor.functionblock.tests.formatter

import com.google.inject.Inject
import org.eclipse.vorto.core.api.model.functionblock.FunctionblockModel
import org.eclipse.vorto.core.api.model.functionblock.impl.FunctionblockPackageImpl
import org.eclipse.vorto.editor.functionblock.FunctionblockInjectorProvider
import org.eclipse.vorto.editor.functionblock.tests.FunctionblockInjectorProvider
import org.eclipse.xtext.formatting.INodeModelFormatter
import org.eclipse.vorto.core.api.model.functionblock.FunctionblockModel
import org.eclipse.xtext.junit4.AbstractXtextTests
import org.eclipse.xtext.junit4.InjectWith
import org.eclipse.xtext.junit4.XtextRunner
Expand Down
@@ -1,32 +1,34 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Vorto Functionblock Editor UI (Incubation)
Bundle-Vendor: Eclipse.org/Vorto
Bundle-Version: 0.4.0.qualifier
Bundle-SymbolicName: org.eclipse.vorto.editor.functionblock.ui;singleton:=true
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.xtext.ui,
org.eclipse.ui.editors;bundle-version="3.5.0",
org.eclipse.ui.ide;bundle-version="3.5.0",
org.eclipse.xtext.ui.shared,
org.eclipse.ui,
org.eclipse.xtext.builder,
org.antlr.runtime,
org.eclipse.xtext.common.types.ui,
org.eclipse.xtext.ui.codetemplates.ui,
org.eclipse.compare,
org.eclipse.vorto.editor.datatype,
org.eclipse.vorto.editor.datatype.ui,
org.eclipse.vorto.editor.functionblock,
org.eclipse.vorto.core,
org.eclipse.xtext.xbase.lib
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: org.eclipse.vorto.editor.functionblock.ui,
org.eclipse.vorto.editor.functionblock.ui.contentassist,
org.eclipse.vorto.editor.functionblock.ui.contentassist.antlr,
org.eclipse.vorto.editor.functionblock.ui.contentassist.antlr.internal,
org.eclipse.vorto.editor.functionblock.ui.internal,
org.eclipse.vorto.editor.functionblock.ui.quickfix
Bundle-ClassPath: templates/,.,icons/
Import-Package: org.apache.log4j
Bundle-Activator: org.eclipse.vorto.editor.functionblock.ui.internal.FunctionblockActivator
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Vorto Functionblock Editor UI (Incubation)
Bundle-Vendor: Eclipse.org/Vorto
Bundle-Version: 0.4.0.qualifier
Bundle-SymbolicName: org.eclipse.vorto.editor.functionblock.ui;singleton:=true
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.xtext.ui,
org.eclipse.ui.editors;bundle-version="3.5.0",
org.eclipse.ui.ide;bundle-version="3.5.0",
org.eclipse.xtext.ui.shared,
org.eclipse.ui,
org.eclipse.xtext.builder,
org.antlr.runtime,
org.eclipse.xtext.common.types.ui,
org.eclipse.xtext.ui.codetemplates.ui,
org.eclipse.compare,
org.eclipse.vorto.editor.datatype,
org.eclipse.vorto.editor.datatype.ui,
org.eclipse.vorto.editor.functionblock,
org.eclipse.vorto.editor.functionblock.ide,
org.eclipse.vorto.core,
org.eclipse.xtext.xbase.lib,
org.eclipse.xtend.lib;resolution:=optional
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: org.eclipse.vorto.editor.functionblock.ui,
org.eclipse.vorto.editor.functionblock.ui.contentassist,
org.eclipse.vorto.editor.functionblock.ui.internal,
org.eclipse.vorto.editor.functionblock.ui.quickfix
Bundle-ClassPath: templates/,
.,
icons/
Import-Package: org.apache.log4j
Bundle-Activator: org.eclipse.vorto.editor.functionblock.ui.internal.FunctionblockActivator

This file was deleted.

@@ -0,0 +1,28 @@
/**
* Copyright (c) 2015 Bosch Software Innovations GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany this distribution.
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
* The Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
* Contributors:
* Bosch Software Innovations GmbH - Please refer to git log
*/
package
/*
* generated by Xtext
*/
org.eclipse.vorto.editor.functionblock.ui

import org.eclipse.ui.plugin.AbstractUIPlugin

/**
* Use this class to register components to be used within the IDE.
*/
class FunctionblockUiModule extends org.eclipse.vorto.editor.functionblock.ui.AbstractFunctionblockUiModule {
new(AbstractUIPlugin plugin) {
super(plugin)
}
}
@@ -0,0 +1 @@
/WebRoot/

0 comments on commit c9609a2

Please sign in to comment.