Package org.eclipse.sapphire.ui

Examples of org.eclipse.sapphire.ui.ISapphirePart


    }

  @Override
  protected Object run(Presentation context)
  {
        final ISapphirePart part = getPart();
      ShapeFactoryPart shapeFactory = (ShapeFactoryPart)part.parent();
      Element element = part.getLocalModelElement();
      ElementList<?> list = shapeFactory.getModelElementList();
    list.moveDown(element);
    SapphireDiagramEditorPagePart editorPart = part.nearest(SapphireDiagramEditorPagePart.class);
    editorPart.setSelections(Collections.singletonList(part), true);
    refreshEnablement();
    return null;
  }
View Full Code Here


{
   
    @Override
    protected Object run(Presentation context)
    {
        ISapphirePart part = context.part();
        Element element = part.getModelElement();
        element.adapt( SourceEditorService.class ).show( element, null );
        return null;
    }
View Full Code Here

       
        PropertiesViewContributionPart propertiesViewContribution = null;
       
        if (selections.size() == 1)
        {
          ISapphirePart selection = selections.get(0);
       
          if( selection == SapphireDiagramEditorPagePart.this )
          {
              propertiesViewContribution = this.propertiesViewContributionManager.getPropertiesViewContribution();
          }
View Full Code Here

    }

    public DiagramNodePart getNodePart()
  {
    DiagramNodePart nodePart = null;
    ISapphirePart part = this;
    while (part != null) {
      if (part instanceof DiagramNodePart) {
        nodePart = (DiagramNodePart)part;
        break;
      }
      part = part.parent();
    }
    return nodePart;
  }
View Full Code Here

public final class RestoreDefaultsActionHandlerCondition extends SapphireCondition
{
    public boolean evaluate()
    {
        final ISapphirePart part = getPart();
       
        if( part instanceof SectionPart )
        {
            final Set<Property> properties = new HashSet<Property>();
            collectProperties( (SectionPart) part, properties );       
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.ISapphirePart

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.