update copyright
[fedora-idea.git] / plugins / svn4idea / src / org / jetbrains / idea / svn / revision / SvnSelectRevisionPanel.java
blob374a9c0ee14b8e0489ea201bf21423ad60b562a6
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.jetbrains.idea.svn.revision;
18 import com.intellij.openapi.options.ConfigurationException;
19 import com.intellij.openapi.project.Project;
20 import com.intellij.openapi.vfs.VirtualFile;
21 import org.jetbrains.annotations.NotNull;
22 import org.jetbrains.idea.svn.update.SvnRevisionPanel;
23 import org.tmatesoft.svn.core.wc.SVNRevision;
25 import javax.swing.*;
26 import java.awt.*;
28 public class SvnSelectRevisionPanel extends JPanel {
29 private SvnRevisionPanel mySvnRevisionPanel;
30 private JPanel myPanel;
32 public SvnSelectRevisionPanel() {
33 super(new BorderLayout());
36 public void setProject(final Project project) {
37 mySvnRevisionPanel.setProject(project);
40 public void setUrlProvider(final SvnRevisionPanel.UrlProvider urlProvider) {
41 mySvnRevisionPanel.setUrlProvider(urlProvider);
44 public void setRoot(final VirtualFile root) {
45 mySvnRevisionPanel.setRoot(root);
48 @NotNull
49 public SVNRevision getRevision() throws ConfigurationException {
50 return mySvnRevisionPanel.getRevision();