Skip to content

Instantly share code, notes, and snippets.

View JonasHelming's full-sized avatar

Jonas Helming JonasHelming

  • EclipseSource Munich
  • Munich
View GitHub Profile
@JonasHelming
JonasHelming / EclipseSourceCLA.md
Created November 2, 2023 11:06 — forked from koegel/EclipseSourceCLA.md
CLA for EclipseSource Projects

Copyright © 2023 Eclipse Foundation. This software or document includes material copied from or derived from the Eclipse Contributor Agreement (https://www.eclipse.org/legal/ECA.php)

Thank you for your interest in one or more open-source projects managed by EclipseSource GmbH (“EclipseSource”). In order for You (as defined below) to make intellectual property Contributions (as defined below) now or in the future to EclipseSource projects, You must agree to this CLA. If You have any questions about this agreement, licensing, or anything related to intellectual property at EclipseSource, please send an email to cla@eclipsesource.com.

Please read this CLA carefully before accepting its terms. By accepting the CLA, You are agreeing to be bound by its terms. If You want to accept this CLA, complete the form completely, print a copy for Your records, and when ready, press the “I agree” button at the end of this form.

As used in this CLA:

  • (i) “You” (or “Your”) shall mean the entity that is making this Agreeme
this.modelServerSubscriptionService.onIncrementalUpdateListener(modelServerMessage => {
//do something on update
}
const setCommand = ModelServerCommandUtil.createSetCommand(
modelElement,
propertyToModify,
newValue
);
this.modelServerApi.edit(this.getModelIDToRequest(), setCommand);
@JonasHelming
JonasHelming / theia-hello-world-plugin.ts
Created February 4, 2020 22:23
A Theia Hello World Plugin
import * as theia from '@theia/plugin';
export function start(context: theia.PluginContext) {
const informationMessageTestCommand = {
id: 'hello-world-example-generated',
label: "Hello World"
};
context.subscriptions.push(theia.commands.registerCommand(informationMessageTestCommand, (...args: any[]) => {
theia.window.showInformationMessage('Hello World!');
}));
@JonasHelming
JonasHelming / extension-command-contribution.ts
Created November 12, 2019 14:28
Extension Command Contribution
@injectable()
export class ExtensionCommandContribution implements CommandContribution {
constructor(
@inject(MessageService) private readonly messageService: MessageService,
) { }
registerCommands(registry: CommandRegistry): void {
registry.registerCommand(ExtensionCommand, {
execute: () => this.messageService.info('Hello World!')
@JonasHelming
JonasHelming / extension-contribution.ts
Created November 11, 2019 13:23
extension-contribution
export const ExtensionCommand = {
id: 'Extension.command',
label: "Shows a message"
};
@injectable()
export class ExtensionMenuContribution implements MenuContribution {
registerMenus(menus: MenuModelRegistry): void {
menus.registerMenuAction(CommonMenus.EDIT_FIND, {
@JonasHelming
JonasHelming / extension-frontend-module.ts
Created November 9, 2019 22:30
Hello World Theia extension module
bind(CommandContribution).to(ExtensionCommandContribution);
bind(MenuContribution).to(ExtensionMenuContribution);
@JonasHelming
JonasHelming / EclipseSourceCLA.md
Created October 30, 2019 13:29 — forked from sdirix/EclipseSourceCLA.md
CLA for EclipseSource Projects

Copyright © 2018 Eclipse Foundation. This software or document includes material copied from or derived from the Eclipse Contributor Agreement (https://www.eclipse.org/legal/ECA.php)

Thank you for your interest in one or more projects managed by EclipseSource München GmbH (“EclipseSource”). In order for You (as defined below) to make intellectual property Contributions (as defined below) now or in the future to EclipseSource projects, You must agree to this CLA. If You have any questions about this agreement, licensing, or anything related to intellectual property at EclipseSource, please send an email to cla@eclipsesource.com.

Please read this CLA carefully before accepting its terms. By accepting the CLA, You are agreeing to be bound by its terms. If You want to accept this CLA, complete the form completely, print a copy for Your records, and when ready, press the “I agree” button at the end of this form.

As used in this CLA:

  • (i) “You” (or “Your”) shall mean the entity that is making this Agreement w
new CollectionConsumer([{ foo(): void { console.log('Mock foo') }}]).doSth();
const manualContainer = new Container({ autoBindInjectable: true });
manualContainer.bind(InterfaceA).to(ClassA);
manualContainer.bind(InterfaceB).to(ClassBC);
manualContainer.get(InterfaceConsumer).doSth();