Tabnine Logo
DeleteFileAction.getFile
Code IndexAdd Tabnine to your IDE (free)

How to use
getFile
method
in
net.groboclown.p4.server.api.commands.file.DeleteFileAction

Best Java code snippets using net.groboclown.p4.server.api.commands.file.DeleteFileAction.getFile (Showing top 9 results out of 315)

origin: groboclown/p4ic4idea

MoveFileAction ex = (MoveFileAction) existing;
if (ex.getSourceFile().equals(added.getFile())) {
if (ex.getTargetFile().equals(added.getFile())) {
      " followed by delete of " + added.getFile() + " into a single delete of the source");
if (! ex.getFile().equals(added.getFile())) {
  return KEEP_BOTH_CONTINUE;
      ex.getFile() + " curated to keep the original.");
  return KEEP_EXISTING_REMOVE_ADDED_STOP;
LOG.info("Duplicate delete request for file " + ex.getFile() + " resolved to use changelist " +
    added.getChangelistId());
return KEEP_ADDED_REMOVE_EXISTING_CONTINUE;
origin: groboclown/p4ic4idea

LOG.info("Delete for file " + ex.getFile() + " removed due to later request to edit the file");
origin: groboclown/p4ic4idea

return performFileAction(config, action, fileAction.getFile(), null,
    P4FileAction.DELETE);
origin: groboclown/p4ic4idea

P4LocalFileImpl.Builder builder = files.get(a.getFile());
if (builder == null) {
  builder = new P4LocalFileImpl.Builder()
      .withLocal(a.getFile())
      .withHave(new P4Revision(-1));
  files.put(a.getFile(), builder);
origin: groboclown/p4ic4idea

private DeleteFileResult deleteFile(IClient client, ClientConfig config, DeleteFileAction action)
    throws P4JavaException {
  if (LOG.isDebugEnabled()) {
    LOG.debug("Running delete against the server for " + action.getFile());
  List<IFileSpec> files = FileSpecBuildUtil.escapedForFilePaths(action.getFile());
  OpenFileStatus status = new OpenFileStatus(cmd.getFileDetailsForOpenedSpecs(client.getServer(), files, 1000));
  status.throwIfError();
    LOG.info("Skipping delete on file already open for delete: " + action.getFile());
    return new DeleteFileResult(
        config,
    LOG.info("Reverting files open for edit in preparation for delete: " + action.getFile() + "; results = " +
        MessageStatusUtil.getMessages(res, "\n"));
    MessageStatusUtil.throwIfError(res);
origin: groboclown/p4ic4idea

assertEquals(createdDelete.clientAction.getClass(), DeleteFileAction.class);
DeleteFileAction deleteAction = (DeleteFileAction) createdDelete.clientAction;
assertEquals(src.asFilePath(), deleteAction.getFile());
assertEquals(cl1, deleteAction.getChangelistId());
assertContainsExactly(actions, addFile, createdDelete);
origin: groboclown/p4ic4idea

LOG.debug("Remove existing action `delete " + existing.getFile() +
    "` because of a later move for the same file.");
origin: groboclown/p4ic4idea

DeleteFileAction a = (DeleteFileAction) action;
ret.data
    .putFilePath("file", a.getFile())
    .putChangelistId("cl-id", a.getChangelistId());
break;
origin: groboclown/p4ic4idea

(ClientActionRunner<DeleteFileResult>) (config, action) ->
  new ActionAnswerImpl<>(connectionManager.withConnection(config,
    ((DeleteFileAction) action).getFile().getIOFile().getParentFile(),
    (client) -> deleteFile(client, config, (DeleteFileAction) action))));
net.groboclown.p4.server.api.commands.fileDeleteFileActiongetFile

Popular methods of DeleteFileAction

  • <init>
  • getChangelistId
  • changeId
  • createActionId

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now