org.netbeans.swing.outline.RenderDataProvider Java Examples

The following examples show how to use org.netbeans.swing.outline.RenderDataProvider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FileTreeViewImpl.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private RenderDataProvider createRenderProvider () {
    return new AbstractRenderDataProvider() {
        @Override
        protected String annotateName (GitStatusNodeImpl node, String originalLabel) {
            if (GitModuleConfig.getDefault().isExcludedFromCommit(node.getFile().getAbsolutePath())) {
                originalLabel = "<s>" + (originalLabel == null ? node.getName() : originalLabel) + "</s>"; //NOI18N
            }
            return originalLabel;
        }
    };
}
 
Example #2
Source File: DiffFileTreeImpl.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private RenderDataProvider createRenderProvider () {
    return new AbstractRenderDataProvider() {
        @Override
        protected String annotateName (DiffNode node, String originalLabel) {
            if (node.isExcluded()) {
                originalLabel = "<s>" + (originalLabel == null ? node.getName() : originalLabel) + "</s>"; //NOI18N
            }
            return originalLabel;
        }
    };
}
 
Example #3
Source File: DiffFileTreeImpl.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private RenderDataProvider createRenderProvider () {
    return new AbstractRenderDataProvider() {
        @Override
        protected String annotateName (DiffNode node, String originalLabel) {
            if (HgModuleConfig.getDefault().isExcludedFromCommit(node.getSetup().getBaseFile().getAbsolutePath())) {
                originalLabel = "<s>" + (originalLabel == null ? node.getName() : originalLabel) + "</s>"; //NOI18N
            }
            return originalLabel;
        }
    };
}
 
Example #4
Source File: DiffTreeTable.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public NoLeafIconRenderDataProvider( RenderDataProvider delegate ) {
    this.delegate = delegate;
}
 
Example #5
Source File: DiffTreeTable.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public NoLeafIconRenderDataProvider( RenderDataProvider delegate ) {
    this.delegate = delegate;
}
 
Example #6
Source File: HistoryFileView.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public NoLeafIconRenderDataProvider( RenderDataProvider delegate ) {
    this.delegate = delegate;
}
 
Example #7
Source File: DiffTreeTable.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public NoLeafIconRenderDataProvider( RenderDataProvider delegate ) {
    this.delegate = delegate;
}