本文整理汇总了Java中com.intellij.execution.ui.layout.Tab类的典型用法代码示例。如果您正苦于以下问题:Java Tab类的具体用法?Java Tab怎么用?Java Tab使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Tab类属于com.intellij.execution.ui.layout包,在下文中一共展示了Tab类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isEnabled
import com.intellij.execution.ui.layout.Tab; //导入依赖的package包/类
public static boolean isEnabled(ViewContext context, Content[] content, String place) {
if (!context.isMinimizeActionEnabled() || content.length == 0) {
return false;
}
if (ViewContext.TAB_TOOLBAR_PLACE.equals(place) || ViewContext.TAB_POPUP_PLACE.equals(place)) {
Tab tab = getTabFor(context, content);
if (tab == null) {
return false;
}
return !tab.isDefault() && content.length == 1;
}
else {
return getTabFor(context, content) != null;
}
}
示例2: clearStateFor
import com.intellij.execution.ui.layout.Tab; //导入依赖的package包/类
public void clearStateFor(@NotNull Content content) {
String id = getOrCreateContentId(content);
myDefaultViews.remove(id);
final ViewImpl view = myViews.remove(id);
if (view != null) {
final Tab tab = view.getTab();
if (tab instanceof TabImpl) {
myTabs.remove(tab);
}
}
}
示例3: clearStateFor
import com.intellij.execution.ui.layout.Tab; //导入依赖的package包/类
public void clearStateFor(@NotNull Content content) {
final ViewImpl view = myViews.remove(getOrCreateContentId(content));
if (view != null) {
final Tab tab = view.getTab();
if (tab instanceof TabImpl) {
myTabs.remove(tab);
}
}
}
示例4: clearStateFor
import com.intellij.execution.ui.layout.Tab; //导入依赖的package包/类
public void clearStateFor(@Nonnull Content content) {
String id = getOrCreateContentId(content);
myDefaultViews.remove(id);
final ViewImpl view = myViews.remove(id);
if (view != null) {
final Tab tab = view.getTab();
if (tab instanceof TabImpl) {
myTabs.remove(tab);
}
}
}
示例5: getTabFor
import com.intellij.execution.ui.layout.Tab; //导入依赖的package包/类
@Nullable
protected static Tab getTabFor(final ViewContext context, final Content[] content) {
Grid grid = context.findGridFor(content[0]);
return context.getTabFor(grid);
}
示例6: getTab
import com.intellij.execution.ui.layout.Tab; //导入依赖的package包/类
@Override
public Tab getTab() {
return myTab;
}
示例7: assignTab
import com.intellij.execution.ui.layout.Tab; //导入依赖的package包/类
@Override
public void assignTab(final Tab tab) {
myTab = tab;
}