Skip to content

Commit

Permalink
show HU Transform process only for HUEditorView(s)
Browse files Browse the repository at this point in the history
if the view is not HUEditorView will fail on execution anyways

#683
  • Loading branch information
teosarca committed Nov 21, 2017
1 parent 7eda6b2 commit 6a505a5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ public final Object getParameterDefaultValue(final IProcessDefaultParameter para
@Override
protected ProcessPreconditionsResolution checkPreconditionsApplicable()
{
if(!isHUEditorView())
{
return ProcessPreconditionsResolution.rejectWithInternalReason("not the HU view");
}

if (!getSelectedDocumentIds().isSingleDocumentId())
{
return ProcessPreconditionsResolution.rejectBecauseNotSingleSelection();
Expand Down

0 comments on commit 6a505a5

Please sign in to comment.