Package org.eclipse.sapphire.ui

Examples of org.eclipse.sapphire.ui.SapphirePart$LabelChangedEvent


          {
            editPart = (EditPart) ((IAdaptable) object).getAdapter(EditPart.class);           
          }
          if (editPart != null && editPart.getModel() instanceof DiagramModelBase)
          {
            SapphirePart sp = ((DiagramModelBase)editPart.getModel()).getSapphirePart();
            partList.add(sp);
            editPartList.add((GraphicalEditPart)editPart);
          }
        }
        // If the properties sheet has multiple tabs, switching tabs would trigger selection changed
View Full Code Here


                                }
           
                                @Override
                                protected Object evaluate()
                                {
                                    SapphirePart previous = null;
                                   
                                    for( final SapphirePart part : form.children().all() )
                                    {
                                        if( part == SeparatorPart.this )
                                        {
View Full Code Here

                throw new RuntimeException( invalidPath.format( pathString ) );
            }
        }
       
        ISapphirePart ancestor = parent();
        SapphirePart highestUninitializedAncestor = null;
       
        while( ancestor instanceof SapphirePart && ! ( (SapphirePart) ancestor ).initialized() )
        {
            highestUninitializedAncestor = (SapphirePart) ancestor;
            ancestor = ancestor.parent();
        }
       
        if( highestUninitializedAncestor == null )
        {
            initListSelectionServiceListener();
        }
        else
        {
            highestUninitializedAncestor.attach
            (
                new FilteredListener<PartInitializationEvent>()
                {
                    @Override
                    protected void handleTypedEvent( final PartInitializationEvent event )
View Full Code Here

 
  private PropertyEditorAssistContext getAssistContext()
  {
    if (this.assistContext == null)
    {
        SapphirePart parentPart = getContainerPart();
     
          this.assistContext = new PropertyEditorAssistContext( parentPart, page().getSite().getShell() );
          this.problem = part().content();
            for( PropertyEditorAssistContributor c : this.contributors )
            {
View Full Code Here

    }
   
    @Override
    public void contribute( final PropertyEditorAssistContext context )
    {
      SapphirePart part = context.getPart();
        Property property0 = null;
        boolean propertyReadOnly = false;
        if (part instanceof PropertyEditorPart)
        {
          property0 = ((PropertyEditorPart)part).property();
View Full Code Here

    }
   
    @Override
    public void contribute( final PropertyEditorAssistContext context )
    {
      SapphirePart part = context.getPart();
        final Element element = part.getLocalModelElement();
        Property property = null;
        if (part instanceof PropertyEditorPart)
        {
          property = ((PropertyEditorPart)part).property();
        }
View Full Code Here

    }
   
    @Override
    public void contribute( final PropertyEditorAssistContext context )
    {
      SapphirePart part = context.getPart();
        Property property0 = null;
        if (part instanceof PropertyEditorPart)
        {
          property0 = ((PropertyEditorPart)part).property();
         
        }
        else if (part instanceof WithPart)
        {
          property0 = ((WithPart)part).property();
        }
        final Element element = part.getLocalModelElement();
       
        final SourceEditorService sourceEditorService = element.adapt( SourceEditorService.class );
       
        if( sourceEditorService == null )
        {
View Full Code Here

    @Override
    public FunctionResult evaluate( final FunctionContext context )
    {
        if( context instanceof PartFunctionContext )
        {
            final SapphirePart part = ( (PartFunctionContext) context ).part();
            final MasterDetailsEditorPagePart page = part.nearest( MasterDetailsEditorPagePart.class );
           
            if( page != null )
            {
                final Element element = part.getLocalModelElement();
               
                if( element instanceof Item )
                {
                    final Item item = (Item) element;
                    final MasterDetailsEditorPageState state = page.state();
View Full Code Here

    }
   
    @Override
    public void contribute( final PropertyEditorAssistContext context )
    {
      SapphirePart part = context.getPart();
        Property property = null;
        if (part instanceof PropertyEditorPart)
        {
          property = ((PropertyEditorPart)part).property();
         
View Full Code Here

    public FunctionResult evaluate( final FunctionContext context )
    {
        if( context instanceof PartFunctionContext )
        {
            final PartFunctionContext fc = (PartFunctionContext) context;
            final SapphirePart part = fc.part();
           
            if( part instanceof PropertyEditorPart )
            {
                final Property property = ( (PropertyEditorPart) part ).property();
               
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.SapphirePart$LabelChangedEvent

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.