1 // $Id: MyDoggyToolWindowViewDescriptor.java 165 2009-05-28 21:46:38Z agony $ 2 /* 3 * xsAnalyzer - XML schema analyzing tool. Copyright (C) 2008 Michael Engelhardt 4 * 5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public 6 * License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later 7 * version. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied 10 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 11 * 12 * You should have received a copy of the GNU General Public License along with this program; if not, write to the Free 13 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14 */ 15 /** 16 * 17 */ 18 package de.mindcrimeilab.xsanalyzer.ui.support.mydoggy; 19 20 import org.noos.xing.mydoggy.ToolWindowAnchor; 21 import org.noos.xing.mydoggy.ToolWindowType; 22 import org.springframework.richclient.application.support.DefaultViewDescriptor; 23 24 /** 25 * Spring RCP adapter to the tool window description of mydoggy. 26 * 27 * @author Michael Engelhardt<me@mindcrime-ilab.de> 28 * @author $Author: agony $ 29 * @version $Revision: 165 $ 30 * 31 */ 32 public class MyDoggyToolWindowViewDescriptor extends DefaultViewDescriptor { 33 34 private ToolWindowAnchor anchor; 35 36 private ToolWindowType type; 37 38 private boolean available; 39 40 private boolean active; 41 42 /** 43 * @return the anchor 44 */ 45 public ToolWindowAnchor getAnchor() { 46 return anchor; 47 } 48 49 /** 50 * @param anchor 51 * the anchor to set 52 */ 53 public void setAnchor(ToolWindowAnchor anchor) { 54 this.anchor = anchor; 55 } 56 57 /** 58 * @return the type 59 */ 60 public ToolWindowType getType() { 61 return type; 62 } 63 64 /** 65 * @param type 66 * the type to set 67 */ 68 public void setType(ToolWindowType type) { 69 this.type = type; 70 } 71 72 /** 73 * @return the available 74 */ 75 public boolean isAvailable() { 76 return available; 77 } 78 79 /** 80 * @param available 81 * the available to set 82 */ 83 public void setAvailable(boolean available) { 84 this.available = available; 85 } 86 87 /** 88 * @return the active 89 */ 90 public boolean isActive() { 91 return active; 92 } 93 94 /** 95 * @param active 96 * the active to set 97 */ 98 public void setActive(boolean active) { 99 this.active = active; 100 } 101 102 }