org.eclipse.che.ide.api.extension.Extension类的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(9.2k)|赞(0)|评价(0)|浏览(179)

本文整理了Java中org.eclipse.che.ide.api.extension.Extension类的一些代码示例,展示了Extension类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Extension类的具体详情如下:
包路径:org.eclipse.che.ide.api.extension.Extension
类名称:Extension

Extension介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-nodejs-lang-ide

/** @author Dmitry Shnurenko */
@Extension(title = "NodeJs")
public class NodeJsExtension {

 public static final String NODE_JS_CATEGORY = "Node.js";

 @Inject
 private void prepareActions(NodeJsResources resources, IconRegistry iconRegistry) {
  iconRegistry.registerIcon(
    new Icon(NODE_JS_CATEGORY + ".samples.category.icon", resources.jsIcon()));
 }
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-java-ext-lang-client

@Extension(title = "Java Editor", version = "3.1.0")
public class JavaEditorExtension {

 @Inject
 public JavaEditorExtension(
   final EditorRegistry editorRegistry,
   final @Named("JavaFileType") FileType javaFile,
   final @Named("JavaClassFileType") FileType classFile,
   final JavaResources javaResources,
   Resources resources) {
  // register editor provider
  // editorRegistry.registerDefaultEditor(javaFile, javaEditorProvider);
  // editorRegistry.registerDefaultEditor(classFile, javaEditorProvider);

  javaResources.css().ensureInjected();
  resources.css().ensureInjected();
 }
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-php-lang-ide

/** @author Kaloyan Raev */
@Extension(title = "PHP")
public class PhpExtension {

 @Inject
 public PhpExtension(FileTypeRegistry fileTypeRegistry, @Named("PhpFileType") FileType phpFile) {
  fileTypeRegistry.registerFileType(phpFile);
 }

 @Inject
 private void prepareActions(
   CreatePhpSourceFileAction phpSourceFileAction,
   ActionManager actionManager,
   PhpResources resources,
   IconRegistry iconRegistry) {

  DefaultActionGroup newGroup = (DefaultActionGroup) actionManager.getAction(GROUP_FILE_NEW);

  actionManager.registerAction("newPhpFile", phpSourceFileAction);
  newGroup.add(phpSourceFileAction);
  iconRegistry.registerIcon(
    new Icon(PHP_CATEGORY + ".samples.category.icon", resources.category()));
 }
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-sdk-ext-plugins

/**
 * Entry point for an extension that adds support to work with GWT SDM in Che projects.
 *
 * @author Artem Zatsarynnyi
 */
@Singleton
@Extension(title = "GWT support for Che", version = "1.0.0")
public class GwtCheExtension {

 @Inject
 public GwtCheExtension() {}
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-product-info

/** @author Vitalii Parfonov */
@Extension(title = "Che Product Information")
public class CheProductExtension {

 private RedirectToIssueTrackerAction toIssueTrackerAction;
 private RedirectToPublicChatAction toPublicChatAction;

 @Inject
 public CheProductExtension(
   RedirectToIssueTrackerAction toIssueTrackerAction,
   RedirectToPublicChatAction toPublicChatAction) {
  this.toIssueTrackerAction = toIssueTrackerAction;
  this.toPublicChatAction = toPublicChatAction;
 }

 @Inject
 private void prepareActions(ActionManager actionManager) {

  DefaultActionGroup helpGroup = (DefaultActionGroup) actionManager.getAction(GROUP_HELP);

  actionManager.registerAction("toPublicChatAction", toPublicChatAction);
  helpGroup.add(toPublicChatAction);
  actionManager.registerAction("toIssueTrackerAction", toIssueTrackerAction);
  helpGroup.add(toIssueTrackerAction);
 }
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-csharp-lang-ide

/** @author Anatolii Bazko */
@Extension(title = "C#")
public class CSharpExtension {

 public static String CSHARP_CATEGORY = "C#";

 @Inject
 public CSharpExtension(
   FileTypeRegistry fileTypeRegistry, @Named("CSharpFileType") FileType csharpFile) {
  fileTypeRegistry.registerFileType(csharpFile);
 }

 @Inject
 private void prepareActions(
   CreateCSharpSourceFileAction csharpSourceFileAction,
   ActionManager actionManager,
   CSharpResources resources,
   IconRegistry iconRegistry) {

  DefaultActionGroup newGroup = (DefaultActionGroup) actionManager.getAction(GROUP_FILE_NEW);

  actionManager.registerAction("newCSharpFile", csharpSourceFileAction);
  newGroup.add(csharpSourceFileAction);
  iconRegistry.registerIcon(
    new Icon(CSHARP_CATEGORY + ".samples.category.icon", resources.category()));
 }
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-yaml-ide

/**
 * Extension for Yaml support.
 *
 * @author Joshua Pinkney
 */
@Singleton
@Extension(title = "Yaml", version = "3.0.0")
public class YamlExtension {
 @Inject
 public YamlExtension() {}
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-gwt-ext-gwt

/**
 * Entry point for an extension that adds support to work with GWT projects.
 *
 * @author Artem Zatsarynnyi
 */
@Singleton
@Extension(title = "GWT", version = "1.0.0")
public class GwtExtension {

