-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhanced workspace root setting, new workspace configuration extensio…
…n point
- Loading branch information
Showing
12 changed files
with
206 additions
and
50 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ bin.includes = META-INF/,\ | |
icons/,\ | ||
lib/derby.jar,\ | ||
plugin.xml,\ | ||
about.html | ||
about.html,\ | ||
schema/ |
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
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
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
30 changes: 30 additions & 0 deletions
30
...rg.dslforge.workspace/src/org/dslforge/workspace/contribution/IWorkspaceContribution.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,30 @@ | ||
/** | ||
* <copyright> | ||
* | ||
* Copyright (c) 2016 PlugBee. 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: | ||
* Amine Lajmi - Initial API and implementation | ||
* | ||
* </copyright> | ||
*/ | ||
package org.dslforge.workspace.contribution; | ||
|
||
import org.eclipse.core.runtime.IPath; | ||
|
||
public interface IWorkspaceContribution { | ||
|
||
/** | ||
* Retursn the workspace root path declared in | ||
* org.dslforge.workspace.configuration extension. For example e.g. | ||
* D:/www/dslforge/workspace (windows) or /var/lib/tomcat/workspace (linux) | ||
* | ||
* @return the workspace root path | ||
*/ | ||
IPath getWorkspaceRootPath(); | ||
} |
33 changes: 33 additions & 0 deletions
33
...org.dslforge.workspace/src/org/dslforge/workspace/contribution/WorkspaceContribution.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,33 @@ | ||
/** | ||
* <copyright> | ||
* | ||
* Copyright (c) 2016 PlugBee. 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: | ||
* Amine Lajmi - Initial API and implementation | ||
* | ||
* </copyright> | ||
*/ | ||
package org.dslforge.workspace.contribution; | ||
|
||
import org.eclipse.core.runtime.IPath; | ||
import org.eclipse.core.runtime.Path; | ||
|
||
public class WorkspaceContribution implements IWorkspaceContribution { | ||
|
||
private IPath rootPath; | ||
|
||
public WorkspaceContribution(String stringPath) { | ||
rootPath = new Path(stringPath); | ||
} | ||
|
||
@Override | ||
public IPath getWorkspaceRootPath() { | ||
return rootPath; | ||
} | ||
} |
Oops, something went wrong.