/plugins/svn4idea/src/org/jetbrains/idea/svn/revision/SvnSelectRevisionPanel.java

https://bitbucket.org/nbargnesi/idea · Java · 52 lines · 29 code · 8 blank · 15 comment · 0 complexity · add6384ba191764129865759b11ea06a MD5 · raw file

  1. /*
  2. * Copyright 2000-2009 JetBrains s.r.o.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.jetbrains.idea.svn.revision;
  17. import com.intellij.openapi.options.ConfigurationException;
  18. import com.intellij.openapi.project.Project;
  19. import com.intellij.openapi.vfs.VirtualFile;
  20. import org.jetbrains.annotations.NotNull;
  21. import org.jetbrains.idea.svn.update.SvnRevisionPanel;
  22. import org.tmatesoft.svn.core.wc.SVNRevision;
  23. import javax.swing.*;
  24. import java.awt.*;
  25. public class SvnSelectRevisionPanel extends JPanel {
  26. private SvnRevisionPanel mySvnRevisionPanel;
  27. private JPanel myPanel;
  28. public SvnSelectRevisionPanel() {
  29. super(new BorderLayout());
  30. }
  31. public void setProject(final Project project) {
  32. mySvnRevisionPanel.setProject(project);
  33. }
  34. public void setUrlProvider(final SvnRevisionPanel.UrlProvider urlProvider) {
  35. mySvnRevisionPanel.setUrlProvider(urlProvider);
  36. }
  37. public void setRoot(final VirtualFile root) {
  38. mySvnRevisionPanel.setRoot(root);
  39. }
  40. @NotNull
  41. public SVNRevision getRevision() throws ConfigurationException {
  42. return mySvnRevisionPanel.getRevision();
  43. }
  44. }