Package org.eclipse.swt.dnd

Examples of org.eclipse.swt.dnd.Clipboard.dispose()


        value = (String) clp.getContents(TextTransfer.getInstance());
        assertTrue("Clipboard content (" + value
            + ")should be a repository path", FileKey
            .isGitRepository(new File(value), FS.DETECTED));

        clp.dispose();
      }
    });

  }
View Full Code Here


              myUtil.getPluginLocalizedValue("PastePathCommand"));
        } catch (Exception e) {
          exceptions[0] = e;
        } finally {
          if (clip != null)
            clip.dispose();
        }
      }
    });

    if (exceptions[0] != null)
View Full Code Here

        TextTransfer textTransfer = TextTransfer.getInstance();
        Transfer[] transfers = new Transfer[] { textTransfer };
        Object[] data = new Object[] { ObjectId.toString(commit) };
        clipboard.setContents(data, transfers);
      } finally {
        clipboard.dispose();
      }
    }
    return null;
  }
}
View Full Code Here

        Clipboard clipboard = new Clipboard(getShell().getDisplay());
        try {
          clipboard.setContents(new String[] { toCopy },
              new TextTransfer[] { TextTransfer.getInstance() });
        } finally {
          clipboard.dispose();
        }
      }
    });

    final Button pasteSpec = new Button(refButtonArea, SWT.PUSH);
View Full Code Here

                getShell(),
                UIText.SimpleConfigurePushDialog_NoRefSpecDialogTitle,
                UIText.SimpleConfigurePushDialog_NoRefSpecDialogMessage);
      }
    } finally {
      clipboard.dispose();
    }
  }

  /**
   * Add a warning about this remote being used by other branches
View Full Code Here

        Clipboard clipboard = new Clipboard(getShell().getDisplay());
        try {
          clipboard.setContents(new String[] { toCopy },
              new TextTransfer[] { TextTransfer.getInstance() });
        } finally {
          clipboard.dispose();
        }
      }
    });

    final Button pasteSpec = new Button(buttonArea, SWT.PUSH);
View Full Code Here

                getShell(),
                UIText.SimpleConfigureFetchDialog_NotRefSpecDialogTitle,
                UIText.SimpleConfigureFetchDialog_NotRefSpecDialogMessage);
      }
    } finally {
      clipboard.dispose();
    }
  }

  /**
   * Add a warning about this remote being used by other branches
View Full Code Here

              preset = text;
        }
      } catch (URISyntaxException e) {
        // ignore, preset is null
      }
      clippy.dispose();
    }
    this.presetUri = preset;

    this.configuredRemotes = getUsableConfigs(configuredRemotes);
View Full Code Here

      public void run() {
        TextTransfer plainTextTransfer = TextTransfer.getInstance();
        Clipboard clipboard = new Clipboard(getShell().getDisplay());
        clipboard.setContents(new String[] { content },
            new Transfer[] { plainTextTransfer });
        clipboard.dispose();
      }
    });
  }

  private TreeFilter createPathFilter(final Collection<? extends IResource> rs) {
View Full Code Here

      String title= UIText.Header_copy_SHA1_error_title;
      String message= UIText.Header_copy_SHA1_error_message;
      if (MessageDialog.openQuestion(shell, title, message))
        copyToClipboard(str, shell);
    } finally {
      clipboard.dispose();
    }
  }

}
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.