コード例 #1
0
  /** @see RepositoryProvider#deconfigured() */
  public void deconfigured() {
    try {
      // when a nature is removed from the project, notify the synchronizer that
      // we no longer need the sync info cached. This does not affect the actual SVN
      // meta directories on disk, and will remain unless a client calls unmanage().
      SVNProviderPlugin.getPlugin().getStatusCacheManager().purgeCache(getProject(), true);
    } catch (SVNException e) {
      SVNProviderPlugin.log(e);
    }

    SVNProviderPlugin.broadcastProjectDeconfigured(getProject());
  }
コード例 #2
0
 private void configureTeamPrivateResource(IProject project) {
   try {
     project.accept(
         new IResourceVisitor() {
           public boolean visit(IResource resource) throws CoreException {
             if ((resource.getType() == IResource.FOLDER)
                 && (resource
                     .getName()
                     .equals(SVNProviderPlugin.getPlugin().getAdminDirectoryName()))
                 && (!resource.isTeamPrivateMember())) {
               resource.setTeamPrivateMember(true);
               return false;
             } else {
               return true;
             }
           }
         },
         IResource.DEPTH_INFINITE,
         IContainer.INCLUDE_PHANTOMS | IContainer.INCLUDE_TEAM_PRIVATE_MEMBERS);
   } catch (CoreException e) {
     SVNProviderPlugin.log(SVNException.wrapException(e));
   }
 }
コード例 #3
0
 /*
  * @see RepositoryProvider#getID()
  */
 public String getID() {
   return SVNProviderPlugin.getTypeId();
 }
コード例 #4
0
 public void configureProject() {
   configureTeamPrivateResource(getProject());
   SVNProviderPlugin.broadcastProjectConfigured(getProject());
 }