Commit 152a1990 authored by Simon Barner's avatar Simon Barner
Browse files

Moving org.fortiss.af3.platform.beagle.ui

Issue-Ref: 3861
Issue-Url: https://af3-developer.fortiss.org/issues/3861

Signed-off-by: Simon Barner's avatarSimon Barner <barner@fortiss.org>
parents a20016ca 3d10f418
Pipeline #19162 failed with stages
in 3 minutes and 43 seconds
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="build"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.fortiss.af3.platform.beagle.ui</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.systemfocus.tooling.codereview.builder.CodeReviewBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.systemfocus.tooling.codereview.builder.RemoveWarningsBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.systemfocus.tooling.codereview.builder.GuidelinesCheckBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.systemfocus.tooling.codereview.nature.CodeReviewNature</nature>
</natures>
</projectDescription>
.settings @ d117b3db
Subproject commit d117b3db1742a745f515d2b6c52cc9a02e57c299
Manifest-Version: 1.0
Automatic-Module-Name: org.fortiss.af3.platform.beagle.ui
Bundle-ManifestVersion: 2
Bundle-Name: AF3 Platform BeagleBone UI
Bundle-SymbolicName: org.fortiss.af3.platform.beagle.ui;singleton:=true
Bundle-Version: 2.16.0.qualifier
Bundle-Activator: org.fortiss.af3.platform.beagle.ui.AF3PlatformBeagleUIActivator
Require-Bundle: org.fortiss.af3.platform.beagle;bundle-version="2.16.0";visibility:=reexport,
org.fortiss.af3.platform.ui;bundle-version="2.16.0";visibility:=reexport
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-Vendor: fortiss GmbH
Export-Package: org.fortiss.af3.platform.beagle.ui
# (c) 2013 fortiss GmbH
bin.includes = .,\
META-INF/,\
plugin.xml,\
icons/
source.. = src/
output.. = build/
documentation.html 2ddea20fd1a6d2cdff86e9dafd3cd991c4a7fada RED
<html><body>
<H1>Developer Documentation for <I>org.fortiss.af3.platform.beagle.ui</I></H1>
<P>// TODO
</body></html>
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!-- (c) 2013 fortiss GmbH -->
<plugin>
<extension
point="org.fortiss.tooling.kernel.ui.modelElementHandler">
<modelElementHandler
handler="org.fortiss.af3.platform.beagle.ui.handler.BeagleBoneExecutionUnitHandler">
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.BeagleBoneExecutionUnit">
</modelElementClass>
</modelElementHandler>
<modelElementHandler
handler="org.fortiss.af3.platform.beagle.ui.handler.UDPMasterSlaveMutliCastNetworkHandler">
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.UDPMasterSlaveMultiCastNetwork">
</modelElementClass>
</modelElementHandler>
<modelElementHandler
handler="org.fortiss.af3.platform.beagle.ui.handler.UDPMasterSlaveTransceiverHandler">
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.UDPMasterSlaveTransceiver">
</modelElementClass>
</modelElementHandler>
<modelElementHandler
handler="org.fortiss.af3.platform.beagle.ui.handler.VirtualKeyboardInputReceiverHandler">
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.VirtualKeyboardInput">
</modelElementClass>
</modelElementHandler>
<modelElementHandler
handler="org.fortiss.af3.platform.beagle.ui.handler.SerialInputReceiverHandler">
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.SerialInput">
</modelElementClass>
</modelElementHandler>
<modelElementHandler
handler="org.fortiss.af3.platform.beagle.ui.handler.SerialOutputTransmitterHandler">
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.SerialOutput">
</modelElementClass>
</modelElementHandler>
<modelElementHandler
handler="org.fortiss.af3.platform.beagle.ui.handler.ConsoleOutputTransmitterHandler">
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.ConsoleOutput">
</modelElementClass>
</modelElementHandler>
<modelElementHandler
handler="org.fortiss.af3.platform.beagle.ui.handler.SimplAsciiInputReceiverHandler">
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.SimplAsciiInput">
</modelElementClass>
</modelElementHandler>
<modelElementHandler
handler="org.fortiss.af3.platform.beagle.ui.handler.SimplAsciiOutputReceiverHandler">
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.SimplAsciiOutput">
</modelElementClass>
</modelElementHandler>
</extension>
<extension
point="org.fortiss.tooling.kernel.modelPrototypeProvider">
<modelPrototypeProvider
provider="org.fortiss.af3.platform.beagle.ui.prototypes.PrototypeProvider">
</modelPrototypeProvider>
</extension>
<extension
point="org.fortiss.tooling.kernel.ui.editPartFactory">
<editPartFactory
factory="org.fortiss.af3.platform.beagle.ui.editpart.EditPartFactory">
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.BeagleBoneExecutionUnit">
</modelElementClass>
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.UDPMasterSlaveMultiCastNetwork">
</modelElementClass>
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.UDPMasterSlaveTransceiver">
</modelElementClass>
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.SerialInput">
</modelElementClass>
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.SerialOutput">
</modelElementClass>
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.ConsoleOutput">
</modelElementClass>
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.VirtualKeyboardInput">
</modelElementClass>
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.SimplAsciiInput">
</modelElementClass>
<modelElementClass
modelElementClass="org.fortiss.af3.platform.beagle.model.SimplAsciiOutput">
</modelElementClass>
</editPartFactory>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertySections">
<propertySections
contributorId="org.fortiss.tooling.kernel.ui.properties.Contributor">
<propertySection
afterSection="org.fortiss.tooling.kernel.ui.internal.properties.NamedCommentedPropertySection"
class="org.fortiss.af3.platform.beagle.ui.properties.BeagleBoneExecutionUnitPropertySection"
enablesFor="1"
id="org.fortiss.af3.platform.beagle.ui.properties.BeagleBoneExecutionUnitPropertySection"
tab="org.fortiss.tooling.kernel.ui.property.tab.general">
<input
type="org.fortiss.af3.platform.beagle.model.BeagleBoneExecutionUnit">
</input>
</propertySection>
<propertySection
afterSection="org.fortiss.tooling.kernel.ui.internal.properties.NamedCommentedPropertySection"
class="org.fortiss.af3.platform.beagle.ui.properties.UDPMasterSlaveMultiCastNetworkPropertySection"
enablesFor="1"
id="org.fortiss.af3.platform.beagle.ui.properties.UDPMasterSlaveMultiCastNetworkPropertySection"
tab="org.fortiss.tooling.kernel.ui.property.tab.general">
<input
type="org.fortiss.af3.platform.beagle.model.UDPMasterSlaveMultiCastNetwork">
</input>
</propertySection>
<propertySection
afterSection="org.fortiss.tooling.kernel.ui.internal.properties.NamedCommentedPropertySection"
class="org.fortiss.af3.platform.beagle.ui.properties.UDPMasterSlaveTransceiverPropertySection"
enablesFor="1"
id="org.fortiss.af3.platform.beagle.ui.properties.UDPMasterSlaveTransceiverPropertySection"
tab="org.fortiss.tooling.kernel.ui.property.tab.general">
<input
type="org.fortiss.af3.platform.beagle.model.UDPMasterSlaveTransceiver">
</input>
</propertySection>
<propertySection
afterSection="org.fortiss.tooling.kernel.ui.internal.properties.NamedCommentedPropertySection"
class="org.fortiss.af3.platform.beagle.ui.properties.SerialDevicePropertySection"
enablesFor="1"
id="org.fortiss.af3.platform.beagle.ui.properties.SerialDevicePropertySection"
tab="org.fortiss.tooling.kernel.ui.property.tab.general">
<input
type="org.fortiss.af3.platform.beagle.model.SerialDevice">
</input>
</propertySection>
<propertySection
afterSection="org.fortiss.tooling.kernel.ui.internal.properties.NamedCommentedPropertySection"
class="org.fortiss.af3.platform.beagle.ui.properties.SimplAsciiDevicePropertySection"
enablesFor="1"
id="org.fortiss.af3.platform.beagle.ui.properties.SimplAsciiDevicePropertySection"
tab="org.fortiss.tooling.kernel.ui.property.tab.general">
<input
type="org.fortiss.af3.platform.beagle.model.SimplAsciiDevice">
</input>
</propertySection>
<propertySection
afterSection="org.fortiss.tooling.kernel.ui.internal.properties.NamedCommentedPropertySection"
class="org.fortiss.af3.platform.beagle.ui.properties.VirtualKeyBoardInputPropertySection"
enablesFor="1"
id="org.fortiss.af3.platform.beagle.ui.properties.VirtualKeyBoardInputPropertySection"
tab="org.fortiss.tooling.kernel.ui.property.tab.general">
<input
type="org.fortiss.af3.platform.beagle.model.VirtualKeyboardInput">
</input>
</propertySection>
</propertySections>
</extension>
</plugin>
AF3PlatformBeagleUIActivator.java d8128597167f25ee78697e7dd18653f79b56a027 GREEN
DefaultStyle.java 64d407106e3aed9f09efee51e352574f689fc6fc GREEN
/*-------------------------------------------------------------------------+
| Copyright 2011 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.beagle.ui;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle.
*
* @author hoelzl
*/
public class AF3PlatformBeagleUIActivator extends AbstractUIPlugin {
/** The plug-in ID. */
public static final String PLUGIN_ID =
AF3PlatformBeagleUIActivator.class.getPackage().getName(); // $NON-NLS-1$
/** The shared instance. */
private static AF3PlatformBeagleUIActivator plugin;
/** {@inheritDoc} */
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
/** {@inheritDoc} */
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/** Returns the shared instance. */
public static AF3PlatformBeagleUIActivator getDefault() {
return plugin;
}
/** Returns the image descriptor for the given icon file. */
public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID, path);
}
}
/*-------------------------------------------------------------------------+
| Copyright 2011 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.beagle.ui;
import static org.eclipse.wb.swt.SWTResourceManager.getColor;
import org.eclipse.swt.graphics.Color;
import org.fortiss.af3.platform.model.ExecutionUnit;
/**
* Default color style constants.
*
* @author hoelzl
*/
public final class DefaultStyle {
/** {@link ExecutionUnit} background color. */
public static Color EU_BACKGROUND = getColor(225, 225, 225);
/** {@link ExecutionUnit} foreground color. */
public static Color EU_FOREGROUND = getColor(72, 72, 72);
}
EditPartFactory.java 1536455fe2430cb8b2c927e572e02e21ba539729 GREEN
/*-------------------------------------------------------------------------+
| Copyright 2011 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.beagle.ui.editpart;
import org.eclipse.gef.EditPart;
import org.eclipse.swt.graphics.Color;
import org.fortiss.af3.platform.beagle.model.BeagleBoneExecutionUnit;
import org.fortiss.af3.platform.beagle.model.ConsoleOutput;
import org.fortiss.af3.platform.beagle.model.SerialInput;
import org.fortiss.af3.platform.beagle.model.SerialOutput;
import org.fortiss.af3.platform.beagle.model.SimplAsciiInput;
import org.fortiss.af3.platform.beagle.model.SimplAsciiOutput;
import org.fortiss.af3.platform.beagle.model.UDPMasterSlaveMultiCastNetwork;
import org.fortiss.af3.platform.beagle.model.UDPMasterSlaveTransceiver;
import org.fortiss.af3.platform.beagle.model.VirtualKeyboardInput;
import org.fortiss.af3.platform.beagle.ui.DefaultStyle;
import org.fortiss.af3.platform.model.PlatformConnectorUnit;
import org.fortiss.af3.platform.ui.editpart.generic.ExecutionUnitEditPart;
import org.fortiss.af3.platform.ui.editpart.generic.StickyPlatformConnectorUnitEditPart;
import org.fortiss.af3.platform.ui.editpart.generic.TransmissionUnitDefaultEditPart;
import org.fortiss.tooling.kernel.ui.extension.IEditPartFactory;
/**
* {@link org.eclipse.gef.EditPartFactory} for the BeagleBone platform.
*
* @author hoelzl
*/
public final class EditPartFactory implements IEditPartFactory {
/** {@inheritDoc} */
@Override
public EditPart createEditPart(EditPart context, Object model) {
if(model instanceof BeagleBoneExecutionUnit) {
return new ExecutionUnitEditPart((BeagleBoneExecutionUnit)model) {
/** {@inheritDoc} */
@Override
protected Color getBackgroundColor() {
return DefaultStyle.EU_BACKGROUND;
}
/** {@inheritDoc} */
@Override
protected Color getForegroundColor() {
return DefaultStyle.EU_FOREGROUND;
}
};
} else if(model instanceof UDPMasterSlaveMultiCastNetwork) {
return new TransmissionUnitDefaultEditPart((UDPMasterSlaveMultiCastNetwork)model);
} else if(model instanceof SerialInput || model instanceof SimplAsciiInput ||
model instanceof VirtualKeyboardInput || model instanceof SerialOutput ||
model instanceof SimplAsciiOutput || model instanceof UDPMasterSlaveTransceiver ||
model instanceof ConsoleOutput) {
return new StickyPlatformConnectorUnitEditPart((PlatformConnectorUnit)model);
}
return null;
}
}
BeagleBoneExecutionUnitHandler.java 18c8d7cdfc4f62fea17181ecd5a4c7f7678ebce2 GREEN
ConsoleOutputTransmitterHandler.java ce6c89cf109386bb6181d8ea7803f942e7a6cd83 GREEN
SerialInputReceiverHandler.java 19c6505e1cdc3a58f97e0c3b6648e4290b71a260 GREEN
SerialOutputTransmitterHandler.java 2c10b869b611b365b98a5dae5a549358ff93e1de GREEN
SimplAsciiInputReceiverHandler.java a22172b899be675fcddf6b67834db90603b0e782 GREEN
SimplAsciiOutputReceiverHandler.java db595f2e11de4c49f9e84f3ea86d346a0263784d GREEN
UDPMasterSlaveMutliCastNetworkHandler.java d966d4c653d51fdd86a0fe3984ddd1bd5815c0c3 GREEN
UDPMasterSlaveTransceiverHandler.java 7d43a7406dec2324c28809a7348dbe08364161a0 GREEN
VirtualKeyboardInputReceiverHandler.java e18c3a544cfcaa18210702e2aaa377acec7bdc40 GREEN
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