当前位置: 首页>>代码示例>>Java>>正文


Java IConsoleManager.showConsoleView方法代码示例

本文整理汇总了Java中org.eclipse.ui.console.IConsoleManager.showConsoleView方法的典型用法代码示例。如果您正苦于以下问题:Java IConsoleManager.showConsoleView方法的具体用法?Java IConsoleManager.showConsoleView怎么用?Java IConsoleManager.showConsoleView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.ui.console.IConsoleManager的用法示例。


在下文中一共展示了IConsoleManager.showConsoleView方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: showConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
public static PluginDependenciesConsole showConsole() {
    IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
    boolean exists = false;
    if (console != null) {
        IConsole[] existing = manager.getConsoles();
        for (int i = 0; i < existing.length; i++) {
            if (console == existing[i]) {
                exists = true;
            }
        }
    } else {
        console = new PluginDependenciesConsole("Plug-in Dependencies", null, true);
    }
    if (!exists) {
        manager.addConsoles(new IConsole[] { console });
    }
    ITheme theme = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme();
    theme.addPropertyChangeListener(console);
    console.setConsoleFont();
    manager.showConsoleView(console);
    return console;
}
 
开发者ID:iloveeclipse,项目名称:plugindependencies,代码行数:23,代码来源:PluginDependenciesConsole.java

示例2: log

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
@Override
public void log(final Object o) {

	final IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
	final BuilderStateConsole console = from(asList(manager.getConsoles())).filter(BuilderStateConsole.class)
			.first()
			.orNull();

	if (console != null) {
		if (o instanceof Throwable) {
			console.println(getStackTraceAsString((Throwable) o));
		} else {
			console.println(String.valueOf(o));
		}
		manager.showConsoleView(console);
	}

}
 
开发者ID:eclipse,项目名称:n4js,代码行数:19,代码来源:BuilderStateLogger.java

