001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.modules.uml.core.roundtripframework;
043:
044: import org.netbeans.modules.uml.core.eventframework.IEventDispatcher;
045: import org.netbeans.modules.uml.core.eventframework.IEventPayload;
046:
047: public interface IRoundTripEventDispatcher extends IEventDispatcher {
048: /**
049: * Registers a sink for the events specified in the IRoundTripAttributeEventsSink interface.
050: */
051: public void registerForRoundTripAttributeEvents(
052: IRoundTripAttributeEventsSink handler, String Language);
053:
054: /**
055: * Revokes the handler identified with the passed in cookie.
056: */
057: public void revokeRoundTripAttributeSink(
058: IRoundTripAttributeEventsSink handler);
059:
060: /**
061: * Registers a sink for the events specified in the IRoundTripAttributeEventsSink interface.
062: */
063: public void registerForRoundTripEnumLiteralEvents(
064: IRoundTripEnumLiteralEventsSink handler, String Language);
065:
066: /**
067: * Revokes the handler identified with the passed in cookie.
068: */
069: public void revokeRoundTripEnumLiteralSink(
070: IRoundTripEnumLiteralEventsSink handler);
071:
072: /**
073: * Registers a sink for the events specified in the IRoundTripOperationEventsSink interface.
074: */
075: public void registerForRoundTripOperationEvents(
076: IRoundTripOperationEventsSink handler, String Language);
077:
078: /**
079: * Revokes the handler identified with the passed in cookie.
080: */
081: public void revokeRoundTripOperationSink(
082: IRoundTripOperationEventsSink handler);
083:
084: /**
085: * Registers a sink for the events specified in the IRoundTripClassEventsSink interface.
086: */
087: public void registerForRoundTripClassEvents(
088: IRoundTripClassEventsSink handler, String Language);
089:
090: /**
091: * Revokes the handler identified with the passed in cookie.
092: */
093: public void revokeRoundTripClassSink(
094: IRoundTripClassEventsSink handler);
095:
096: /**
097: * Registers a sink for the events specified in the IRoundTripClassEventsSink interface.
098: */
099: public void registerForRoundTripEnumEvents(
100: IRoundTripEnumEventsSink handler, String Language);
101:
102: /**
103: * Revokes the handler identified with the passed in cookie.
104: */
105: public void revokeRoundTripEnumSink(IRoundTripEnumEventsSink handler);
106:
107: /**
108: * Registers a sink for the events specified in the IRoundTripPackageEventsSink interface.
109: */
110: public void registerForRoundTripPackageEvents(
111: IRoundTripPackageEventsSink handler, String Language);
112:
113: /**
114: * Revokes the handler identified with the passed in cookie.
115: */
116: public void revokeRoundTripPackageSink(
117: IRoundTripPackageEventsSink handler);
118:
119: /**
120: * Registers a sink for the events specified in the IRoundTripRelationEventsSink interface.
121: */
122: public void registerForRoundTripRelationEvents(
123: IRoundTripRelationEventsSink handler, String Language);
124:
125: /**
126: * Revokes the handler identified with the passed in cookie.
127: */
128: public void revokeRoundTripRelationSink(
129: IRoundTripRelationEventsSink handler);
130:
131: /**
132: * Registers a sink for the events specified in the RequestProcessorInitEvents interface.
133: */
134: public void registerForRequestProcessorInitEvents(
135: IRequestProcessorInitEventsSink handler);
136:
137: /**
138: * Revokes the handler identified with the passed in cookie.
139: */
140: public void revokeRequestProcessorInitEvents(
141: IRequestProcessorInitEventsSink handler);
142:
143: /**
144: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
145: */
146: public boolean firePreAttributeChangeRequest(IChangeRequest req,
147: IEventPayload Payload);
148:
149: /**
150: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
151: */
152: public void fireAttributeChangeRequest(IChangeRequest req,
153: IEventPayload Payload);
154:
155: /**
156: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
157: */
158: public boolean firePreEnumLiteralChangeRequest(IChangeRequest req,
159: IEventPayload Payload);
160:
161: /**
162: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
163: */
164: public void fireEnumLiteralChangeRequest(IChangeRequest req,
165: IEventPayload Payload);
166:
167: /**
168: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
169: */
170: public boolean firePreOperationChangeRequest(IChangeRequest req,
171: IEventPayload Payload);
172:
173: /**
174: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
175: */
176: public void fireOperationChangeRequest(IChangeRequest req,
177: IEventPayload Payload);
178:
179: /**
180: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
181: */
182: public boolean firePreClassChangeRequest(IChangeRequest req,
183: IEventPayload Payload);
184:
185: /**
186: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
187: */
188: public void fireClassChangeRequest(IChangeRequest req,
189: IEventPayload Payload);
190:
191: /**
192: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
193: */
194: public boolean firePreEnumerationChangeRequest(IChangeRequest req,
195: IEventPayload Payload);
196:
197: /**
198: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
199: */
200: public void fireEnumerationChangeRequest(IChangeRequest req,
201: IEventPayload Payload);
202:
203: /**
204: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
205: */
206: public boolean firePrePackageChangeRequest(IChangeRequest req,
207: IEventPayload Payload);
208:
209: /**
210: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
211: */
212: public void firePackageChangeRequest(IChangeRequest req,
213: IEventPayload Payload);
214:
215: /**
216: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
217: */
218: public boolean firePreRelationChangeRequest(IChangeRequest req,
219: IEventPayload Payload);
220:
221: /**
222: * Fired after the RequestProcessor has filtered its changes, but before actual processing of the requests has been done.
223: */
224: public void fireRelationChangeRequest(IChangeRequest req,
225: IEventPayload Payload);
226:
227: /**
228: * Fired when the RequestProcessor is completely initialized.
229: */
230: public boolean firePreInitialized(String proc, IEventPayload Payload);
231:
232: /**
233: * Fired when the RequestProcessor is completely initialized.
234: */
235: public void fireInitialized(IRequestProcessor proc,
236: IEventPayload Payload);
237:
238: }
|