-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Result of Marietta Hamberger's research project #12
Open
draeger
wants to merge
2
commits into
draeger-lab:master
Choose a base branch
from
MariettaHa:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+11,035
−236
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/bin/ |
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
2 changes: 1 addition & 1 deletion
2
bundles/org.insilico.core/src/org/insilico/core/ApplicationLifecycle.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
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
* @author roman | ||
* | ||
*/ | ||
package org.insilico.core; | ||
package org.insilico.core; |
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
8 changes: 8 additions & 0 deletions
8
...lico.jsbml.core/OSGI-INF/org.insilico.jsbml.core.services.provider.SBMLDocumentLoader.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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.insilico.jsbml.core.services.provider.SBMLDocumentLoader"> | ||
<property name="service.context.key" value="org.sbml.jsbml.SBMLDocument"/> | ||
<service> | ||
<provide interface="org.eclipse.e4.core.contexts.IContextFunction"/> | ||
</service> | ||
<implementation class="org.insilico.jsbml.core.services.provider.SBMLDocumentLoader"/> | ||
</scr:component> |
7 changes: 7 additions & 0 deletions
7
...lico.jsbml.core/OSGI-INF/org.insilico.jsbml.core.services.provider.SBMLEditorProvider.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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.insilico.jsbml.core.services.provider.SBMLEditorProvider"> | ||
<service> | ||
<provide interface="org.eclipse.fx.code.editor.fx.e4.EditorClassURLProvider"/> | ||
</service> | ||
<implementation class="org.insilico.jsbml.core.services.provider.SBMLEditorProvider"/> | ||
</scr:component> |
7 changes: 7 additions & 0 deletions
7
...silico.jsbml.core/OSGI-INF/org.insilico.jsbml.core.services.provider.SBMLIconProvider.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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.insilico.jsbml.core.services.provider.SBMLIconProvider"> | ||
<service> | ||
<provide interface="org.eclipse.fx.code.editor.services.FileIconProvider"/> | ||
</service> | ||
<implementation class="org.insilico.jsbml.core.services.provider.SBMLIconProvider"/> | ||
</scr:component> |
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
2 changes: 1 addition & 1 deletion
2
bundles/org.insilico.jsbml.core/src/org/insilico/jsbml/core/Constants.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.insilico.jsbml.core; | ||
package org.insilico.jsbml.core; | ||
|
||
public interface Constants { | ||
|
||
|
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
2 changes: 1 addition & 1 deletion
2
....insilico.jsbml.core/src/org/insilico/jsbml/core/services/SBMLAdapterBuilderProvider.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
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 |
---|---|---|
|
@@ -31,7 +31,6 @@ | |
* @author roman | ||
* | ||
*/ | ||
@SuppressWarnings("restriction") | ||
@Component(service = IContextFunction.class, | ||
property = {"service.context.key=org.sbml.jsbml.SBMLDocument"}) | ||
public class SBMLDocumentLoader extends ContextFunction { | ||
|
@@ -40,7 +39,8 @@ public class SBMLDocumentLoader extends ContextFunction { | |
|
||
@Override | ||
public Object compute(IEclipseContext context, String contextKey) { | ||
System.out.println("Compute..."); | ||
return IInjector.NOT_A_VALUE; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe change this to a "not implemented" Exception |
||
/*System.out.println("Compute..."); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove redundant code or at least add a description of the potential code intention. |
||
Object urlVal = context.get(DOCUMENT_URL); | ||
|
||
if (urlVal == null) { | ||
|
@@ -69,7 +69,12 @@ public Object compute(IEclipseContext context, String contextKey) { | |
// Load if needed | ||
try { | ||
URI url = URIUtil.fromString(urlString); | ||
doc = JSBML.readSBMLFromFile(url.getPath()); | ||
if (url!=null) { | ||
if (url.getPath()!=null) { | ||
doc = JSBML.readSBMLFromFile(url.getPath()); | ||
} | ||
} | ||
|
||
// doc = SBMLReader.read(new File(url)); | ||
cache.put(urlString, doc); | ||
} | ||
|
@@ -85,6 +90,6 @@ public Object compute(IEclipseContext context, String contextKey) { | |
} | ||
|
||
System.out.println("No doc selected"); | ||
return IInjector.NOT_A_VALUE; | ||
return IInjector.NOT_A_VALUE;*/ | ||
} | ||
} |
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
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/ |
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,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>org.insilico.sbmlsheets</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> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ds.core.builder</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.PluginNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
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,40 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: SBMLsheets | ||
Bundle-SymbolicName: org.insilico.sbmlsheets;singleton:=true | ||
Bundle-Version: 1.0.0.qualifier | ||
Require-Bundle: org.eclipse.core.runtime, | ||
org.eclipse.fx.ui.services;bundle-version="3.0.0", | ||
org.eclipse.fx.code.editor;bundle-version="3.0.0", | ||
org.sbml.jsbml.core;bundle-version="1.3.1", | ||
org.eclipse.fx.code.editor.fx.e4;bundle-version="3.0.0", | ||
org.eclipse.e4.core.contexts;bundle-version="1.5.0", | ||
org.eclipse.e4.core.di;bundle-version="1.6.1", | ||
org.eclipse.e4.ui.model.workbench;bundle-version="1.2.0", | ||
org.insilico.ui.themes.light;bundle-version="1.0.0", | ||
org.insilico.ui;bundle-version="1.0.0" | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
Bundle-ActivationPolicy: lazy | ||
Service-Component: OSGI-INF/services/org.insilico.sbmlsheets.services.provider.SBMLEditorProvider.xml, | ||
OSGI-INF/services/org.insilico.sbmlsheets.services.provider.SBMLIconProvider.xml, | ||
OSGI-INF/services/org.insilico.sbmlsheets.services.provider.SBMLDocumentLoader.xml, | ||
OSGI-INF/services/org.insilico.sbmlsheets.services.provider.SpreadsheetEditorProvider.xml, | ||
OSGI-INF/services/org.insilico.sbmlsheets.services.provider.SpreadsheetDocumentLoader.xml, | ||
OSGI-INF/org.insilico.sbmlsheets.services.provider.SBMLIconProvider.xml, | ||
OSGI-INF/org.insilico.sbmlsheets.services.provider.SBMLEditorProvider.xml, | ||
OSGI-INF/org.insilico.sbmlsheets.services.provider.SBMLDocumentLoader.xml, | ||
OSGI-INF/org.insilico.sbmlsheets.services.provider.SpreadsheetDocumentLoader.xml, | ||
OSGI-INF/org.insilico.sbmlsheets.services.provider.SpreadsheetEditorProvider.xml, | ||
OSGI-INF/org.insilico.sbmlsheets.services.provider.SheetProjectEditorProvider.xml, | ||
OSGI-INF/org.insilico.sbmlsheets.services.provider.SheetProjectDocumentLoader.xml | ||
Export-Package: org.insilico.sbmlsheets.core, | ||
org.insilico.sbmlsheets.editor, | ||
org.insilico.sbmlsheets.services, | ||
org.insilico.sbmlsheets.services.provider | ||
Automatic-Module-Name: org.insilico.sbmlsheets | ||
Import-Package: org.eclipse.core.databinding.observable.list, | ||
org.eclipse.core.resources, | ||
org.eclipse.e4.ui.workbench, | ||
org.eclipse.e4.ui.workbench.modeling, | ||
org.insilico.core, | ||
org.osgi.service.component.annotations;version="1.2.0" |
8 changes: 8 additions & 0 deletions
8
...lico.sbmlsheets/OSGI-INF/org.insilico.sbmlsheets.services.provider.SBMLDocumentLoader.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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.insilico.sbmlsheets.services.provider.SBMLDocumentLoader"> | ||
<property name="service.context.key" value="org.sbml.jsbml.SBMLDocument"/> | ||
<service> | ||
<provide interface="org.eclipse.e4.core.contexts.IContextFunction"/> | ||
</service> | ||
<implementation class="org.insilico.sbmlsheets.services.provider.SBMLDocumentLoader"/> | ||
</scr:component> |
7 changes: 7 additions & 0 deletions
7
...lico.sbmlsheets/OSGI-INF/org.insilico.sbmlsheets.services.provider.SBMLEditorProvider.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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.insilico.sbmlsheets.services.provider.SBMLEditorProvider"> | ||
<service> | ||
<provide interface="org.eclipse.fx.code.editor.fx.e4.EditorClassURLProvider"/> | ||
</service> | ||
<implementation class="org.insilico.sbmlsheets.services.provider.SBMLEditorProvider"/> | ||
</scr:component> |
7 changes: 7 additions & 0 deletions
7
...silico.sbmlsheets/OSGI-INF/org.insilico.sbmlsheets.services.provider.SBMLIconProvider.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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.insilico.sbmlsheets.services.provider.SBMLIconProvider"> | ||
<service> | ||
<provide interface="org.eclipse.fx.code.editor.services.FileIconProvider"/> | ||
</service> | ||
<implementation class="org.insilico.sbmlsheets.services.provider.SBMLIconProvider"/> | ||
</scr:component> |
8 changes: 8 additions & 0 deletions
8
...lsheets/OSGI-INF/org.insilico.sbmlsheets.services.provider.SheetProjectDocumentLoader.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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.insilico.sbmlsheets.services.provider.SheetProjectDocumentLoader"> | ||
<property name="service.context.key" value="org.insilico.sbmlsheets.core.TableEditor"/> | ||
<service> | ||
<provide interface="org.eclipse.e4.core.contexts.IContextFunction"/> | ||
</service> | ||
<implementation class="org.insilico.sbmlsheets.services.provider.SheetProjectDocumentLoader"/> | ||
</scr:component> |
7 changes: 7 additions & 0 deletions
7
...lsheets/OSGI-INF/org.insilico.sbmlsheets.services.provider.SheetProjectEditorProvider.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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.insilico.sbmlsheets.services.provider.SheetProjectEditorProvider"> | ||
<service> | ||
<provide interface="org.eclipse.fx.code.editor.fx.e4.EditorClassURLProvider"/> | ||
</service> | ||
<implementation class="org.insilico.sbmlsheets.services.provider.SheetProjectEditorProvider"/> | ||
</scr:component> |
8 changes: 8 additions & 0 deletions
8
...mlsheets/OSGI-INF/org.insilico.sbmlsheets.services.provider.SpreadsheetDocumentLoader.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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.insilico.sbmlsheets.services.provider.SpreadsheetDocumentLoader"> | ||
<property name="service.context.key" value="org.insilico.sbmlsheets.core.Spreadsheet"/> | ||
<service> | ||
<provide interface="org.eclipse.e4.core.contexts.IContextFunction"/> | ||
</service> | ||
<implementation class="org.insilico.sbmlsheets.services.provider.SpreadsheetDocumentLoader"/> | ||
</scr:component> |
7 changes: 7 additions & 0 deletions
7
...mlsheets/OSGI-INF/org.insilico.sbmlsheets.services.provider.SpreadsheetEditorProvider.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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.insilico.sbmlsheets.services.provider.SpreadsheetEditorProvider"> | ||
<service> | ||
<provide interface="org.eclipse.fx.code.editor.fx.e4.EditorClassURLProvider"/> | ||
</service> | ||
<implementation class="org.insilico.sbmlsheets.services.provider.SpreadsheetEditorProvider"/> | ||
</scr:component> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this check added we assume that the doc can be null on this stage. Do we need to set an alternative error view for the case when the doc is not available or we inform the user in some different way?