Exporting a Sapphire plugin [message #762110] |
Wed, 07 December 2011 10:08  |
Eclipse User |
|
|
|
Hello,
I'm at the point where I would like to export my Sapphire plugin and install it on a client's Eclipse installation.
I'm a bit confused regarding the correct way to do this so Sapphire is supported by the client installation:
Is this something that is done by customBuildCallbacks.xml? Or is the client required to install the Sapphire plugins separately.
Pardon the triviality if that is the case.
Thanks a lot,
Roded
[Updated on: Thu, 08 December 2011 12:13] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Exporting an Sapphire plugin [message #763541 is a reply to message #763360] |
Fri, 09 December 2011 19:04   |
Eclipse User |
|
|
|
Using javac 1.6.0_26 (jdk associated with the sapphire project).
At the moment I have the following files in the src folder.
The uncommented @XmlElementBinding in IXSDValue is the culprit, after commenting it out export works fine.
Is there anything relevant regarding a correct directory structure?
package com.modelity.eclipse.structures.sapphire.report;
import org.eclipse.sapphire.modeling.IModelElement;
import org.eclipse.sapphire.modeling.ModelElementType;
import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
@GenerateImpl
public interface IValue extends IModelElement {
ModelElementType TYPE = new ModelElementType(IValue.class);
}
package com.modelity.eclipse.structures.sapphire.report;
import org.eclipse.sapphire.modeling.ModelElementType;
import org.eclipse.sapphire.modeling.Value;
import org.eclipse.sapphire.modeling.ValueProperty;
import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
@GenerateImpl
//@Label(standard = "Constant")
public interface IXSDConstant extends IValue
{
ModelElementType TYPE = new ModelElementType( IXSDConstant.class );
// *** Constant ***
// @Label(standard = "Constant")
// @CustomXmlValueBinding(impl = ValueNoBinder.class)
ValueProperty PROP_CONSTANT = new ValueProperty(TYPE, "Constant");
Value<String> getConstant();
void setConstant(String value);
}
package com.modelity.eclipse.structures.sapphire.report;
import org.eclipse.sapphire.modeling.ElementProperty;
import org.eclipse.sapphire.modeling.IModelElement;
import org.eclipse.sapphire.modeling.ModelElementHandle;
import org.eclipse.sapphire.modeling.ModelElementType;
import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
import org.eclipse.sapphire.modeling.annotations.Label;
import org.eclipse.sapphire.modeling.annotations.Required;
import org.eclipse.sapphire.modeling.annotations.Type;
import org.eclipse.sapphire.modeling.xml.annotations.XmlElementBinding;
@GenerateImpl
public interface IXSDValue extends IModelElement
{
ModelElementType TYPE = new ModelElementType(IXSDValue.class);
// *** Value ***
@Required
@Label(standard = "Value")
@Type (base = IValue.class,
possible = {
// IXSDSearchPattern.class,
// IXSDList.class,
IXSDConstant.class
// IXSDParameterReference.class,
// IXSDFieldReference.class,
// IXSDFormat.class,
// IXSDChoice.class
}
)
@XmlElementBinding( mappings = @XmlElementBinding.Mapping( element = "constant", type = IXSDConstant.class ))
// @XmlElementBinding (
// mappings = {
// @XmlElementBinding.Mapping( element = "searchPattern", type = IXSDSearchPattern.class ),
//// @XmlElementBinding.Mapping( element = "list", type = IXSDList.class ),
// @XmlElementBinding.Mapping( element = "constant", type = IXSDConstant.class ),
// @XmlElementBinding.Mapping( element = "parameter", type = IXSDParameterReference.class ),
// @XmlElementBinding.Mapping( element = "field", type = IXSDFieldReference.class ),
//// @XmlElementBinding.Mapping( element = "format", type = IXSDFormat.class ),
// @XmlElementBinding.Mapping( element = "choice", type = IXSDChoice.class )
// }
// )
ElementProperty PROP_VALUE = new ElementProperty(TYPE, "Value");
ModelElementHandle<IValue> getValue();
}
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.12198 seconds