KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > aspectj > ajde > BuildConfigManager


1
2 /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
3  *
4  * This file is part of the IDE support for the AspectJ(tm)
5  * programming language; see http://aspectj.org
6  *
7  * The contents of this file are subject to the Mozilla Public License
8  * Version 1.1 (the "License"); you may not use this file except in
9  * compliance with the License. You may obtain a copy of the License at
10  * either http://www.mozilla.org/MPL/ or http://aspectj.org/MPL/.
11  *
12  * Software distributed under the License is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14  * for the specific language governing rights and limitations under the
15  * License.
16  *
17  * The Original Code is AspectJ.
18  *
19  * The Initial Developer of the Original Code is Xerox Corporation. Portions
20  * created by Xerox Corporation are Copyright (C) 1999-2002 Xerox Corporation.
21  * All Rights Reserved.
22  *
23  * Contributor(s):
24  */

25  
26 package org.aspectj.ajde;
27
28 import java.util.*;
29
30 import org.aspectj.ajde.ui.*;
31 import org.aspectj.asm.*;
32
33 /**
34  * @author Mik Kersten
35  */

36 public interface BuildConfigManager {
37     
38     public static final String JavaDoc CONFIG_FILE_SUFFIX = ".lst";
39     
40     public static final String JavaDoc DEFAULT_CONFIG_LABEL = "<all project files>";
41     
42     /**
43      * Returns the currently active build configuration file. The current active
44      * build configuration file that is set in this class is used for building and
45      * for updating the structure model.
46      *
47      * @return full path to the file
48      */

49     public String JavaDoc getActiveConfigFile();
50     
51     /**
52      * Sets the currently active build configuration file.
53      *
54      * @param full path to the file
55      */

56     public void setActiveConfigFile(String JavaDoc currConfigFilePath);
57
58     /**
59      * Add a listner that will be notified of build configuration change events
60      */

61     public void addListener(BuildConfigListener configurationListener);
62
63     /**
64      * Remove a configuration listener.
65      */

66     public void removeListener(BuildConfigListener configurationListener);
67      
68     /**
69      * Build a model for the corresponding configuration file.
70      *
71      * @param full path to the file
72      */

73     public BuildConfigModel buildModel(String JavaDoc configFilePath);
74     
75     /**
76      * Save the given configuration model to the file that it was generated from.
77      */

78     public void writeModel(BuildConfigModel model);
79     
80     /**
81      * Write a list of source files into a configuration file. File paths will be
82      * written relative to the path of the configuration file.
83      */

84     public void writePaths(String JavaDoc configFilePath, List paths);
85     
86     /**
87      * Add files to a configuration.
88      *
89      * @param configFilePath full path to the configuration file
90      * @param files list of full paths to the files to be added
91      */

92     public void addFilesToConfig(String JavaDoc configFilePath, List files);
93
94     /**
95      * Remove files from a configuration.
96      *
97      * @param configFilePath full path to the configuration file
98      * @param files list of full paths to the files to be removed
99      */

100     public void removeFilesFromConfig(String JavaDoc configFilePath, List files);
101 }
102
103
104
Popular Tags