PageRenderTime 40ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/XInsert/src/XTreeItem.java

#
Java | 63 lines | 30 code | 10 blank | 23 comment | 0 complexity | aaf15e810c8e7eb48aa1e33cd8d89c49 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. /*
  2. * 19:40:24 10/09/99
  3. *
  4. * XTreeItem.java -
  5. * Copyright (C) 1999 Romain Guy - powerteam@chez.com
  6. * Portions Copyright (C) 2000 Dominic Stolerman - dominic@sspd.org.uk
  7. * www.chez.com/powerteam
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * as published by the Free Software Foundation; either version 2
  12. * of the License, or any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  22. */
  23. public class XTreeItem {
  24. public static final int UNKNOWN_TYPE = -1;
  25. public static final int TEXT_TYPE =0;
  26. public static final int MACRO_TYPE = 1;
  27. public static final int XINSERT_SCRIPT_TYPE = 2;
  28. public static final int NAMED_MACRO_TYPE = 3;
  29. public static final int REFERENCE_TYPE = 4;
  30. public static final int ACTION_TYPE = 5;
  31. private int type;
  32. private String content;
  33. public XTreeItem(String content) {
  34. this(content, TEXT_TYPE);
  35. }
  36. public XTreeItem(String content, int type) {
  37. this.content = content;
  38. this.type = type;
  39. }
  40. public int getType() {
  41. return type;
  42. }
  43. public void setType(int type) {
  44. this.type = type;
  45. }
  46. public String getContent() {
  47. return content;
  48. }
  49. public void setContent(String content) {
  50. this.content = content;
  51. }
  52. }
  53. // End of XTreeItem.java