Skip to content

Commit 29ab278

Browse files
author
angelozerr
committed
Provide Local Terminal (Interpreter) with 'cd', 'npm' interpreter. See
angelozerr/angular-eclipse#4
1 parent da0432e commit 29ab278

File tree

29 files changed

+2232
-0
lines changed

29 files changed

+2232
-0
lines changed

eclipse/terminal/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<parent>
4+
<groupId>fr.opensagres.js</groupId>
5+
<artifactId>eclipse</artifactId>
6+
<version>1.0.0-SNAPSHOT</version>
7+
</parent>
8+
<artifactId>terminal</artifactId>
9+
<packaging>pom</packaging>
10+
<modules>
11+
<module>ts.eclipse.ide.terminal.interpreter</module>
12+
<module>ts.eclipse.ide.terminal.interpreter.npm</module>
13+
</modules>
14+
</project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src/"/>
6+
<classpathentry kind="output" path="target/classes"/>
7+
</classpath>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/bin
2+
/target
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>ts.eclipse.ide.terminal.interpreter.npm</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>org.eclipse.m2e.core.maven2Builder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
31+
<nature>org.eclipse.pde.PluginNature</nature>
32+
<nature>org.eclipse.jdt.core.javanature</nature>
33+
</natures>
34+
</projectDescription>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: %pluginName
4+
Bundle-Vendor: %providerName
5+
Bundle-Localization: plugin
6+
Bundle-SymbolicName: ts.eclipse.ide.terminal.interpreter.npm;singleton:=true
7+
Bundle-Version: 1.0.0.qualifier
8+
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
9+
Require-Bundle: org.eclipse.core.runtime,
10+
org.eclipse.core.resources,
11+
org.eclipse.tm.terminal.connector.local,
12+
org.eclipse.tm.terminal.view.core,
13+
org.eclipse.tm.terminal.view.ui,
14+
org.eclipse.tm.terminal.control,
15+
org.eclipse.core.expressions,
16+
org.eclipse.ui.workbench,
17+
org.eclipse.swt,
18+
org.eclipse.jface,
19+
org.eclipse.ui.ide,
20+
ts.eclipse.ide.terminal.interpreter;bundle-version="1.0.0"
21+
Export-Package: ts.eclipse.ide.terminal.interpreter,
22+
ts.eclipse.ide.terminal.interpreter.builder,
23+
ts.eclipse.ide.terminal.interpreter.compiler,
24+
ts.eclipse.ide.terminal.interpreter.console,
25+
ts.eclipse.ide.terminal.interpreter.launch,
26+
ts.eclipse.ide.terminal.interpreter.nodejs,
27+
ts.eclipse.ide.terminal.interpreter.preferences,
28+
ts.eclipse.ide.terminal.interpreter.repository,
29+
ts.eclipse.ide.terminal.interpreter.resources,
30+
ts.eclipse.ide.terminal.interpreter.resources.buildpath,
31+
ts.eclipse.ide.terminal.interpreter.resources.jsconfig,
32+
ts.eclipse.ide.terminal.interpreter.resources.watcher,
33+
ts.eclipse.ide.terminal.interpreter.tslint,
34+
ts.eclipse.ide.terminal.interpreter.utils
35+
Bundle-ActivationPolicy: lazy
36+
Bundle-Activator: ts.eclipse.ide.terminal.interpreter.npm.internal.NpmTerminalInterpreterPlugin
37+
Import-Package: com.eclipsesource.json;version="[0.9.4,0.9.5)"
38+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
###############################################################################
2+
# Copyright (c) 2013 Angelo Zerr and others.
3+
# All rights reserved. This program and the accompanying materials
4+
# are made available under the terms of the Eclipse Public License v1.0
5+
# which accompanies this distribution, and is available at
6+
# http://www.eclipse.org/legal/epl-v10.html
7+
#
8+
# Contributors:
9+
# Angelo Zerr <[email protected]> - Initial API and implementation
10+
###############################################################################
11+
source.. = src/
12+
output.. = bin/
13+
bin.includes = META-INF/,\
14+
.,\
15+
plugin.properties,\
16+
plugin.xml
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
###############################################################################
2+
# Copyright (c) 2015-2016 Angelo Zerr and others.
3+
# All rights reserved. This program and the accompanying materials
4+
# are made available under the terms of the Eclipse Public License v1.0
5+
# which accompanies this distribution, and is available at
6+
# http://www.eclipse.org/legal/epl-v10.html
7+
#
8+
# Contributors:
9+
# Angelo Zerr <[email protected]> - Initial API and implementation
10+
###############################################################################
11+
pluginName=Terminal Interpreter for npm
12+
providerName=Angelo ZERR
13+
14+
# Extension point
15+
interpreter.npm.name=Interpret 'npm' commands to refersh Project Explorer after npm install.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?eclipse version="3.0"?>
3+
<!--
4+
###############################################################################
5+
# Copyright (c) 2015-2016 Angelo Zerr and others.
6+
# All rights reserved. This program and the accompanying materials
7+
# are made available under the terms of the Eclipse Public License v1.0
8+
# which accompanies this distribution, and is available at
9+
# http://www.eclipse.org/legal/epl-v10.html
10+
#
11+
# Contributors:
12+
# Angelo Zerr <[email protected]> - Initial API and implementation
13+
###############################################################################
14+
-->
15+
<plugin>
16+
17+
<extension
18+
point="ts.eclipse.ide.terminal.interpreter.commandInterpreterFactories">
19+
<factory
20+
id="ts.eclipse.ide.terminal.interpreter.npm.commands.NpmCommandInterpreterFactory"
21+
name="%interpreter.npm.name"
22+
commands="npm"
23+
class="ts.eclipse.ide.terminal.interpreter.npm.internal.commands.NpmCommandInterpreterFactory">
24+
</factory>
25+
</extension>
26+
27+
</plugin>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<artifactId>ts.eclipse.ide.terminal.interpreter.npm</artifactId>
4+
<packaging>eclipse-plugin</packaging>
5+
<parent>
6+
<groupId>fr.opensagres.js</groupId>
7+
<artifactId>terminal</artifactId>
8+
<version>1.0.0-SNAPSHOT</version>
9+
</parent>
10+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package ts.eclipse.ide.terminal.interpreter.npm.internal;
2+
3+
import org.osgi.framework.BundleActivator;
4+
import org.osgi.framework.BundleContext;
5+
6+
public class NpmTerminalInterpreterPlugin implements BundleActivator {
7+
8+
@Override
9+
public void start(BundleContext context) throws Exception {
10+
11+
}
12+
13+
@Override
14+
public void stop(BundleContext context) throws Exception {
15+
16+
}
17+
18+
}

0 commit comments

Comments
 (0)