示例3: execute

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
@Override
public Object execute ( final ExecutionEvent event ) throws ExecutionException
{
    final List<IConsole> consoles = new ArrayList<IConsole> ();

    for ( final Item item : SelectionHelper.iterable ( getSelection (), Item.class ) )
    {
        final IConsole console = createConsole ( item ).getConsole ();
        if ( console != null )
        {
            consoles.add ( console );
        }
    }

    final IConsoleManager cm = ConsolePlugin.getDefault ().getConsoleManager ();
    if ( !consoles.isEmpty () )
    {
        cm.addConsoles ( consoles.toArray ( new IConsole[consoles.size ()] ) );
        cm.showConsoleView ( consoles.get ( 0 ) );
    }

    return null;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:24,代码来源:StartItemTrace.java

示例4: openConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
@Override
public void openConsole() {
    console = getConsole();
    if (console != null) {
        IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
        IConsole[] existing = manager.getConsoles();
        boolean exists = false;
        for (int i = 0; i < existing.length; i++) {
            if(console == existing[i])
                exists = true;
        }
        if(!exists)
            manager.addConsoles(new IConsole[] {console});
        manager.showConsoleView(console);
    }
}
 
开发者ID:Ericsson,项目名称:CodeCheckerEclipsePlugin,代码行数:17,代码来源:ConsoleFactory.java

示例5: showConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
public static void showConsole(IConsole console) {
	if (console != null) {
		IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
		IConsole[] existing = manager.getConsoles();
		boolean exists = false;
		for (int i = 0; i < existing.length; i++) {
			if (console == existing[i]) {
				exists = true;
			}
		}
		if (!exists) {
			manager.addConsoles(new IConsole[] { console });
		}
		manager.showConsoleView(console);
	}
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:17,代码来源:TypeScriptConsoleHelper.java

示例6: findConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
private MessageConsole findConsole(String name) {
	ConsolePlugin plugin = ConsolePlugin.getDefault();
	IConsoleManager conMan = plugin.getConsoleManager();
	
	// search existing consoles
	IConsole[] existing = conMan.getConsoles();
	for (int i = 0; i < existing.length; i++) {
		if (name.equals(existing[i].getName())){
			return (MessageConsole) existing[i];
		}
	}
	
	// no console found, so create a new one
	MessageConsole myConsole = new MessageConsole(name, null);
	conMan.addConsoles(new IConsole[]{myConsole});
	conMan.showConsoleView(myConsole);
	return myConsole;
}
 
开发者ID:alexander-bergmayr,项目名称:caml2tosca,代码行数:19,代码来源:C2TRunHandler.java

示例7: showConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
private void showConsole() {
	ChangeOutPutConsole console = VariantSyncPlugin.getDefault().getConsole();
	if (console != null) {
		IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
		IConsole[] existing = manager.getConsoles();
		boolean exist = false;
		for (int i = 0; i < existing.length; i++) {
			if (console == existing[i]) {
				exist = true;
			}
		}
		if (!exist) {
			manager.addConsoles(new IConsole[] { console });
		}
		manager.showConsoleView(console);
	}

}
 
开发者ID:1Tristan,项目名称:VariantSync,代码行数:19,代码来源:ConsoleFactory.java

示例8: showConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
public static JDependConsole showConsole() {
    IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
    boolean exists = false;
    if (console != null) {
        IConsole[] existing = manager.getConsoles();
        for (int i = 0; i < existing.length; i++) {
            if (console == existing[i]) {
                exists = true;
            }
        }
    } else {
        console = new JDependConsole("JDepend", null, true);
    }
    if (!exists) {
        manager.addConsoles(new IConsole[] { console });
    }
    manager.showConsoleView(console);
    return console;
}
 
开发者ID:iloveeclipse,项目名称:jdepend4eclipse,代码行数:20,代码来源:JDependConsole.java

示例9: findConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
private static MessageConsole findConsole(String name) {//Find and return console, otherwise make one

		if (ConsolePlugin.getDefault() == null)
			return null;
		ConsolePlugin plugin = ConsolePlugin.getDefault();
		IConsoleManager YangConsole = plugin.getConsoleManager();
		IConsole[] existing = YangConsole.getConsoles();
		for (int i = 0; i < existing.length; i++)
			if (name.equals(existing[i].getName())) {
				YangConsole.showConsoleView(existing[i]);
				return (MessageConsole) existing[i];
			}
		MessageConsole myConsole = new MessageConsole(name, null);
		YangConsole.addConsoles(new IConsole[] { myConsole });
		return myConsole;
	}
 
开发者ID:att,项目名称:yang-design-studio,代码行数:17,代码来源:YangToPNG.java

示例10: findConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
private static MessageConsole findConsole(String name) {//Find and return console, otherwise make one

   if (ConsolePlugin.getDefault() == null)
    	return null;
   ConsolePlugin plugin = ConsolePlugin.getDefault();
   IConsoleManager YangConsole = plugin.getConsoleManager();
   IConsole[] existing = YangConsole.getConsoles();
   for (int i = 0; i < existing.length; i++)
      if (name.equals(existing[i].getName())) {
      	YangConsole.showConsoleView(existing[i]);
      	return (MessageConsole) existing[i];
      }
   MessageConsole myConsole = new MessageConsole(name, null);
   YangConsole.addConsoles(new IConsole[] { myConsole });
   return myConsole;
}
 
开发者ID:att,项目名称:yang-design-studio,代码行数:17,代码来源:YangToSkelxml.java

示例11: findConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
private static MessageConsole findConsole(String name) {//Find and return console, otherwise make one

   if (ConsolePlugin.getDefault() == null)
    	return null;
   ConsolePlugin plugin = ConsolePlugin.getDefault();
   IConsoleManager YangConsole = plugin.getConsoleManager();
   IConsole[] existing = YangConsole.getConsoles();
   for (int i = 0; i < existing.length; i++)
      if (name.equals(existing[i].getName())) {
      	YangConsole.showConsoleView(existing[i]);
      	return (MessageConsole) existing[i];
      }
   // no console found, so create a new one
   MessageConsole myConsole = new MessageConsole(name, null);
   YangConsole.addConsoles(new IConsole[] { myConsole });
   return myConsole;
}
 
开发者ID:att,项目名称:yang-design-studio,代码行数:18,代码来源:YangToDsdl.java

示例12: findConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
private static MessageConsole findConsole(String name) {//Find and return console, otherwise make one

          			if (ConsolePlugin.getDefault() == null)
          				return null;
          			ConsolePlugin plugin = ConsolePlugin.getDefault();
          			IConsoleManager YangConsole = plugin.getConsoleManager();
          			IConsole[] existing = YangConsole.getConsoles();
          			for (int i = 0; i < existing.length; i++)
          				if (name.equals(existing[i].getName())) {
          					YangConsole.showConsoleView(existing[i]);
          					return (MessageConsole) existing[i];
          				}
          			MessageConsole myConsole = new MessageConsole(name, null);
          			YangConsole.addConsoles(new IConsole[] { myConsole });
          			return myConsole;
          		}
 
开发者ID:att,项目名称:yang-design-studio,代码行数:17,代码来源:YangToTree.java

示例13: findConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
private static MessageConsole findConsole(String name) {//Find and return console, otherwise make one

            			if (ConsolePlugin.getDefault() == null)
            				return null;
            			ConsolePlugin plugin = ConsolePlugin.getDefault();
            			IConsoleManager YangConsole = plugin.getConsoleManager();
            			IConsole[] existing = YangConsole.getConsoles();
            			for (int i = 0; i < existing.length; i++)
            				if (name.equals(existing[i].getName())) {
            					YangConsole.showConsoleView(existing[i]);
            					return (MessageConsole) existing[i];
            				}
            			MessageConsole myConsole = new MessageConsole(name, null);
            			YangConsole.addConsoles(new IConsole[] { myConsole });
            			return myConsole;
            		}
 
开发者ID:att,项目名称:yang-design-studio,代码行数:17,代码来源:YangToYin.java

示例14: showConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
public static void showConsole() {
    IvyConsole console = IvyPlugin.getDefault().getConsole();
    if (console != null) {
        IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
        boolean exists = false;
        for (IConsole existing : manager.getConsoles()) {
            if (console == existing) {
                exists = true;
            }
        }
        if (!exists) {
            manager.addConsoles(new IConsole[] {console});
        }
        manager.showConsoleView(console);
    }
}
 
开发者ID:apache,项目名称:ant-ivyde,代码行数:17,代码来源:IvyConsoleFactory.java

示例15: showConsole

import org.eclipse.ui.console.IConsoleManager; //导入方法依赖的package包/类
public static FindBugsConsole showConsole() {
    IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
    boolean exists = false;
    if (console != null) {
        IConsole[] existing = manager.getConsoles();
        for (int i = 0; i < existing.length; i++) {
            if (console == existing[i]) {
                exists = true;
            }
        }
    } else {
        console = new FindBugsConsole("FindBugs", null, true);
    }
    if (!exists) {
        manager.addConsoles(new IConsole[] { console });
    }
    ITheme theme = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme();
    theme.addPropertyChangeListener(console);
    console.setConsoleFont();
    manager.showConsoleView(console);
    return console;
}
 
开发者ID:OpenNTF,项目名称:FindBug-for-Domino-Designer,代码行数:23,代码来源:FindBugsConsole.java


注:本文中的org.eclipse.ui.console.IConsoleManager.showConsoleView方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。