Commit > "​Message History​": allow to delete entries (IDEADEV-41336)
[fedora-idea.git] / platform / vcs-api / src / com / intellij / openapi / vcs / ui / Refreshable.java
blobcb0b9d424295f406c802907f0ad41b188a6f1cb5
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 com.intellij.openapi.vcs.ui;
18 import com.intellij.openapi.actionSystem.DataKey;
20 /**
21 * Base interface for user interface objects which can be refreshed and can save/restore
22 * their state.
24 * @author lesya
26 public interface Refreshable {
27 DataKey<Refreshable> PANEL_KEY = DataKey.create("Panel");
29 /**
30 * The data ID which can be used to retrieve the active <code>Refreshable</code>
31 * instance from {@link com.intellij.openapi.actionSystem.DataContext}.
33 * @see com.intellij.openapi.actionSystem.DataContext#getData(String)
35 @Deprecated String PANEL = PANEL_KEY.getName();
37 void refresh();
39 void saveState();
41 void restoreState();