@Override protected void onConfigure() { super.onConfigure(); setVisible(SecurityUtils.canCreateProjects()); }
/** * {@inheritDoc} */ @Override protected void onConfigure() { super.onConfigure(); splitter.setVisible(icon.hasIconType()); }
@Override protected void onConfigure() { super.onConfigure(); setVisible(getModelObject()!=null); }
@Override protected void onConfigure() { super.onConfigure(); setEnabled(absolutePageNumber != pageable.getCurrentPage()); }
@Override protected void onConfigure() { super.onConfigure(); setVisible(getModelObject()!=null); }
@Override protected void onConfigure() { super.onConfigure(); setVisible(getModelObject()!=null); }
@Override protected void onConfigure() { super.onConfigure(); setEnabled(pageNumber >= 0 && pageNumber < getPageable().getPageCount()); }
@Override protected void onConfigure() { super.onConfigure(); Object modelObject = getModelObject(); ODocument document = modelObject instanceof ODocument ? (ODocument) modelObject : null; if (document == null && modelObject instanceof ORecordId) { document = new ODocument((ORecordId)modelObject); } setVisible(document!=null); }
@Override protected void onConfigure() { super.onConfigure(); setVisible(SecurityUtils.canReadCode(getProject().getFacade())); }
/** * {@inheritDoc} */ @Override protected void onConfigure() { super.onConfigure(); splitter.setVisible(icon.hasIconType() && !Strings.isEmpty(label.getDefaultModelObjectAsString())); }
@Override protected void onConfigure() { super.onConfigure(); Component brandLabel = get("brandLabel"); brandLabel.configure(); if (brandLabel.isVisible()) { setVisible(true); } else { Component brandImage = get("brandImage"); brandImage.configure(); setVisible(brandImage.isVisible()); } } };
@Override protected void onConfigure() { super.onConfigure(); CodeComment comment = getComment(); if (getPage() instanceof ProjectBlobPage) { setVisible(comment.isContextChanged(getPullRequest())); } else if (getPage() instanceof PullRequestChangesPage) { PullRequestChangesPage page = (PullRequestChangesPage) getPage(); if (page.getState().newCommit.equals(comment.getMarkPos().getCommit())) { setVisible(comment.isContextChanged(getPullRequest())); } else { setVisible(!getPullRequest().getHeadCommitHash().equals(page.getState().newCommit)); } } else { setVisible(false); } }