Package org.eclipse.sapphire.ui.diagram.def

Examples of org.eclipse.sapphire.ui.diagram.def.DiagramEditorPageDef


      PaletteEntry entry = iter.next();
      remove(entry);
    }
   
    // create new entries
    DiagramEditorPageDef diagramPageDef = (DiagramEditorPageDef)diagramPart.definition();
   
    List<DiagramNodeTemplate> nodeTemplates = diagramPart.getVisibleNodeTemplates();
    if (nodeTemplates.isEmpty())
    {
      return;
    }
   
    List<DiagramPaletteDrawer> drawers = new ArrayList<DiagramPaletteDrawer>();
    Map<String, List<ToolEntry>> entries = new HashMap<String, List<ToolEntry>>();
    ElementList<IDiagramPaletteCompartmentDef> compartmentDefs = diagramPageDef.getPaletteCompartments();
    if (compartmentDefs.size() == 0)
    {
      String label = LabelTransformer.transform(DiagramPaletteCompartmentConstants.CONNECTIONS_COMPARTMENT_LABEL,
          CapitalizationType.TITLE_STYLE, true);
      DiagramPaletteDrawer connectionDrawer = new DiagramPaletteDrawer(label, DiagramPaletteCompartmentConstants.CONNECTIONS_COMPARTMENT_ID);
View Full Code Here


        {
          ISapphirePart part = context.find(ISapphirePart.class);
          if (part instanceof SapphireDiagramEditorPagePart)
          {
            SapphireDiagramEditorPagePart diagramPagePart = (SapphireDiagramEditorPagePart)part;
            DiagramEditorPageDef pageDef = diagramPagePart.getPageDef();
            if (pageDef.getLayoutPersistence().content() == LayoutPersistence.WORKSPACE)
            {
              return true;
            }
          }
          return false;
View Full Code Here

        {
          ISapphirePart part = context.find(ISapphirePart.class);
          if (part instanceof SapphireDiagramEditorPagePart)
          {
            SapphireDiagramEditorPagePart diagramPagePart = (SapphireDiagramEditorPagePart)part;
            DiagramEditorPageDef pageDef = diagramPagePart.getPageDef();
            if (pageDef.getLayoutPersistence().content() == LayoutPersistence.SIDE_BY_SIDE)
            {
              return true;
            }
          }
          return false;
View Full Code Here

        {
          ISapphirePart part = context.find(ISapphirePart.class);
          if (part instanceof SapphireDiagramEditorPagePart)
          {
            SapphireDiagramEditorPagePart diagramPagePart = (SapphireDiagramEditorPagePart)part;
            DiagramEditorPageDef pageDef = diagramPagePart.getPageDef();
            if (pageDef.getLayoutPersistence().content() == LayoutPersistence.PROJECT)
            {
              return true;
            }
          }
          return false;
View Full Code Here

        {
            ISapphirePart part = context.find(ISapphirePart.class);
            if (part instanceof SapphireDiagramEditorPagePart)
            {
                SapphireDiagramEditorPagePart diagramPagePart = (SapphireDiagramEditorPagePart)part;
                DiagramEditorPageDef pageDef = diagramPagePart.getPageDef();
                if (pageDef.getConnectionServiceType().content() == ConnectionServiceType.STANDARD)
                {
                    return true;
                }
            }
            return false;
View Full Code Here

    }

  @Override
  protected void compute(Set<String> values)
  {
    DiagramEditorPageDef diagramPageDef = context(DiagramEditorPageDef.class);
    ElementList<IDiagramPaletteCompartmentDef> compartments = diagramPageDef.getPaletteCompartments();
    if (compartments.size() == 0)
    {
      values.add(DiagramPaletteCompartmentConstants.NODES_COMPARTMENT_ID);
      values.add(DiagramPaletteCompartmentConstants.CONNECTIONS_COMPARTMENT_ID);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.diagram.def.DiagramEditorPageDef

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.