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.workspacemanagement;
043:
044: import org.netbeans.modules.uml.core.support.umlsupport.IResultCell;
045:
046: public interface IWSElementEventsSink {
047: /**
048: * Fired whenever a WSElement is about to be created.
049: */
050: public void onWSElementPreCreate(IWSProject wsProject,
051: String location, String Name, String data, IResultCell cell);
052:
053: /**
054: * Fired right after a WSElement is created.
055: */
056: public void onWSElementCreated(IWSElement element, IResultCell cell);
057:
058: /**
059: * Fired whenever a WSElement is about to be saved.
060: */
061: public void onWSElementPreSave(IWSElement element, IResultCell cell);
062:
063: /**
064: * Fired right after a WSElement is saved.
065: */
066: public void onWSElementSaved(IWSElement element, IResultCell cell);
067:
068: /**
069: * Fired whenever a WSElement is about to be removed from the WSProject.
070: */
071: public void onWSElementPreRemove(IWSElement element,
072: IResultCell cell);
073:
074: /**
075: * Fired right after a WSElement is removed.
076: */
077: public void onWSElementRemoved(IWSElement element, IResultCell cell);
078:
079: /**
080: * Fired whenever the name of the WSElement is about to be changed.
081: */
082: public void onWSElementPreNameChanged(IWSElement element,
083: String proposedValue, IResultCell cell);
084:
085: /**
086: * Fired right after a WSElement's name has changed.
087: */
088: public void onWSElementNameChanged(IWSElement element,
089: IResultCell cell);
090:
091: /**
092: * Fired whenever the owner of the WSElement is about to be changed.
093: */
094: public void onWSElementPreOwnerChange(IWSElement element,
095: IWSProject newOwner, IResultCell cell);
096:
097: /**
098: * Fired right after a WSElement's owner has changed.
099: */
100: public void onWSElementOwnerChanged(IWSElement element,
101: IResultCell cell);
102:
103: /**
104: * Fired whenever the location of the WSElement is about to be changed.
105: */
106: public void onWSElementPreLocationChanged(IWSElement element,
107: String proposedLocation, IResultCell cell);
108:
109: /**
110: * Fired right after a WSElement's location has changed.
111: */
112: public void onWSElementLocationChanged(IWSElement element,
113: IResultCell cell);
114:
115: /**
116: * Fired whenever the data of the WSElement is about to be changed.
117: */
118: public void onWSElementPreDataChanged(IWSElement element,
119: String newData, IResultCell cell);
120:
121: /**
122: * Fired right after a WSElement's data has changed.
123: */
124: public void onWSElementDataChanged(IWSElement element,
125: IResultCell cell);
126:
127: /**
128: * Fired whenever the documentation field of the WSElement is about to be changed.
129: */
130: public void onWSElementPreDocChanged(IWSElement element,
131: String doc, IResultCell cell);
132:
133: /**
134: * Fired right after a WSElement's documentation field has changed.
135: */
136: public void onWSElementDocChanged(IWSElement element,
137: IResultCell cell);
138:
139: /* (non-Javadoc)
140: * @see com.embarcadero.describe.workspacemanagement.IWSElementEventsSink#onWSElementPreAliasChanged(com.embarcadero.describe.workspacemanagement.IWSElement, java.lang.String, com.embarcadero.describe.umlsupport.IResultCell)
141: */
142: public void onWSElementPreAliasChanged(IWSElement element,
143: String proposedValue, IResultCell cell);
144:
145: /* (non-Javadoc)
146: * @see com.embarcadero.describe.workspacemanagement.IWSElementEventsSink#onWSElementAliasChanged(com.embarcadero.describe.workspacemanagement.IWSElement, com.embarcadero.describe.umlsupport.IResultCell)
147: */
148: public void onWSElementAliasChanged(IWSElement element,
149: IResultCell cell);
150:
151: }
|