PageRenderTime 46ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/bundles/plugins-trunk/Sessions/sessions/SessionPropertiesChanged.java

#
Java | 73 lines | 25 code | 17 blank | 31 comment | 0 complexity | 714b96690321d862cfc83219ef60af46 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. * SessionPropertiesChanged.java - EditBus message
  3. * Copyright (c) 2001 Dirk Moebius
  4. *
  5. * :tabSize=4:indentSize=4:noTabs=false:maxLineLen=0:
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version 2
  10. * of the License, or any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  20. */
  21. package sessions;
  22. import java.util.Vector;
  23. import org.gjt.sp.jedit.EBComponent;
  24. import org.gjt.sp.jedit.EBMessage;
  25. /**
  26. * This message is sent out on EditBus <i>after</i> the individual
  27. * <code>SessionPropertyChanged</code> and
  28. * <code>SessionPropertyRemoved</code> messages
  29. * have been sent.
  30. * This message is sent as the last step after the session properties
  31. * dialog has been closed with "Ok", or applied with "Apply".
  32. */
  33. public final class SessionPropertiesChanged extends EBMessage
  34. {
  35. SessionPropertiesChanged(EBComponent source, Session session)
  36. {
  37. super(source);
  38. this.session = session;
  39. }
  40. public final SessionManager getSessionManager()
  41. {
  42. return (SessionManager) getSource();
  43. }
  44. /**
  45. * Return the session bound to this message.
  46. */
  47. public final Session getSession()
  48. {
  49. return session;
  50. }
  51. public String paramString()
  52. {
  53. return super.paramString() + ",session=" + session;
  54. }
  55. private Session session;
  56. }