unused class removed
[fedora-idea.git] / plugins / images / src / org / intellij / images / thumbnail / actions / HideThumbnailsAction.java
bloba401c21123ca3f589bcce33c65e32f1f6c2d72d6
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.
17 /** $Id$ */
19 package org.intellij.images.thumbnail.actions;
21 import com.intellij.openapi.actionSystem.AnAction;
22 import com.intellij.openapi.actionSystem.AnActionEvent;
23 import org.intellij.images.thumbnail.ThumbnailView;
24 import org.intellij.images.thumbnail.actionSystem.ThumbnailViewActionUtil;
26 /**
27 * Hide tool window.
29 * @author <a href="mailto:aefimov.box@gmail.com">Alexey Efimov</a>
31 public final class HideThumbnailsAction extends AnAction {
32 public void actionPerformed(AnActionEvent e) {
33 ThumbnailView view = ThumbnailViewActionUtil.getVisibleThumbnailView(e);
34 if (view != null) {
35 view.setVisible(false);
39 public void update(AnActionEvent e) {
40 super.update(e);
41 ThumbnailViewActionUtil.setEnabled(e);