Examples of canDelete()


Examples of org.eclipse.graphiti.features.IDeleteFeature.canDelete()

          false, false, toBeDeleted.size());
      for (Connection c : toBeDeleted) {
        DeleteContext dc = new DeleteContext(c);
        dc.setMultiDeleteInfo(mi);
        IDeleteFeature del = getFeatureProvider().getDeleteFeature(dc);
        if (del.canDelete(dc)) {
          del.delete(dc);
        }
      }
    }
  }
View Full Code Here

Examples of org.eclipse.wb.core.model.association.Association.canDelete()

    // check ColumnConfig_Info
    ColumnConfigInfo column = getJavaInfoByName("column");
    {
      Association association = column.getAssociation();
      assertThat(association).isInstanceOf(InvocationChildEllipsisAssociation.class);
      assertTrue(association.canDelete());
    }
  }

  /**
   * Test for {@link GridInfo#command_CREATE(ColumnConfigInfo, ColumnConfigInfo)}.
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.creation.CreationSupport.canDelete()

    // permissions
    {
      CreationSupport creationSupport = newImage.getCreationSupport();
      assertTrue(creationSupport.canReorder());
      assertTrue(creationSupport.canReparent());
      assertTrue(creationSupport.canDelete());
    }
    // assert that "image" is bound to AST
    {
      ASTNode node = getNode("image = ");
      assertTrue(newImage.isRepresentedBy(node));
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.creation.CreationSupport.canDelete()

    CreationSupport creationSupport = image.getCreationSupport();
    // permissions
    assertTrue(creationSupport.canReorder());
    assertTrue(creationSupport.canReparent());
    // delete
    assertTrue(creationSupport.canDelete());
    image.delete();
    assertEditor(
        "public class Test implements EntryPoint {",
        "  private static final MyImageBundle m_myBundle = GWT.create(MyImageBundle.class);",
        "  public void onModuleLoad() {",
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.creation.CreationSupport.canDelete()

    {
      LayoutInfo layout = panel.getLayout();
      {
        CreationSupport creationSupport = layout.getCreationSupport();
        assertInstanceOf(ImplicitLayoutCreationSupport.class, creationSupport);
        assertTrue(creationSupport.canDelete());
      }
      {
        VariableSupport variableSupport = layout.getVariableSupport();
        assertInstanceOf(LocalUniqueVariableSupport.class, variableSupport);
        assertEquals("rowLayout", variableSupport.getName());
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.client.registry.spi.AvatarSPI.canDelete()

        // Next, ask the selected avatar whether Customize and Delete is
        // supported
        if (selected == true) {
            AvatarSPI avatar = (AvatarSPI) avatarList.getSelectedValue();
            customizeButton.setEnabled(avatar.canConfigure());
            deleteButton.setEnabled(avatar.canDelete());
        }

        // Finally, we see if the select avatar is the one currently in use.
        // If so, do not enable the Use button
        if (selected == true) {
View Full Code Here

Examples of org.modeshape.sequencer.teiid.VdbDataRole.Permission.canDelete()

                Permission perm1 = dataRole.getPermissions().get(0);
                assertThat(perm1.getResourceName(), is("BooksProcedures"));
                assertFalse(perm1.canCreate());
                assertTrue(perm1.canRead());
                assertTrue(perm1.canUpdate());
                assertTrue(perm1.canDelete());
                assertFalse(perm1.canExecute());
                assertFalse(perm1.canAlter());
            }

            { // permission 2
View Full Code Here

Examples of org.olat.core.util.servlets.VFSDirContext.canDelete()

        // Check if operation allowed by OLAT VFS security callback
        DirContext resources = getResources(req);
        VFSDirContext vfsContext = (VFSDirContext) resources;
        String path = getRelativePath(req);
        if (!vfsContext.canDelete(path)) {
          resp.sendError(WebdavStatus.SC_FORBIDDEN);
          return;         
        }

        if (isLocked(req)) {
View Full Code Here

Examples of org.olat.core.util.vfs.LocalFolderImpl.canDelete()

   * @return
   */
  public VFSStatus removeQtiSerFiles(Long resourceableId, String ident) {
    if (resourceableId == null || ident == null || ident.length() == 0) return VFSConstants.NO;
    LocalFolderImpl item = new LocalFolderImpl(new File(FilePersister.getFullPathToCourseNodeDirectory(Long.toString(resourceableId), ident)));
    if(item.canDelete().equals(VFSConstants.YES)) return item.delete();
    return VFSConstants.NO;
  }
 
 
 
View Full Code Here

Examples of org.olat.core.util.vfs.VFSItem.canDelete()

    boolean canWrite = currentContainer.canWrite() == VFSConstants.YES;
    boolean canDelete = false;
    boolean canVersion = FolderConfig.versionsEnabled(fc.getCurrentContainer());
    for (Iterator<VFSItem> iter = fc.getCurrentContainerChildren().iterator(); iter.hasNext();) {
      VFSItem child = iter.next();
      if (child.canDelete() == VFSConstants.YES) {
        canDelete = true;
        break;
      }
    }
   
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.