use of org.eclipse.sirius.viewpoint.description.Viewpoint in project Palladio-Editors-Sirius by PalladioSimulator.
the class Activator method stop.
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.
* BundleContext)
*/
public void stop(BundleContext context) throws Exception {
plugin = null;
if (viewpoints != null) {
for (final Viewpoint viewpoint : viewpoints) {
ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint);
}
viewpoints.clear();
viewpoints = null;
}
super.stop(context);
}
use of org.eclipse.sirius.viewpoint.description.Viewpoint in project Palladio-Editors-Sirius by PalladioSimulator.
the class Activator method stop.
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
@Override
public void stop(final BundleContext context) throws Exception {
plugin = null;
if (viewpoints != null) {
for (final Viewpoint viewpoint : viewpoints) {
ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint);
}
viewpoints.clear();
viewpoints = null;
}
super.stop(context);
}
use of org.eclipse.sirius.viewpoint.description.Viewpoint 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