PageRenderTime 138ms CodeModel.GetById 134ms app.highlight 2ms RepoModel.GetById 1ms 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
 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
22
23package sessions;
24
25
26import java.util.Vector;
27import org.gjt.sp.jedit.EBComponent;
28import org.gjt.sp.jedit.EBMessage;
29
30
31/**
32 * This message is sent out on EditBus <i>after</i> the individual
33 * <code>SessionPropertyChanged</code> and
34 * <code>SessionPropertyRemoved</code> messages
35 * have been sent.
36 * This message is sent as the last step after the session properties
37 * dialog has been closed with "Ok", or applied with "Apply".
38 */
39public final class SessionPropertiesChanged extends EBMessage
40{
41
42	SessionPropertiesChanged(EBComponent source, Session session)
43	{
44		super(source);
45		this.session = session;
46	}
47
48
49	public final SessionManager getSessionManager()
50	{
51		return (SessionManager) getSource();
52	}
53
54
55	/**
56	 * Return the session bound to this message.
57	 */
58	public final Session getSession()
59	{
60		return session;
61	}
62
63
64	public String paramString()
65	{
66		return super.paramString() + ",session=" + session;
67	}
68
69
70	private Session session;
71
72}
73