Examples of CommandGroup


Examples of org.knopflerfish.service.console.CommandGroup

     * @param bc
     *            Bundle context.
     */
    public void start(BundleContext bc) {
        // Register framework commands
        CommandGroup cg = new FrameworkCommandGroup(bc);
        Hashtable props = new Hashtable();
        props.put("groupName", cg.getGroupName());
        bc.registerService(COMMAND_GROUP, cg, props);
    }
View Full Code Here

Examples of org.knopflerfish.service.console.CommandGroup

  public void start(BundleContext bc) {
    this.bc = bc;
    log = new LogRef(bc);

    CommandGroup cg = new SOAPCommandGroup();
    Hashtable props = new Hashtable();
    props.put(CommandGroup.GROUP_NAME, cg.getGroupName());
    bc.registerService(CommandGroup.class.getName(), cg, props);
  }
View Full Code Here

Examples of org.knopflerfish.service.console.CommandGroup

        ServiceReference[] commandReferences = bc.getServiceReferences("org.knopflerfish.service.console.CommandGroup",
                "(" + CommandGroup.GROUP_NAME + "=" + groupId + ")");
        Assert.assertNotNull(commandReferences);
        Assert.assertEquals(1, commandReferences.length);

        CommandGroup commandGroup = (CommandGroup) bc.getService(commandReferences[0]);
        Assert.assertEquals(groupName, commandGroup.getShortHelp());
        String longHelp = commandGroup.getLongHelp();
        Collection<String> commandHelps = defaultCommansList.values();

        int foundCommands = 0;
        for (String commandHelp : commandHelps) {
            if (longHelp.indexOf(commandHelp) != -1) {
View Full Code Here

Examples of org.springframework.richclient.command.CommandGroup

    private IconGenerator<AbstractCommand> taskPaneIconGenerator;

    @Override
    protected JComponent createWindowContentPane()
    {
        CommandGroup navigationCommandGroup = ((NavigatorApplicationLifecycleAdvisor) getAdvisor())
                .getNavigationCommandGroup();
        TaskPaneNavigatorView taskPaneNavigatorView = new TaskPaneNavigatorView(navigationCommandGroup);
        taskPaneNavigatorView.setIconGenerator(getTaskPaneIconGenerator());
        taskPaneNavigatorView.setOnlyOneExpanded(onlyOneExpanded);
View Full Code Here

Examples of org.springframework.richclient.command.CommandGroup

  private boolean isEditable() {
    return !(textComponent instanceof JPasswordField) && textComponent.isEnabled() && textComponent.isEditable();
  }

  protected CommandGroup getEditableCommandGroup() {
    CommandGroup editGroup = getCommandManager().getCommandGroup("textEditMenu");
    if (editGroup == null) {
      editGroup = getCommandManager().createCommandGroup(
          "textEditMenu",
          new Object[] { GlobalCommandIds.UNDO, GlobalCommandIds.REDO, "separator", GlobalCommandIds.CUT,
              GlobalCommandIds.COPY, GlobalCommandIds.PASTE, "separator", GlobalCommandIds.SELECT_ALL });
View Full Code Here

Examples of org.springframework.richclient.command.CommandGroup

    }
    return editGroup;
  }

  protected CommandGroup getPasswordCommandGroup() {
    CommandGroup passwordGroup = getCommandManager().getCommandGroup("passwordTextEditMenu");
    if (passwordGroup == null) {
      passwordGroup = getCommandManager().createCommandGroup("passwordTextEditMenu",
          new Object[] { GlobalCommandIds.UNDO, GlobalCommandIds.REDO });
    }
    return passwordGroup;
View Full Code Here

Examples of org.springframework.richclient.command.CommandGroup

    }
    return passwordGroup;
  }

  protected CommandGroup getReadOnlyCommandGroup() {
    CommandGroup readOnlyGroup = getCommandManager().getCommandGroup("readOnlyTextEditMenu");
    if (readOnlyGroup == null) {
      readOnlyGroup = getCommandManager().createCommandGroup("readOnlyTextEditMenu",
          new Object[] { GlobalCommandIds.COPY, "separator", GlobalCommandIds.SELECT_ALL });
    }
    return readOnlyGroup;
View Full Code Here

Examples of org.springframework.richclient.command.CommandGroup

          FormFactory.DEFAULT_ROWSPEC, FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
          FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
      CellConstraints cc = new CellConstraints();
      panel.add(new JLabel(getMessage("parentForm.label")), cc.xy(1, 1));
      panel.add(builder.getForm(), cc.xy(3, 3));
      CommandGroup parentFormcommandGroup = CommandGroup.createCommandGroup(new ActionCommand[] {
          getEnableFormModelCommand(), getReadOnlyFormModelCommand(), getValidatingFormModelCommand() });
      panel.add(parentFormcommandGroup.createButtonBar(), cc.xy(3, 5));
      panel.add(new JLabel(getMessage("childForm.label")), cc.xy(1, 7));
      childForm = new ChildForm();
      childForm.setMessageArea(getMessageArea());
      panel.add(childForm.getControl(), cc.xy(3, 9));
      CommandGroup childFormcommandGroup = CommandGroup.createCommandGroup(new ActionCommand[] {
          childForm.getEnableFormModelCommand(), childForm.getReadOnlyFormModelCommand(),
          childForm.getValidatingFormModelCommand() });
      panel.add(childFormcommandGroup.createButtonBar(), cc.xy(3, 11));
      addChildForm(childForm);
      newSingleLineResultsReporter(ParentChildFormDialog.this);
      return panel;
    }
View Full Code Here

Examples of org.springframework.richclient.command.CommandGroup

   
    ApplicationLifecycleAdvisor advisor = getApplication().getLifecycleAdvisor();
    if(advisor instanceof JideApplicationLifecycleAdvisor){
      JideApplicationLifecycleAdvisor dockingAdvisor =
        (JideApplicationLifecycleAdvisor)advisor;
      CommandGroup commandGroup = dockingAdvisor.getSpecificCommandGroup(name);
     
      return commandGroup;
    }
    return null;
  }
View Full Code Here

Examples of org.springframework.richclient.command.CommandGroup

   * its default
   *
   * @return
   */
  public JComponent getEditorMenuBar(){
    CommandGroup commandGroup = getCommandGroup(getMenuBarCommandGroupName());
    if(commandGroup == null){
      return null;
    }
    return commandGroup.createMenuBar();
  }
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.