Examples of CustomContext


Examples of br.gov.frameworkdemoiselle.context.CustomContext

  }
 
  public void initializeContexts(@Observes AfterBeanDiscovery event){
    //Cadastra os contextos contidos no demoiselle-core
    if (contexts==null || contexts.isEmpty()){
      CustomContext ctx;
     
      contexts = new ArrayList<CustomContext>();
     
      ctx = new TemporaryRequestContextImpl();
      contexts.add(ctx);
View Full Code Here

Examples of br.gov.frameworkdemoiselle.context.CustomContext

    return producedContext;
  }
 
  @SuppressWarnings("unchecked")
  private <T extends CustomContext> T getContext(Class<T> contextClass){
    CustomContext producedContext = null;
   
    ArrayList<CustomContext> selectableContexts = new ArrayList<CustomContext>();
   
    for (CustomContext context : getContexts()){
      if ( contextClass.isAssignableFrom( context.getClass() ) ){
View Full Code Here

Examples of br.gov.frameworkdemoiselle.context.CustomContext

   *
   * @return A context of a type compatible with the informed type, or <code>null</code> if there is no such context.
   */
  @SuppressWarnings("unchecked")
  public <T extends CustomContext> T getContext(Class<T> contextClass){
    CustomContext producedContext = null;
   
    ArrayList<CustomContext> selectableContexts = new ArrayList<CustomContext>();
   
    for (CustomContext context : getContexts()){
      if ( contextClass.isAssignableFrom( context.getClass() ) ){
View Full Code Here

Examples of br.gov.frameworkdemoiselle.context.CustomContext

   *
   * @return A context of a type compatible with the informed type, or <code>null</code> if there is no such context.
   */
  @SuppressWarnings("unchecked")
  public <T extends CustomContext> T getContext(Class<T> contextClass){
    CustomContext producedContext = null;
   
    ArrayList<CustomContext> selectableContexts = new ArrayList<CustomContext>();
   
    for (CustomContext context : getContexts()){
      if ( contextClass.isAssignableFrom( context.getClass() ) ){
View Full Code Here

Examples of br.gov.frameworkdemoiselle.context.CustomContext

  }
 
  public void initializeContexts(@Observes AfterBeanDiscovery event){
    //Cadastra os contextos contidos no demoiselle-core
    if (contexts==null || contexts.isEmpty()){
      CustomContext ctx;
     
      contexts = new ArrayList<CustomContext>();
     
      ctx = new TemporaryRequestContextImpl();
      contexts.add(ctx);
View Full Code Here

Examples of org.eclipse.graphiti.features.context.impl.CustomContext

  @Override
  protected void addDefaultMenuGroupRest(IMenuManager manager) {
    addAlignmentSubMenu(manager, GEFActionConstants.GROUP_REST);

    PictogramElement pes[] = getBehavior().getSelectedPictogramElements();
    ICustomContext context = new CustomContext(pes);

    IToolBehaviorProvider tb = getConfigurationProvider().getDiagramTypeProvider().getCurrentToolBehaviorProvider();
    IContextMenuEntry[] contextMenuEntries = tb.getContextMenu(context);

    // the last one is an add menu; lets move it to a different group
View Full Code Here

Examples of org.eclipse.graphiti.features.context.impl.CustomContext

    }
     *
     */
   
    // add buttons for breakpoint manipulation
    CustomContext cc = new CustomContext(new PictogramElement[] { pe });
    ICustomFeature[] cf = getFeatureProvider().getCustomFeatures(cc);
    for (ICustomFeature f : cf) {
      if (f instanceof DeleteAllEndpointBreakpointsFeature) continue;
      if (f instanceof SetEndpointBreakpointFeature) {
        if (f.isAvailable(cc)) {
View Full Code Here

Examples of org.eclipse.graphiti.features.context.impl.CustomContext

      selectedElements = new PictogramElement[] {selectedElement};
    } else {
      Activator.getLogger().debug("==== TODO - could not find PictogramElement for node " + selectedNode + " probably its that the RiderOutlinePage is out of sync with the Diagram model!");
      selectedElements = editor.getSelectedPictogramElements();
    }
    CustomContext context = new CustomContext(selectedElements);
    feature.execute(context);
  }
View Full Code Here

Examples of org.eclipse.graphiti.features.context.impl.CustomContext

        @Override
        public boolean canExecute(IContext context) {
          return true;
        }
      };
      CustomContext context = new CustomContext();
      execute(feature, context);
    }
  }
View Full Code Here

Examples of org.eclipse.graphiti.features.context.impl.CustomContext

    editElementButton.setText("change element type"); //$NON-NLS-1$
    editElementButton.setDescription("Change the element type to another type"); //$NON-NLS-1$
    editElementButton.setIconId(PluginImage.EDIT_ICON.getImageKey());
    data.getDomainSpecificContextButtons().add(editElementButton);

    CustomContext customContext = new CustomContext();
    customContext.putProperty("org.activiti.designer.changetype.pictogram", pe);

    if (bo instanceof Task) {
      addTaskButtons(editElementButton, (Task) bo, customContext);
    } else if (bo instanceof Gateway) {
      addGatewayButtons(editElementButton, (Gateway) bo, customContext);
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.