Lines 16-24
Link Here
|
16 |
|
16 |
|
17 |
package org.eclipse.rse.core.model; |
17 |
package org.eclipse.rse.core.model; |
18 |
|
18 |
|
19 |
import java.util.List; |
|
|
20 |
import java.util.Vector; |
21 |
|
22 |
/** |
19 |
/** |
23 |
* Manages a list of SystemProfile objects. System profiles |
20 |
* Manages a list of SystemProfile objects. System profiles |
24 |
* should be created, deleted, restored, activated, and deactivated though |
21 |
* should be created, deleted, restored, activated, and deactivated though |
Lines 61-71
Link Here
|
61 |
public String[] getSystemProfileNames(); |
58 |
public String[] getSystemProfileNames(); |
62 |
|
59 |
|
63 |
/** |
60 |
/** |
64 |
* @return a vector of all existing profile names. |
|
|
65 |
*/ |
66 |
public Vector getSystemProfileNamesVector(); |
67 |
|
68 |
/** |
69 |
* Get a profile given its name. |
61 |
* Get a profile given its name. |
70 |
* @param name the name of the profile |
62 |
* @param name the name of the profile |
71 |
* @return the profile |
63 |
* @return the profile |
Lines 83-95
Link Here
|
83 |
public String[] getActiveSystemProfileNames(); |
75 |
public String[] getActiveSystemProfileNames(); |
84 |
|
76 |
|
85 |
/** |
77 |
/** |
86 |
* Get the index of a profile given its name. |
|
|
87 |
* @param profileName the name of the profile to look for. |
88 |
* @return 0-based position of the given active profile within the list of active profiles. |
89 |
*/ |
90 |
public int getActiveSystemProfilePosition(String profileName); |
91 |
|
92 |
/** |
93 |
* @return the default private profile created at first touch. |
78 |
* @return the default private profile created at first touch. |
94 |
* Will return null if it has been renamed. |
79 |
* Will return null if it has been renamed. |
95 |
*/ |
80 |
*/ |
Lines 133-160
Link Here
|
133 |
public boolean isSystemProfileActive(String profileName); |
118 |
public boolean isSystemProfileActive(String profileName); |
134 |
|
119 |
|
135 |
/** |
120 |
/** |
136 |
* @return The list of profiles known to this manager. This list is generated |
|
|
137 |
* at the point of this call and may thus be manipulated by the caller. |
138 |
*/ |
139 |
public List getProfiles(); |
140 |
|
141 |
/** |
142 |
* Adds a system profile to this profile manager. |
121 |
* Adds a system profile to this profile manager. |
143 |
* @param profile The system profile to add. |
122 |
* @param profile The system profile to add. |
144 |
*/ |
123 |
*/ |
145 |
public void addSystemProfile(ISystemProfile profile); |
124 |
public void addSystemProfile(ISystemProfile profile); |
146 |
|
125 |
|
147 |
// /** |
|
|
148 |
// * Reusable method to return a name validator for renaming a profile. |
149 |
// * @param the current profile name on updates. Can be null for new profiles. Used |
150 |
// * to remove from the existing name list the current connection. |
151 |
// */ |
152 |
// public ISystemValidator getProfileNameValidator(String profileName); |
153 |
// /** |
154 |
// * Reusable method to return a name validator for renaming a profile. |
155 |
// * @param the current profile object on updates. Can be null for new profiles. Used |
156 |
// * to remove from the existing name list the current connection. |
157 |
// */ |
158 |
// public ISystemValidator getProfileNameValidator(ISystemProfile profile); |
159 |
|
160 |
} |
126 |
} |