author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 09:54:29 +0200 | |
changeset 105 | 5c7a65ed657a |
permissions | -rw-r--r-- |
jtulach@105 | 1 |
public final Node getNodeDelegate () { |
jtulach@105 | 2 |
synchronized(nodeCreationLock) { |
jtulach@105 | 3 |
if (nodeDelegate == null) { |
jtulach@105 | 4 |
nodeDelegate = createNodeDelegate(); |
jtulach@105 | 5 |
} |
jtulach@105 | 6 |
} |
jtulach@105 | 7 |
if (nodeDelegate == null) { |
jtulach@105 | 8 |
throw new IllegalStateException("DataObject " + this + " has null |
jtulach@105 | 9 |
} |
jtulach@105 | 10 |
return nodeDelegate; |
jtulach@105 | 11 |
} |