-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from ali-salman/master
Aspose.Tasks Java for Eclipse - v1.0
- Loading branch information
Showing
38 changed files
with
3,496 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
Plugins/Aspose.Tasks Java (Maven) for Eclipse/AsposeTasksEclipseFeature/.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>AsposeTasksEclipseFeature</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.pde.FeatureBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.pde.FeatureNature</nature> | ||
</natures> | ||
</projectDescription> |
1 change: 1 addition & 0 deletions
1
Plugins/Aspose.Tasks Java (Maven) for Eclipse/AsposeTasksEclipseFeature/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bin.includes = feature.xml |
36 changes: 36 additions & 0 deletions
36
Plugins/Aspose.Tasks Java (Maven) for Eclipse/AsposeTasksEclipseFeature/feature.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<feature | ||
id="com.aspose.tasks.java.maven" | ||
label="Aspose.Tasks Java (Maven) for Eclipse" | ||
version="1.0" | ||
provider-name="http://www.aspose.com"> | ||
|
||
<description> | ||
Aspose.Tasks Maven Project wizard creates Maven Project for using Aspose.Tasks for Java API within Eclipse IDE. | ||
Aspose.Tasks for Java is a project management component that enables Java application developers to provide Microsoft Project ® documents manipulation capability in their applications – all without using Microsoft Project ®. | ||
Aspose.Tasks for Java supports rendering tasks, resources and resource assignment data to various output formats such as JPG, PNG, PDF, XML, XAML, HTML, BMP, XPS, TIFF and SVG. In addition, it is possible to export project data to CSV, TXT, XLS, XLSX and MPT formats as well. | ||
Aspose.Tasks Maven Project wizard fetch and configures the latest Maven dependency reference of Aspose.Tasks for Java from the Aspose Cloud Maven Repository. | ||
The wizard also gives you option to download the Code Examples to use Aspose.Tasks for Java API. Once you are finished with this wizard - created Maven project and downloaded Code Examples, | ||
next you can insert those Code Examples to use Aspose.Tasks for Java API in your Project from File -> New -> Other -> Aspose.Tasks Code Example | ||
The newly created project and the Code Examples you added is now ready to be enhanced, all required resources and references are also automatically added. | ||
</description> | ||
|
||
<license url=""> | ||
The MIT License (MIT) | ||
Copyright (c) 2001-2016 Aspose Pty Ltd | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
</license> | ||
|
||
<plugin | ||
id="com.aspose.tasks.java.maven.plugin" | ||
download-size="0" | ||
install-size="0" | ||
version="1.0.0" | ||
unpack="false"/> | ||
|
||
</feature> |
7 changes: 7 additions & 0 deletions
7
Plugins/Aspose.Tasks Java (Maven) for Eclipse/AsposeTasksEclipsePlugin/.classpath
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.7"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
28 changes: 28 additions & 0 deletions
28
Plugins/Aspose.Tasks Java (Maven) for Eclipse/AsposeTasksEclipsePlugin/.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>AsposeTasksEclipsePlugin</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> |
7 changes: 7 additions & 0 deletions
7
...ks Java (Maven) for Eclipse/AsposeTasksEclipsePlugin/.settings/org.eclipse.jdt.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 | ||
org.eclipse.jdt.core.compiler.compliance=1.7 | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.source=1.7 |
7 changes: 7 additions & 0 deletions
7
Plugins/Aspose.Tasks Java (Maven) for Eclipse/AsposeTasksEclipsePlugin/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
source.. = src/ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
.,\ | ||
plugin.xml,\ | ||
resources/ | ||
|
24 changes: 24 additions & 0 deletions
24
Plugins/Aspose.Tasks Java (Maven) for Eclipse/AsposeTasksEclipsePlugin/plugin.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?eclipse version="3.4"?> | ||
<plugin> | ||
<extension | ||
point="org.eclipse.ui.newWizards"> | ||
<wizard | ||
category="org.eclipse.m2e" | ||
class="com.aspose.tasks.maven.AsposeMavenProjectWizard" | ||
icon="resources/Aspose.png" | ||
id="asposeplugin.wizard.new.mavenprojectwizard" | ||
name="Aspose.Tasks Maven Project" | ||
project="true"> | ||
</wizard> | ||
<wizard | ||
category="org.eclipse.jdt.ui.java" | ||
class="com.aspose.tasks.maven.examples.AsposeExampleWizard" | ||
icon="resources/Aspose.png" | ||
id="asposeplugin.wizard.new.mavenexamplewizard" | ||
name="Aspose.Tasks Code Example" | ||
project="false"> | ||
</wizard> | ||
</extension> | ||
|
||
</plugin> |
Binary file added
BIN
+3.36 KB
...se.Tasks Java (Maven) for Eclipse/AsposeTasksEclipsePlugin/resources/Aspose.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions
31
....Tasks Java (Maven) for Eclipse/AsposeTasksEclipsePlugin/resources/classpath-template.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" output="target/classes" path="src/main/java"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> |
Binary file added
BIN
+44.1 KB
...sks Java (Maven) for Eclipse/AsposeTasksEclipsePlugin/resources/long-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
...asks Java (Maven) for Eclipse/AsposeTasksEclipsePlugin/resources/org-eclipse-jdt-core.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 | ||
org.eclipse.jdt.core.compiler.compliance=1.7 | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
org.eclipse.jdt.core.compiler.source=1.7 |
20 changes: 20 additions & 0 deletions
20
...se.Tasks Java (Maven) for Eclipse/AsposeTasksEclipsePlugin/resources/pom-xml-template.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?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> | ||
<groupId>com.mycompany</groupId> | ||
<artifactId>mavenproject1</artifactId> | ||
<version>2</version> | ||
<packaging>jar</packaging> | ||
<repositories> | ||
<repository> | ||
<id>Aspose-Maven-Repository</id> | ||
<name>Aspose Maven Repository</name> | ||
<url>http://maven.aspose.com/artifactory/simple/ext-release-local/</url> | ||
</repository> | ||
</repositories> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<maven.compiler.source>1.7</maven.compiler.source> | ||
<maven.compiler.target>1.7</maven.compiler.target> | ||
</properties> | ||
</project> |
80 changes: 80 additions & 0 deletions
80
...sks Java (Maven) for Eclipse/AsposeTasksEclipsePlugin/src/com/aspose/tasks/Activator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 1998-2016 Aspose Pty Ltd. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
package com.aspose.tasks; | ||
|
||
import java.io.IOException; | ||
import java.net.URISyntaxException; | ||
import java.net.URL; | ||
import org.eclipse.core.runtime.FileLocator; | ||
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 = "AsposeTasksEclipsePlugin"; | ||
|
||
// The shared instance | ||
private static Activator plugin; | ||
|
||
/** | ||
* The constructor | ||
*/ | ||
public Activator() { | ||
} | ||
|
||
public static String getResourceFilePath(String resourceFileName) { | ||
String fileURL = null; | ||
try { | ||
URL url = getDefault().getBundle().getEntry("resources/" + resourceFileName); | ||
fileURL = FileLocator.toFileURL(url).toURI().normalize().getPath(); | ||
} catch (IOException | URISyntaxException e) { | ||
e.printStackTrace(); | ||
} | ||
return fileURL; | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* | ||
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. | ||
* BundleContext) | ||
*/ | ||
public void start(BundleContext context) throws Exception { | ||
super.start(context); | ||
plugin = this; | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* | ||
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. | ||
* BundleContext) | ||
*/ | ||
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; | ||
} | ||
|
||
} |
85 changes: 85 additions & 0 deletions
85
...Java (Maven) for Eclipse/AsposeTasksEclipsePlugin/src/com/aspose/tasks/MavenSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 1998-2016 Aspose Pty Ltd. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
package com.aspose.tasks; | ||
|
||
import org.eclipse.core.runtime.preferences.IEclipsePreferences; | ||
import org.eclipse.core.runtime.preferences.InstanceScope; | ||
|
||
/** | ||
* | ||
* @author Adeel | ||
*/ | ||
public final class MavenSettings { | ||
|
||
private static final String PROP_LAST_ARCHETYPE_GROUPID = "lastArchetypeGroupId"; | ||
private static final String PROP_LAST_ARCHETYPE_VERSION = "lastArchetypeVersion"; | ||
|
||
private IEclipsePreferences getPreferences() { | ||
return InstanceScope.INSTANCE.getNode(Activator.PLUGIN_ID); | ||
} | ||
|
||
/** | ||
* | ||
* @return | ||
*/ | ||
public String getLastArchetypeGroupId() { | ||
return getPreferences().get(PROP_LAST_ARCHETYPE_GROUPID, "com.mycompany"); | ||
} | ||
|
||
/** | ||
* | ||
* @return | ||
*/ | ||
public String getLastArchetypeVersion() { | ||
return getPreferences().get(PROP_LAST_ARCHETYPE_VERSION, "1.0-SNAPSHOT"); | ||
} | ||
|
||
/** | ||
* | ||
* @param version | ||
*/ | ||
public void setLastArchetypeVersion(String version) { | ||
putProperty(PROP_LAST_ARCHETYPE_VERSION, version); | ||
} | ||
|
||
/** | ||
* | ||
* @param groupId | ||
*/ | ||
public void setLastArchetypeGroupId(String groupId) { | ||
putProperty(PROP_LAST_ARCHETYPE_GROUPID, groupId); | ||
} | ||
|
||
private String putProperty(String key, String value) { | ||
String retval = getProperty(key); | ||
if (value != null) { | ||
getPreferences().put(key, value); | ||
} else { | ||
getPreferences().remove(key); | ||
} | ||
return retval; | ||
} | ||
private static final MavenSettings INSTANCE = new MavenSettings(); | ||
|
||
/** | ||
* | ||
* @return | ||
*/ | ||
public static MavenSettings getDefault() { | ||
return INSTANCE; | ||
} | ||
|
||
private String getProperty(String key) { | ||
return getPreferences().get(key, null); | ||
} | ||
|
||
} |
Oops, something went wrong.