本文整理匯總了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;
}