Java Code Examples for org.netbeans.swing.outline.RenderDataProvider

The following examples show how to use org.netbeans.swing.outline.RenderDataProvider. These examples are extracted from open source projects. 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 Project: netbeans   Source File: FileTreeViewImpl.java    License: 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 Project: netbeans   Source File: DiffFileTreeImpl.java    License: 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 Project: netbeans   Source File: DiffFileTreeImpl.java    License: 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 Project: netbeans   Source File: DiffTreeTable.java    License: Apache License 2.0 4 votes vote down vote up
public NoLeafIconRenderDataProvider( RenderDataProvider delegate ) {
    this.delegate = delegate;
}
 
Example 5
Source Project: netbeans   Source File: DiffTreeTable.java    License: Apache License 2.0 4 votes vote down vote up
public NoLeafIconRenderDataProvider( RenderDataProvider delegate ) {
    this.delegate = delegate;
}
 
Example 6
Source Project: netbeans   Source File: HistoryFileView.java    License: Apache License 2.0 4 votes vote down vote up
public NoLeafIconRenderDataProvider( RenderDataProvider delegate ) {
    this.delegate = delegate;
}
 
Example 7
Source Project: netbeans   Source File: DiffTreeTable.java    License: Apache License 2.0 4 votes vote down vote up
public NoLeafIconRenderDataProvider( RenderDataProvider delegate ) {
    this.delegate = delegate;
}