Examples of eContainer()


Examples of org.eclipse.graphiti.mm.pictograms.PictogramElement.eContainer()

    } else if (pe instanceof AnchorContainer) {
      connectionAnchor = Graphiti.getPeService().getChopboxAnchor((AnchorContainer) pe);
    }
    connectionContext.setSourceAnchor(connectionAnchor);

    if (pe.eContainer() instanceof ContainerShape == false) {
      return data;
    }

    CreateContext taskContext = new CreateContext();
    taskContext.setTargetContainer((ContainerShape) pe.eContainer());
View Full Code Here

Examples of org.eclipse.jst.jsf.tagdisplay.internal.paletteinfos.PaletteInfo.eContainer()

    if (trait != null){
      PaletteInfos tags = (PaletteInfos)trait.getValue();
      for (Iterator it=tags.getInfos().iterator();it.hasNext();){
        PaletteInfo tag = (PaletteInfo)it.next();
        if (tag.getId().equalsIgnoreCase(tagName)){         
          IMetaDataSourceModelProvider sourceProvider = ((Trait)tag.eContainer().eContainer()).getSourceModelProvider();
          if (small)
            icon = getImageDescriptorFromString(sourceProvider, tag.getSmallIcon(), DEFAULT_SMALL_ICON);
          else
            icon = getImageDescriptorFromString(sourceProvider, tag.getLargeIcon(), DEFAULT_LARGE_ICON);
         
View Full Code Here

Examples of org.eclipse.jst.jsf.tagdisplay.internal.paletteinfos.PaletteInfo.eContainer()

    if (trait != null){
      PaletteInfos tags = (PaletteInfos)trait.getValue();
      for (Iterator it=tags.getInfos().iterator();it.hasNext();){
        PaletteInfo tag = (PaletteInfo)it.next();
        if (tag.getId().equalsIgnoreCase(tagName)){         
          IMetaDataSourceModelProvider sourceProvider = ((Trait)tag.eContainer().eContainer()).getSourceModelProvider();
          if (small)
            icon = getImageDescriptorFromString(sourceProvider, tag.getSmallIcon(), DEFAULT_SMALL_ICON);
          else
            icon = getImageDescriptorFromString(sourceProvider, tag.getLargeIcon(), DEFAULT_LARGE_ICON);
         
View Full Code Here

Examples of org.eclipse.xsd.XSDModelGroup.eContainer()

                            } else {
                                //look the containing group
                                if (particle.eContainer() instanceof XSDModelGroup) {
                                    XSDModelGroup group = (XSDModelGroup) particle.eContainer();

                                    if (group.eContainer() instanceof XSDParticle) {
                                        XSDParticle cParticle = (XSDParticle) group.eContainer();

                                        if (cParticle.isSetMaxOccurs()) {
                                            maxOccurs = cParticle.getMaxOccurs();
                                        }
View Full Code Here

Examples of org.eclipse.xsd.XSDParticle.eContainer()

                            if (particle.isSetMaxOccurs()) {
                                maxOccurs = particle.getMaxOccurs();
                            } else {
                                //look the containing group
                                if (particle.eContainer() instanceof XSDModelGroup) {
                                    XSDModelGroup group = (XSDModelGroup) particle.eContainer();

                                    if (group.eContainer() instanceof XSDParticle) {
                                        XSDParticle cParticle = (XSDParticle) group.eContainer();
View Full Code Here

Examples of org.eclipse.xtext.RuleCall.eContainer()

    if (_equals) {
      return null;
    }
    EObject _grammarElement = node.getGrammarElement();
    final RuleCall ge = ((RuleCall) _grammarElement);
    EObject _eContainer = ge.eContainer();
    final Assignment container = ((Assignment) _eContainer);
    int _length = string.length();
    int _minus = (_length - 1);
    String _substring = string.substring(1, _minus);
    final String value = Strings.convertFromJavaString(_substring, true);
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Query.GSSQuery.eContainer()

   */
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    final GSSQuery query = (GSSQuery) UiUtil.getSelectedEObject()
   
    Toolbox container = (Toolbox) query.eContainer().eContainer();
    AccessLayer accessLayer = new AccessLayer(false);
    ProjectSpace projectSpace = WorkspaceManager.getProjectSpace(query);
    accessLayer.registerProjectSpace(projectSpace);

    AssignedConstraintsSet assignedConstraintsSet = query.getAssignedConstraintsSet();
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Query.GSSQuery.eContainer()

      builder =  new QueryResultGraphBuilder(managedFormComposite, SWT.NONE, getSite(), (QueryResultSet)modelElement, accessLayer);
    } else
  */ 
    if (modelElement instanceof SelectedGoalsSet){
      GSSQuery query =  (GSSQuery) modelElement.eContainer();
      GSSQueryContainment queryContainment  =  (GSSQueryContainment) query.eContainer();
      Toolbox toolbox  =  (Toolbox) queryContainment.eContainer();
      GSS gss  =  toolbox.getGssCatalogue();
      builder = new GoalSelectorGraphBuilder(managedFormComposite, SWT.NONE, getSite(), gss, (SelectedGoalsSet)modelElement, accessLayer);
    } else
   
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Query.GSSQuery.eContainer()

      builder = new GoalSelectorGraphBuilder(managedFormComposite, SWT.NONE, getSite(), gss, (SelectedGoalsSet)modelElement, accessLayer);
    } else
   
    if (modelElement instanceof SelectedPrinciplesSet){
      GSSQuery query =  (GSSQuery) modelElement.eContainer();
      GSSQueryContainment queryContainment  =  (GSSQueryContainment) query.eContainer();
      Toolbox toolbox  =  (Toolbox) queryContainment.eContainer();
      GSS gss  =  toolbox.getGssCatalogue();
      builder = new PrincipleSelectorGraphBuilder(managedFormComposite, SWT.NONE, getSite(), gss,query, (SelectedPrinciplesSet)modelElement, accessLayer);

    }
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Query.GSSQueryContainment.eContainer()

    } else
  */ 
    if (modelElement instanceof SelectedGoalsSet){
      GSSQuery query =  (GSSQuery) modelElement.eContainer();
      GSSQueryContainment queryContainment  =  (GSSQueryContainment) query.eContainer();
      Toolbox toolbox  =  (Toolbox) queryContainment.eContainer();
      GSS gss  =  toolbox.getGssCatalogue();
      builder = new GoalSelectorGraphBuilder(managedFormComposite, SWT.NONE, getSite(), gss, (SelectedGoalsSet)modelElement, accessLayer);
    } else
   
    if (modelElement instanceof SelectedPrinciplesSet){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.