use of org.eclipse.sirius.viewpoint.description.RepresentationDescription in project Palladio-Editors-Sirius by PalladioSimulator.
the class Activator method start.
/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext bundleContext) throws Exception {
Activator.context = bundleContext;
Activator.plugin = this;
Set<Viewpoint> viewpoints = ViewpointRegistry.getInstance().getViewpoints();
// Set viewpoint constants
for (final Viewpoint v : viewpoints) {
if (v.getName().equals(VIEWPOINT_NAME)) {
this.viewpoint = v;
break;
}
}
// Set diagram description constants
for (final RepresentationDescription representationDescription : this.viewpoint.getOwnedRepresentations()) {
if (representationDescription.getName().equals(REPRESENTATION_NAME)) {
this.representationDescription = representationDescription;
break;
}
}
}
use of org.eclipse.sirius.viewpoint.description.RepresentationDescription in project Palladio-Editors-Sirius by PalladioSimulator.
the class Activator method start.
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.
* BundleContext)
*/
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/seff.odesign"));
// Set viewpoint constants
for (final Viewpoint v : viewpoints) {
if (v.getName().equals(VIEWPOINT_NAME)) {
this.viewpoint = v;
break;
}
}
// Set diagram description constants
for (final RepresentationDescription representationDescription : this.viewpoint.getOwnedRepresentations()) {
if (representationDescription.getName().equals(REPRESENTATION_NAME)) {
this.representationDescription = representationDescription;
break;
}
}
}
use of org.eclipse.sirius.viewpoint.description.RepresentationDescription in project Palladio-Editors-Sirius by PalladioSimulator.
the class Activator method start.
/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext bundleContext) throws Exception {
Activator.context = bundleContext;
Activator.plugin = this;
Set<Viewpoint> viewpoints = ViewpointRegistry.getInstance().getViewpoints();
// Set viewpoint constants
for (final Viewpoint v : viewpoints) {
if (v.getName().equals(VIEWPOINT_NAME)) {
this.viewpoint = v;
break;
}
}
// Set diagram description constants
for (final RepresentationDescription representationDescription : this.viewpoint.getOwnedRepresentations()) {
if (representationDescription.getName().equals(REPRESENTATION_NAME)) {
this.representationDescription = representationDescription;
break;
}
}
}
Aggregations