2 * Copyright (c) 2003-2004 Christopher Lenz and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * Christopher Lenz - initial API
11 * $Id: IProfileManager.java,v 1.1 2004-09-02 18:07:14 jsurfer Exp $
14 package net.sourceforge.phpeclipse.css.core.profiles;
16 import org.eclipse.core.resources.IResource;
19 * Manages the CSS profiles.
21 public interface IProfileManager {
24 * Returns the list of available profiles.
26 * @return an array containing the descriptors of all available profiles
28 IProfileDescriptor[] getProfileDescriptors();
31 * Returns the profile that is selected for the specified resource or
34 * @param resource the resource for which the profile should be retrieved,
35 * or <code>null</code> to retrieve the default profile as specified
36 * in the plugin preferences
39 IProfile getProfile(IResource resource);
42 * Sets the profile that should be used for the specified resource. If the
43 * resource is an <code>IProject</code>, the profile will be used as the
44 * default profile for all resources in the project. Otherwise, it will be
45 * used only for the resource. If the resource is <code>null</code>, the
46 * profile will be selected as the global default profile.
49 * @param profileId The ID of the profile
51 void setProfile(IResource resource, String profileId);