Package org.eclipse.sapphire.samples.architecture

Examples of org.eclipse.sapphire.samples.architecture.Component


  }

  private void read(DiagramNodePart nodePart)
  {
   
    Component component = (Component)nodePart.getLocalModelElement();
    if (!component.disposed())
    {
      String nodeId = nodePart.getId();
        if (this.nodeBounds.containsKey(nodeId) && this.nodeBounds.get(nodeId) != null)
        {
          nodePart.setNodeBounds(this.nodeBounds.get(nodeId));    
View Full Code Here


    }
  }
 
  private void write(DiagramNodePart nodePart)
  {
    Component component = (Component)nodePart.getLocalModelElement();
    if (!component.disposed())
    {
      if (isNodeLayoutChanged(nodePart))
      {       
        this.architecture.detach(this.componentListener, "/Components/Position/*");
        writeComponentBounds(component, nodePart);
View Full Code Here

    this.componentListener = new FilteredListener<PropertyEvent>()
    {
        @Override
        protected void handleTypedEvent( final PropertyEvent event )
        {
          Component component = event.property().element().nearest(Component.class);
          if (component != null)
          {
            handleNodeLayoutChange(component);
          }
        }
View Full Code Here

    this.architecture.detach(this.componentListener, "/Components/Position/*");
    this.architecture.detach(this.componentDependencyListener, "/Components/Dependencies/ConnectionBendpoints/*");
   
    for (DiagramNodePart nodePart : context( SapphireDiagramEditorPagePart.class ).getNodes())
    {
      Component component = (Component)nodePart.getLocalModelElement();
      if (!component.disposed())
      {
        writeComponentBounds(component, nodePart);
      }
    }
    SapphireDiagramEditorPagePart diagramPart = context( SapphireDiagramEditorPagePart.class );
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.samples.architecture.Component

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.