|
|
@ -26,6 +26,6 @@ public abstract class AbstractToolbarItem extends AbstractProvider implements To |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean accept() { |
|
|
|
public boolean accept() { |
|
|
|
JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
return currentTemplate.isJWorkBook() || currentTemplate instanceof JVirtualTemplate; |
|
|
|
return currentTemplate == null || currentTemplate.isJWorkBook() || currentTemplate instanceof JVirtualTemplate; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |