Examples of createFragment()


Examples of com.intellij.openapi.diff.impl.highlighting.FragmentSide.createFragment()

      if (fragment.isOneSide()) {
        FragmentSide side = FragmentSide.chooseSide(fragment);
        String text = side.getText(fragment);
        String trimed = text.trim();
        if (trimed.length() == 0) {
          collector.add(side.createFragment(text, "", false));
          return;
        }
      }
      collector.add(fragment);
    }
View Full Code Here

Examples of com.sk89q.worldedit.util.formatting.StyledFragment.createFragment()

            CommandListBox box = new CommandListBox(String.format("Help: page %d/%d ", page + 1, pageTotal));
            StyledFragment contents = box.getContents();
            StyledFragment tip = contents.createFragment(Style.GRAY);

            if (offset >= aliases.size()) {
                tip.createFragment(Style.RED).append(String.format("There is no page %d (total number of pages is %d).", page + 1, pageTotal)).newLine();
            } else {
                List<CommandMapping> list = aliases.subList(offset, Math.min(offset + perPage, aliases.size()));

                tip.append("Type ");
                tip.append(new Code().append("//help ").append("<command> [<page>]"));
View Full Code Here

Examples of evolaris.framework.async.business.SmsDbManager.createFragment()

      commandEntryManager.create(duplicatedCommandEntry)// also sets the ID for sorting
      newCommandEntries.add(duplicatedCommandEntry);
    }
    newFragment.setCommandEntries(newCommandEntries);
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    smsDbManager.createFragment(newFragment);
     return mapping.findForward("duplicated");
  }

  /**
   * Inlines fragment interactions and delete the fragment
View Full Code Here

Examples of evolaris.framework.async.business.SmsDbManager.createFragment()

   * @see evolaris.framework.sys.web.form.EnterEditDuplicateForm#createEntry(java.lang.Object, java.util.Locale, org.hibernate.Session)
   */
  @Override
  public void createEntry(Fragment fragment, Locale locale, Session session) {
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    smsDbManager.createFragment(fragment);
       }

  /**
   * @see evolaris.framework.sys.web.form.EnterEditDuplicateForm#modifyEntry(java.lang.Object, java.util.Locale, org.hibernate.Session)
   */
 
View Full Code Here

Examples of org.apache.jetspeed.services.registry.FileRegistry.createFragment()

                    logger.info("Determining portlets...");
   
                    FileRegistry registry = (FileRegistry)TurbineServices.getInstance()
                                                .getService( RegistryService.SERVICE_NAME );

                    registry.createFragment( name, transformed , true );
   
                    logger.info( "END FEED -> " + url + " -> SUCCESS");   

                    this.setResult( Daemon.RESULT_SUCCESS );   
View Full Code Here

Examples of org.apache.jetspeed.services.registry.FileRegistry.createFragment()

                    logger.info("Determining portlets...");
   
                    FileRegistry registry = (FileRegistry)TurbineServices.getInstance()
                                                .getService( RegistryService.SERVICE_NAME );

                    registry.createFragment( name, transformed , true );
   
                    logger.info( "END FEED -> " + url + " -> SUCCESS");   

                    this.setResult( Daemon.RESULT_SUCCESS );   
View Full Code Here

Examples of org.apache.jetspeed.services.registry.FileRegistry.createFragment()

                    Log.info("Determining portlets...");
   
                    FileRegistry registry = (FileRegistry)TurbineServices.getInstance()
                                                .getService( RegistryService.SERVICE_NAME );

                    registry.createFragment( name, transformed , true );
   
                    Log.info( "END FEED -> " + url + " -> SUCCESS");   

                    this.setResult( Daemon.RESULT_SUCCESS );   
View Full Code Here

Examples of org.jitterbit.integration.client.ui.entity.tree.ProjectTreeFragmentCreator.createFragment()

            protected IntegrationEntityTreeNode createEntityNode(IntegrationEntity entity, KongaTreeNode parent) {
                assert (entity instanceof JmsMessage);
                return new JmsMessageNodeWithProperties(parent, (JmsMessage) entity);
            }
        };
        c.createFragment(parent, EntityType.JmsMessage);
    }

    private static void insertPropertyNodes(Iterable<MessageProperty> properties, KongaTreeNode parent) {
        Iterable<MessageProperty> sorted = Collections2.sort(properties, new Comparator<MessageProperty>() {
View Full Code Here

Examples of org.jitterbit.integration.client.ui.entity.tree.ProjectTreeFragmentCreator.createFragment()

    private List<JMenuItem> buildMenu(Receiver<T> callback) {
        ProjectTreeFragmentCreator c = new ProjectTreeFragmentCreator(project);
        RootFolder folder = project.getRootFolder(type);
        KongaTreeNode root = new RootFolderNode(folder);
        c.createFragment(root, type);
        List<JMenuItem> items = Lists.newArrayList();
        if (root.getChildCount() > 0) {
            addMenuItems(items, root, new Listener(callback));
        } else {
            items.add(createEmptyItem());
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.