ComponentWithBrowseButton - optional remove listener on hide
[fedora-idea.git] / platform / lang-api / src / com / intellij / profile / ui / AbstractProfileMapping.java
blobe57a6c7fe9b239454b97db6ad02401bd26443b3c
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.profile.ui;
18 import com.intellij.openapi.options.UnnamedConfigurable;
19 import com.intellij.openapi.util.Condition;
21 import javax.swing.*;
23 /**
24 * User: anna
25 * Date: 01-Dec-2005
27 public interface AbstractProfileMapping extends UnnamedConfigurable {
28 String getProfileColumnTitle();
29 String getScopeColumnTitle();
30 Condition<String> openEditProfilesDialog();
32 interface MapRule {
33 String getProfile();
34 String getScopeName();
35 boolean isProperProfile();
36 String assignProfile(String profile);
37 void setProfile(String profile);
38 void deassignProfile();
39 Icon getIcon(final boolean expanded);
40 boolean canBeEdited();
41 void reset();
42 boolean isRoot();