Examples of canDelete()


Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.PanelInfo.canDelete()

        "    {new: com.gwtext.client.widgets.Panel} {local-unique: content} {/new Panel()/ /new PaddedPanel(content, 10)/}",
        "      {implicit-layout: default} {implicit-layout} {}",
        "    {virtual-layout_data: com.gwtext.client.widgets.layout.RowLayoutData} {virtual-layout-data} {}");
    PaddedPanelInfo paddedPanel = (PaddedPanelInfo) panel.getChildrenWidgets().get(0);
    PanelInfo content = paddedPanel.getContent();
    assertFalse(content.canDelete());
    assertTrue(paddedPanel.canDelete());
  }

  public void test_CREATE() throws Exception {
    PanelInfo panel =
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.SliderInfo.canDelete()

    }
    // Slider
    {
      SliderInfo slider = getJavaInfoByName("slider");
      // Slider can not be deleted, because SliderField needs it
      assertFalse(slider.canDelete());
      assertFalse(JavaInfoUtils.canReparent(slider));
      // Slider should not be visible on design canvas, because we want that user click and move field
      assertVisibleInGraphical(slider, false);
    }
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.WidgetInfo.canDelete()

    TreeInfo tree = (TreeInfo) frame.getChildrenWidgets().get(0);
    TreeItemInfo treeItem = tree.getItems().get(0);
    WidgetInfo button = treeItem.getWidget();
    // check association type, but not operations (see test for this association)
    assertInstanceOf(ImplicitFactoryArgumentAssociation.class, button.getAssociation());
    assertTrue(button.canDelete());
    assertFalse(JavaInfoUtils.canMove(button));
    assertTrue(JavaInfoUtils.canReparent(button));
  }

  ////////////////////////////////////////////////////////////////////////////
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.cell.CellListInfo.canDelete()

            "}");
    frame.refresh();
    ValuePickerInfo valuePicker = (ValuePickerInfo) frame.getChildrenWidgets().get(0);
    CellListInfo cellList = valuePicker.getCellList();
    //
    assertFalse(cellList.canDelete());
  }
}
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.RootLayoutPanelCreationSupport.canDelete()

    // RootLayoutPanel_CreationSupport
    {
      RootLayoutPanelCreationSupport creationSupport =
          (RootLayoutPanelCreationSupport) frame.getCreationSupport();
      assertEquals("RootLayoutPanel.get()", m_lastEditor.getSource(creationSupport.getNode()));
      assertFalse(creationSupport.canDelete());
      assertFalse(creationSupport.canReorder());
      assertFalse(creationSupport.canReparent());
    }
    // default bounds
    assertEquals(new Rectangle(0, 0, 450, 300), frame.getBounds());
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.RootPanelCreationSupport.canDelete()

    // RootPanel_CreationSupport
    {
      RootPanelCreationSupport creationSupport =
          (RootPanelCreationSupport) frame.getCreationSupport();
      assertEquals("RootPanel.get()", m_lastEditor.getSource(creationSupport.getNode()));
      assertTrue(creationSupport.canDelete());
      assertFalse(creationSupport.canReorder());
      assertFalse(creationSupport.canReparent());
    }
    // default bounds
    {
View Full Code Here

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.RootPanelInfo.canDelete()

            "    RootPanel rootPanel = RootPanel.get();",
            "    rootPanel.setVisible(true);",
            "  }",
            "}");
    // delete
    assertTrue(frame.canDelete());
    frame.delete();
    assertEditor(
        "// filler filler filler filler filler",
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

Examples of com.google.gerrit.reviewdb.client.AccountExternalId.canDelete()

    final Map<AccountExternalId.Key, AccountExternalId> have = have();

    List<AccountExternalId> toDelete = new ArrayList<AccountExternalId>();
    for (AccountExternalId.Key k : keys) {
      final AccountExternalId id = have.get(k);
      if (id != null && id.canDelete()) {
        toDelete.add(id);
      }
    }

    if (!toDelete.isEmpty()) {
View Full Code Here

Examples of com.google.gerrit.server.project.RefControl.canDelete()

    }
  }

  private void parseDelete(final ReceiveCommand cmd) {
    RefControl ctl = projectControl.controlForRef(cmd.getRefName());
    if (ctl.canDelete()) {
      if (cmd.getResult() == NOT_ATTEMPTED) {
        cmd.execute(rp);
      }
    } else {
      if (GitRepositoryManager.REF_CONFIG.equals(ctl.getRefName())) {
View Full Code Here

Examples of com.google.gerrit.server.project.RefControl.canDelete()

          if (Constants.HEAD.equals(ref.getName())) {
            b.setCanDelete(false);
            headBranch = b;
          } else {
            b.setCanDelete(targetRefControl.canDelete());
            branches.add(b);
          }
          continue;
        }
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.