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.metamodel.structure;
043:
044: import org.netbeans.modules.uml.core.support.umlsupport.IResultCell;
045: import org.netbeans.modules.uml.core.workspacemanagement.IWorkspace;
046:
047: public interface IProjectEventsSink {
048: /**
049: * Fired whenever the passed in Project's Mode property is about to change.
050: */
051: public void onPreModeModified(IProject pProject, String newValue,
052: IResultCell cell);
053:
054: /**
055: * Fired whenever the passed in Project's Mode has been changed.
056: */
057: public void onModeModified(IProject pProject, IResultCell cell);
058:
059: /**
060: * Fired whenever the passed in Project's DefaultLanguage property is about to change.
061: */
062: public void onPreDefaultLanguageModified(IProject pProject,
063: String newValue, IResultCell cell);
064:
065: /**
066: * Fired whenever the passed in Project's DefaultLanguage property has been changed.
067: */
068: public void onDefaultLanguageModified(IProject pProject,
069: IResultCell cell);
070:
071: /**
072: * Fired right before a Project is created.
073: */
074: public void onProjectPreCreate(IWorkspace space, IResultCell cell);
075:
076: /**
077: * Fired after a Project is created.
078: */
079: public void onProjectCreated(IProject Project, IResultCell cell);
080:
081: /**
082: * Fired right before a Project is opened.
083: */
084: public void onProjectPreOpen(IWorkspace space, String projName,
085: IResultCell cell);
086:
087: /**
088: * Fired after a Project is opened.
089: */
090: public void onProjectOpened(IProject Project, IResultCell cell);
091:
092: /**
093: * Fired right before a Project is renamed.
094: */
095: public void onProjectPreRename(IProject Project, String newName,
096: IResultCell cell);
097:
098: /**
099: * Fired after a Project is renamed.
100: */
101: public void onProjectRenamed(IProject Project, String oldName,
102: IResultCell cell);
103:
104: /**
105: * Fired right before a Project is closed.
106: */
107: public void onProjectPreClose(IProject Project, IResultCell cell);
108:
109: /**
110: * Fired after a Project has been closed.
111: */
112: public void onProjectClosed(IProject Project, IResultCell cell);
113:
114: /**
115: * Fired right before a Project is saved.
116: */
117: public void onProjectPreSave(IProject Project, IResultCell cell);
118:
119: /**
120: * Fired after a Project is saved.
121: */
122: public void onProjectSaved(IProject Project, IResultCell cell);
123:
124: /**
125: * Fired right before a referenced library location is added to the Project.
126: */
127: public void onPreReferencedLibraryAdded(IProject Project,
128: String refLibLoc, IResultCell cell);
129:
130: /**
131: * Fired right after a referenced library location is added to the Project.
132: */
133: public void onReferencedLibraryAdded(IProject Project,
134: String refLibLoc, IResultCell cell);
135:
136: /**
137: * Fired right before a referenced library location is removed from the Project.
138: */
139: public void onPreReferencedLibraryRemoved(IProject Project,
140: String refLibLoc, IResultCell cell);
141:
142: /**
143: * Fired right after a referenced library location is removed from the Project.
144: */
145: public void onReferencedLibraryRemoved(IProject Project,
146: String refLibLoc, IResultCell cell);
147:
148: }
|