Skip to content

Commit

Permalink
Dialog for the user to fix reported consistency issues
Browse files Browse the repository at this point in the history
Issue: #22
  • Loading branch information
buchen committed Mar 16, 2013
1 parent 1266716 commit 40bb966
Show file tree
Hide file tree
Showing 13 changed files with 483 additions and 5 deletions.
1 change: 1 addition & 0 deletions name.abuchen.portfolio.ui/OSGI-INF/l10n/bundle.properties
Expand Up @@ -5,6 +5,7 @@ Bundle-Vendor = Andreas Buchen

category.name = Portfolio Performance

command.consistencyChecks.name = Check consistency...
command.export.name = Export...
command.import.name = Import...
command.newFile.mnemonic = N
Expand Down
Expand Up @@ -5,6 +5,7 @@ Bundle-Vendor = Andreas Buchen

category.name = Portfolio Performance

command.consistencyChecks.name = Auf Konsistenz pr\u00FCfen...
command.export.name = Exportieren...
command.import.name = Importieren...
command.newFile.mnemonic = N
Expand Down
Binary file added name.abuchen.portfolio.ui/icons/check.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added name.abuchen.portfolio.ui/icons/quickfix.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions name.abuchen.portfolio.ui/plugin.xml
Expand Up @@ -111,6 +111,14 @@
id="org.eclipse.ui.file.save"
commandId="org.eclipse.ui.file.saveAs">
</command>
<separator
name="name.abuchen.portfolio.ui.menus.operationsSeparator"
visible="true">
</separator>
<command
id="name.abuchen.portfolio.ui.commands.consistencyChecksCommand"
commandId="name.abuchen.portfolio.ui.commands.consistencyChecksCommand">
</command>
<separator
name="name.abuchen.portfolio.ui.menus.exportSeparator"
visible="true">
Expand Down Expand Up @@ -242,6 +250,11 @@
id="name.abuchen.portfolio.ui.commands.updateCommand"
name="%command.update.name">
</command>
<command
categoryId="name.abuchen.portfolio.ui.commands.category"
id="name.abuchen.portfolio.ui.commands.consistencyChecksCommand"
name="%command.consistencyChecks.name">
</command>
</extension>

<extension
Expand Down Expand Up @@ -298,6 +311,15 @@
class="name.abuchen.portfolio.ui.handlers.UpdateHandler"
commandId="name.abuchen.portfolio.ui.commands.updateCommand">
</handler>
<handler
class="name.abuchen.portfolio.ui.handlers.RunConsistencyChecksHandler"
commandId="name.abuchen.portfolio.ui.commands.consistencyChecksCommand">
<activeWhen>
<with variable="activeEditorId">
<equals value="name.abuchen.portfolio.ui.editor"/>
</with>
</activeWhen>
</handler>
</extension>

<extension
Expand Down
Expand Up @@ -86,6 +86,7 @@ else if (input instanceof IPathEditorInput)
else
setPartName(Messages.LabelUnsavedFile);

new ConsistencyChecksJob(this, client, false).schedule(100);
scheduleOnlineUpdateJobs();
}

Expand Down

0 comments on commit 40bb966

Please sign in to comment.