Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
af3
kernel
Commits
3b613d12
Commit
3b613d12
authored
14 years ago
by
Florian Hölzl
Browse files
Options
Downloads
Patches
Plain Diff
reworked emfstore and unicase client storage location providers
parent
78edefc7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/internal/emfstore/EclipseWorkspaceLocationProviderBase.java
+16
-6
16 additions, 6 deletions
...ternal/emfstore/EclipseWorkspaceLocationProviderBase.java
with
16 additions
and
6 deletions
org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/internal/emfstore/EclipseWorkspaceLocationProviderBase.java
+
16
−
6
View file @
3b613d12
...
...
@@ -36,13 +36,16 @@ public abstract class EclipseWorkspaceLocationProviderBase implements
LocationProvider
{
/** Store the workspace location. */
private
final
IProject
workspaceProject
;
private
IProject
workspaceProject
;
/** Stores the backup location. */
private
final
IProject
backupProject
;
private
IProject
backupProject
;
/** Constructor. */
public
EclipseWorkspaceLocationProviderBase
()
{
/** Stores initilization flag. */
private
boolean
initialized
=
false
;
/** Initialize the locations. */
private
void
initialize
()
{
IWorkspaceRoot
workspaceRoot
=
ResourcesPlugin
.
getWorkspace
().
getRoot
();
this
.
workspaceProject
=
workspaceRoot
.
getProject
(
getWorkspaceProjectName
());
...
...
@@ -61,6 +64,7 @@ public abstract class EclipseWorkspaceLocationProviderBase implements
printCreationError
(
getBackupProjectName
(),
e
);
}
}
initialized
=
true
;
}
/** Prints error message to standard error. */
...
...
@@ -78,12 +82,18 @@ public abstract class EclipseWorkspaceLocationProviderBase implements
/** {@inheritDoc} */
@Override
public
final
String
getWorkspaceDirectory
()
{
return
workspaceProject
.
getFullPath
().
toString
();
if
(!
initialized
)
{
initialize
();
}
return
workspaceProject
.
getLocation
().
toString
();
}
/** {@inheritDoc} */
@Override
public
final
String
getBackupDirectory
()
{
return
backupProject
.
getFullPath
().
toString
();
if
(!
initialized
)
{
initialize
();
}
return
backupProject
.
getLocation
().
toString
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment