Skip to content

Commit

Permalink
aliases added for core api
Browse files Browse the repository at this point in the history
  • Loading branch information
delchev committed Nov 13, 2017
1 parent 18f6bf8 commit 831cfad
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 0 deletions.
14 changes: 14 additions & 0 deletions api/api-javascript/api-core/src/main/resources/core/console.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2017 SAP and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* Contributors:
* SAP - initial API and implementation
*/

var console = require('core/v3/console');
for(var propertyName in console) {
exports[propertyName] = console[propertyName];
}
14 changes: 14 additions & 0 deletions api/api-javascript/api-core/src/main/resources/core/context.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2017 SAP and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* Contributors:
* SAP - initial API and implementation
*/

var context = require('core/v3/context');
for(var propertyName in context) {
exports[propertyName] = context[propertyName];
}
14 changes: 14 additions & 0 deletions api/api-javascript/api-core/src/main/resources/core/env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2017 SAP and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* Contributors:
* SAP - initial API and implementation
*/

var env = require('core/v3/env');
for(var propertyName in env) {
exports[propertyName] = env[propertyName];
}
14 changes: 14 additions & 0 deletions api/api-javascript/api-core/src/main/resources/core/extensions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2017 SAP and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* Contributors:
* SAP - initial API and implementation
*/

var extensions = require('core/v3/extensions');
for(var propertyName in extensions) {
exports[propertyName] = extensions[propertyName];
}
14 changes: 14 additions & 0 deletions api/api-javascript/api-core/src/main/resources/core/globals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2017 SAP and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* Contributors:
* SAP - initial API and implementation
*/

var globals = require('core/v3/globals');
for(var propertyName in globals) {
exports[propertyName] = globals[propertyName];
}
14 changes: 14 additions & 0 deletions api/api-javascript/api-core/src/main/resources/core/java.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2017 SAP and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* Contributors:
* SAP - initial API and implementation
*/

var java = require('core/v3/java');
for(var propertyName in java) {
exports[propertyName] = java[propertyName];
}
40 changes: 40 additions & 0 deletions api/api-javascript/api-core/src/main/resources/core/modules.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright (c) 2017 SAP and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* Contributors:
* SAP - initial API and implementation
*/

exports.getConsole = function() {
var console = require('core/v3/console');
return console;
};

exports.getContext = function() {
var context = require('core/v3/context');
return context;
};

exports.getEnv = function() {
var env = require('core/v3/env');
return env;
};

exports.getExtensions = function() {
var extensions = require('core/v3/extensions');
return extensions;
};

exports.getGlobals = function() {
var globals = require('core/v3/globals');
return globals;
};

exports.getJava = function() {
var java = require('core/v3/java');
return java;
};

0 comments on commit 831cfad

Please sign in to comment.