Compare commits
10 Commits
master
...
kjwang/P_R
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf6edea5a5 | ||
|
|
29c59ff8b1 | ||
|
|
40aa1a3d48 | ||
|
|
8ac98a5797 | ||
|
|
51ab061d80 | ||
|
|
86c3943a3e | ||
|
|
9470cecf58 | ||
|
|
4b272b3baa | ||
|
|
9220bfeaa4 | ||
|
|
76a4b8ee61 |
23
main/features/org.talend.lite.designer.new.feature1/.project
Normal file
23
main/features/org.talend.lite.designer.new.feature1/.project
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>org.talend.lite.designer.new.feature1</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.FeatureBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.pde.FeatureNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -0,0 +1,2 @@
|
||||
bin.includes = feature.xml,\
|
||||
build.properties
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feature
|
||||
id="org.talend.lite.designer.new.feature1"
|
||||
label="Talend Studio Designer Feature"
|
||||
version="8.0.1.qualifier"
|
||||
provider-name=".Talend SA."
|
||||
license-feature="org.talend.lite.root.feature"
|
||||
license-feature-version="8.0.1.qualifier">
|
||||
|
||||
<description url="http://www.example.com/description">
|
||||
Designer of Talend Studio 20211108
|
||||
</description>
|
||||
|
||||
<copyright url="http://www.example.com/copyright">
|
||||
[Enter Copyright Description here.]
|
||||
</copyright>
|
||||
|
||||
<license>
|
||||
[Enter License Description here.]
|
||||
</license>
|
||||
|
||||
<requires>
|
||||
<import plugin="org.talend.new1.plugin"/>
|
||||
</requires>
|
||||
|
||||
</feature>
|
||||
12
main/features/org.talend.lite.designer.new.feature1/pom.xml
Normal file
12
main/features/org.talend.lite.designer.new.feature1/pom.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tcommon-studio-se</artifactId>
|
||||
<version>8.0.1-SNAPSHOT</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.lite.designer.new.feature1</artifactId>
|
||||
<packaging>eclipse-feature</packaging>
|
||||
</project>
|
||||
@@ -15,7 +15,9 @@ Require-Bundle: org.eclipse.ui,
|
||||
org.talend.libraries.apache,
|
||||
org.eclipse.osgi.services,
|
||||
org.eclipse.ui.navigator,
|
||||
org.talend.libraries.jackson
|
||||
org.talend.libraries.jackson,
|
||||
org.talend.new1.plugin,
|
||||
org.talend.new2.plugin
|
||||
Export-Package: org.talend.core.repository,
|
||||
org.talend.core.repository.constants,
|
||||
org.talend.core.repository.document,
|
||||
|
||||
@@ -151,11 +151,15 @@ import org.talend.core.runtime.util.ItemDateParser;
|
||||
import org.talend.core.runtime.util.JavaHomeUtil;
|
||||
import org.talend.core.runtime.util.SharedStudioUtils;
|
||||
import org.talend.core.service.ICoreUIService;
|
||||
import org.talend.core.service.INewDqFeatureService;
|
||||
import org.talend.core.service.INewDqService;
|
||||
import org.talend.core.utils.CodesJarResourceCache;
|
||||
import org.talend.cwm.helper.SubItemHelper;
|
||||
import org.talend.cwm.helper.TableHelper;
|
||||
import org.talend.designer.runprocess.IRunProcessService;
|
||||
import org.talend.login.ILoginTask;
|
||||
import org.talend.new1.plugin.New1PluginLogger;
|
||||
import org.talend.new2.plugin.New2PluginLogger;
|
||||
import org.talend.repository.ProjectManager;
|
||||
import org.talend.repository.ReferenceProjectProblemManager;
|
||||
import org.talend.repository.ReferenceProjectProvider;
|
||||
@@ -179,7 +183,7 @@ import orgomg.cwm.objectmodel.core.ModelElement;
|
||||
*/
|
||||
public final class ProxyRepositoryFactory implements IProxyRepositoryFactory {
|
||||
|
||||
private static final int MAX_TASKS = 8;
|
||||
private static final int MAX_TASKS =8;
|
||||
|
||||
private static Logger log = Logger.getLogger(ProxyRepositoryFactory.class);
|
||||
|
||||
@@ -2138,6 +2142,16 @@ public final class ProxyRepositoryFactory implements IProxyRepositoryFactory {
|
||||
*/
|
||||
public void logOnProject(Project project, IProgressMonitor monitor) throws LoginException, PersistenceException {
|
||||
unregisterM2EServiceBeforeLogon();
|
||||
New2PluginLogger.log();
|
||||
New1PluginLogger.log();
|
||||
if (GlobalServiceRegister.getDefault().isServiceRegistered(INewDqService.class)) {
|
||||
INewDqService service = GlobalServiceRegister.getDefault().getService(INewDqService.class);
|
||||
service.log();
|
||||
}
|
||||
if (GlobalServiceRegister.getDefault().isServiceRegistered(INewDqFeatureService.class)) {
|
||||
INewDqFeatureService service = GlobalServiceRegister.getDefault().getService(INewDqFeatureService.class);
|
||||
service.log();
|
||||
}
|
||||
try {
|
||||
TimeMeasurePerformance.begin("logOnProject", "logon project name '" + project.getLabel()+"'"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
try {
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.talend.core.service;
|
||||
|
||||
import org.talend.core.IService;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kjwang
|
||||
*
|
||||
*/
|
||||
public interface INewDqFeatureService extends IService {
|
||||
public void log();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package org.talend.core.service;
|
||||
|
||||
import org.talend.core.IService;
|
||||
|
||||
|
||||
public interface INewDqService extends IService {
|
||||
public void log();
|
||||
}
|
||||
7
main/plugins/org.talend.new1.plugin/.classpath
Normal file
7
main/plugins/org.talend.new1.plugin/.classpath
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
28
main/plugins/org.talend.new1.plugin/.project
Normal file
28
main/plugins/org.talend.new1.plugin/.project
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>org.talend.new1.plugin</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
14
main/plugins/org.talend.new1.plugin/META-INF/MANIFEST.MF
Normal file
14
main/plugins/org.talend.new1.plugin/META-INF/MANIFEST.MF
Normal file
@@ -0,0 +1,14 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: Plugin
|
||||
Bundle-SymbolicName: org.talend.new1.plugin
|
||||
Bundle-Version: 8.0.1.qualifier
|
||||
Bundle-Activator: org.talend.new1.plugin.Activator
|
||||
Require-Bundle: org.eclipse.ui,
|
||||
org.eclipse.core.runtime,
|
||||
org.talend.commons.runtime;bundle-version="8.0.1"
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Automatic-Module-Name: org.talend.new1.plugin
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Bundle-Vendor: Talend
|
||||
Export-Package: org.talend.new1.plugin
|
||||
4
main/plugins/org.talend.new1.plugin/build.properties
Normal file
4
main/plugins/org.talend.new1.plugin/build.properties
Normal file
@@ -0,0 +1,4 @@
|
||||
source.. = src/
|
||||
output.. = bin/
|
||||
bin.includes = META-INF/,\
|
||||
.
|
||||
28
main/plugins/org.talend.new1.plugin/pom.xml
Normal file
28
main/plugins/org.talend.new1.plugin/pom.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tcommon-studio-se</artifactId>
|
||||
<version>8.0.1-SNAPSHOT</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>org.talend.new1.plugin</artifactId>
|
||||
<packaging>eclipse-plugin</packaging>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<version>2.8.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>default-deploy</id>
|
||||
<phase>deploy</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@@ -0,0 +1,44 @@
|
||||
package org.talend.new1.plugin;
|
||||
|
||||
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||
import org.osgi.framework.BundleContext;
|
||||
|
||||
/**
|
||||
* The activator class controls the plug-in life cycle
|
||||
*/
|
||||
public class Activator extends AbstractUIPlugin {
|
||||
|
||||
// The plug-in ID
|
||||
public static final String PLUGIN_ID = "org.talend.new1.plugin"; //$NON-NLS-1$
|
||||
|
||||
// The shared instance
|
||||
private static Activator plugin;
|
||||
|
||||
/**
|
||||
* The constructor
|
||||
*/
|
||||
public Activator() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(BundleContext context) throws Exception {
|
||||
super.start(context);
|
||||
plugin = this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop(BundleContext context) throws Exception {
|
||||
plugin = null;
|
||||
super.stop(context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the shared instance
|
||||
*
|
||||
* @return the shared instance
|
||||
*/
|
||||
public static Activator getDefault() {
|
||||
return plugin;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.talend.new1.plugin;
|
||||
|
||||
import org.talend.commons.exception.ExceptionHandler;
|
||||
|
||||
public class New1PluginLogger {
|
||||
public static void log() {
|
||||
ExceptionHandler.log("R2022-03 the plugins: " + Activator.PLUGIN_ID + " started -20211108");
|
||||
}
|
||||
|
||||
}
|
||||
7
main/plugins/org.talend.new2.plugin/.classpath
Normal file
7
main/plugins/org.talend.new2.plugin/.classpath
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
28
main/plugins/org.talend.new2.plugin/.project
Normal file
28
main/plugins/org.talend.new2.plugin/.project
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>org.talend.new2.plugin</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
14
main/plugins/org.talend.new2.plugin/META-INF/MANIFEST.MF
Normal file
14
main/plugins/org.talend.new2.plugin/META-INF/MANIFEST.MF
Normal file
@@ -0,0 +1,14 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: Plugin
|
||||
Bundle-SymbolicName: org.talend.new2.plugin
|
||||
Bundle-Version: 8.0.1.qualifier
|
||||
Bundle-Activator: org.talend.new2.plugin.Activator
|
||||
Require-Bundle: org.eclipse.ui,
|
||||
org.eclipse.core.runtime,
|
||||
org.talend.commons.runtime;bundle-version="8.0.1"
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Automatic-Module-Name: org.talend.new1.plugin
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Bundle-Vendor: Talend
|
||||
Export-Package: org.talend.new2.plugin
|
||||
4
main/plugins/org.talend.new2.plugin/build.properties
Normal file
4
main/plugins/org.talend.new2.plugin/build.properties
Normal file
@@ -0,0 +1,4 @@
|
||||
source.. = src/
|
||||
output.. = bin/
|
||||
bin.includes = META-INF/,\
|
||||
.
|
||||
28
main/plugins/org.talend.new2.plugin/pom.xml
Normal file
28
main/plugins/org.talend.new2.plugin/pom.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tcommon-studio-se</artifactId>
|
||||
<version>8.0.1-SNAPSHOT</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>org.talend.new2.plugin</artifactId>
|
||||
<packaging>eclipse-plugin</packaging>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<version>2.8.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>default-deploy</id>
|
||||
<phase>deploy</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@@ -0,0 +1,46 @@
|
||||
package org.talend.new2.plugin;
|
||||
|
||||
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||
import org.osgi.framework.BundleContext;
|
||||
import org.talend.commons.exception.ExceptionHandler;
|
||||
|
||||
/**
|
||||
* The activator class controls the plug-in life cycle
|
||||
*/
|
||||
public class Activator extends AbstractUIPlugin {
|
||||
|
||||
// The plug-in ID
|
||||
public static final String PLUGIN_ID = "org.talend.new2.plugin"; //$NON-NLS-1$
|
||||
|
||||
// The shared instance
|
||||
private static Activator plugin;
|
||||
|
||||
/**
|
||||
* The constructor
|
||||
*/
|
||||
public Activator() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(BundleContext context) throws Exception {
|
||||
super.start(context);
|
||||
plugin = this;
|
||||
ExceptionHandler.log("====R2022-03 the plugins: " + PLUGIN_ID + " started====");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop(BundleContext context) throws Exception {
|
||||
plugin = null;
|
||||
super.stop(context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the shared instance
|
||||
*
|
||||
* @return the shared instance
|
||||
*/
|
||||
public static Activator getDefault() {
|
||||
return plugin;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.talend.new2.plugin;
|
||||
|
||||
import org.talend.commons.exception.ExceptionHandler;
|
||||
|
||||
public class New2PluginLogger {
|
||||
public static void log() {
|
||||
ExceptionHandler.log("R2022-03 the plugins: " + Activator.PLUGIN_ID + " started -20211108");
|
||||
}
|
||||
|
||||
}
|
||||
4
pom.xml
4
pom.xml
@@ -42,6 +42,7 @@
|
||||
<module>main/features/org.talend.update.p2.feature</module>
|
||||
<module>main/features/org.talend.updates.feature</module>
|
||||
<module>main/features/org.talend.utils.feature</module>
|
||||
<module>main/features/org.talend.lite.designer.new.feature1</module>
|
||||
<module>main/plugins/org.talend.common.ui.runtime</module>
|
||||
<module>main/plugins/org.talend.commons.runtime</module>
|
||||
<module>main/plugins/org.talend.commons.ui</module>
|
||||
@@ -116,6 +117,9 @@
|
||||
<module>main/plugins/org.talend.designer.maven.repo.tck</module>
|
||||
<module>main/plugins/org.talend.designer.maven.repo.tcksdk</module>
|
||||
<module>main/plugins/org.talend.designer.maven.repo.tcompv0</module>
|
||||
|
||||
<module>main/plugins/org.talend.new1.plugin</module>
|
||||
<module>main/plugins/org.talend.new2.plugin</module>
|
||||
|
||||
<module>main/plugins/org.talend.libraries.persist.lookup</module>
|
||||
<module>main/plugins/org.talend.designer.maven.aether</module>
|
||||
|
||||
Reference in New Issue
Block a user