 @Inject
 public GwtExtension() {}
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-python-lang-ide

/**
 * Python extension entry point.
 *
 * @author Valeriy Svydenko
 */
@Extension(title = "Python")
public class PythonExtension {
 @Inject
 public PythonExtension(
   FileTypeRegistry fileTypeRegistry,
   CreatePythonFileAction createPythonFileAction,
   ActionManager actionManager,
   PythonResources pythonResources,
   IconRegistry iconRegistry,
   @Named("PythonFileType") FileType pythonFile) {
  fileTypeRegistry.registerFileType(pythonFile);

  DefaultActionGroup newGroup = (DefaultActionGroup) actionManager.getAction(GROUP_FILE_NEW);
  actionManager.registerAction("pythonFile", createPythonFileAction);
  newGroup.add(createPythonFileAction);

  iconRegistry.registerIcon(
    new Icon(PYTHON_CATEGORY + ".samples.category.icon", pythonResources.category()));
 }
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-nodejs-debugger-ide

/**
 * Extension allows to debug NodeJs applications.
 *
 * @author Anatoliy Bazko
 */
@Singleton
@Extension(title = "NodeJs Debugger", version = "5.0.0")
public class NodeJsDebuggerExtension {

 @Inject
 public NodeJsDebuggerExtension(DebuggerManager debuggerManager, NodeJsDebugger nodeJsDebugger) {
  debuggerManager.registeredDebugger(NodeJsDebugger.ID, nodeJsDebugger);
 }
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-ceylon-lang-ide

@Extension(title = "Ceylon")
public class CeylonExtension {

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-help-ext-client

/** @author Vitalii Parfonov */
@Singleton
@Extension(title = "Help Extension", version = "3.0.0")
public class HelpAboutExtension {

 @Inject
 public HelpAboutExtension(
   ActionManager actionManager,
   final ShowAboutAction showAboutAction,
   final RedirectToSupportAction redirectToSupportAction) {

  // Compose Help menu
  DefaultActionGroup helpGroup =
    (DefaultActionGroup) actionManager.getAction(IdeActions.GROUP_HELP);
  actionManager.registerAction("showAbout", showAboutAction);
  actionManager.registerAction("redirectToSupport", redirectToSupportAction);

  helpGroup.addSeparator();
  helpGroup.add(redirectToSupportAction);
  helpGroup.add(showAboutAction);
 }
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-ext-dashboard-client

/**
 * Extension that adds redirect to Dashboard button to the main menu.
 *
 * @author Oleksii Orel
 */
@Singleton
@Extension(title = "Dashboard", version = "4.0.0")
public class DashboardExtension {

 @Inject
 public DashboardExtension(
   ActionManager actionManager,
   RedirectToDashboardAction redirectToDashboardAction,
   DashboardResources dashboardResources) {
  actionManager.registerAction("redirectToDashboardAction", redirectToDashboardAction);
  DefaultActionGroup mainToolbarGroup =
    (DefaultActionGroup) actionManager.getAction(GROUP_LEFT_MAIN_MENU);
  mainToolbarGroup.add(redirectToDashboardAction, Constraints.FIRST);

  dashboardResources.dashboardCSS().ensureInjected();
 }
}

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

/** @author Vladyslav Zhukovskii */
@Singleton
@Extension(title = "Factory", version = "3.0.0")
public class FactoryExtension {

 @Inject
 public FactoryExtension(
   AcceptFactoryHandler acceptFactoryHandler,
   ActionManager actionManager,
   FactoryResources resources,
   CreateFactoryAction configureFactoryAction,
   OpenWelcomePageAction openWelcomePageAction) {
  acceptFactoryHandler.process();

  resources.factoryCSS().ensureInjected();

  DefaultActionGroup workspaceGroup =
    (DefaultActionGroup) actionManager.getAction(GROUP_WORKSPACE);

  actionManager.registerAction("openWelcomePage", openWelcomePageAction);
  actionManager.registerAction("configureFactoryAction", configureFactoryAction);

  workspaceGroup.add(configureFactoryAction);
 }
}

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

@Extension(title = "Activity Tracking Extension", version = "1.0.0")
public class ActivityTrackingExtension {

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-java-ext-lang-client

@Extension(title = "Java", version = "3.0.0")
public class JavaExtension {

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-maven-ide

@Extension(title = "Maven", version = "3.0.0")
public class MavenExtension {
 private static List<MavenArchetype> archetypes;

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-web-ext-web

@Extension(title = "Web", version = "3.0.0", description = "syntax highlighting and autocomplete.")
public class WebExtension {

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-debugger-ide

@Extension(title = "Debugger", version = "4.1.0")
public class DebuggerExtension {

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-git-ext-git

@Extension(title = "Git", version = "3.0.0")
public class GitExtension {
 public static final String GIT_GROUP_MAIN_MENU = "Git";

相关文章

Extension类方法