Esempio n. 1
0
 @Override
 public void createPartControl(Composite parent) {
   this.parent = parent;
   backgroundColor = parent.getBackground();
   new SyncViewDropTarget(this, parent);
   if (instance.current() == null) setDefaultName();
 }
Esempio n. 2
0
 protected void setViewName() {
   CodeNode codeNode = instance.codeNode();
   if (codeNode == null) {
     setDefaultName();
     return;
   }
   setViewName(codeNode, (T) ((ClassNode) codeNode).instance());
 }
Esempio n. 3
0
 @Override
 public final boolean synchronize(Clock clock) {
   if (!viewLock.acquire()) return false;
   T current = instance.current();
   boolean result = synchronizeIFN(clock, current);
   viewLock.release();
   unprotectedSynchronization(current);
   return result;
 }
Esempio n. 4
0
 @Override
 public void saveState(IMemento memento) {
   super.saveState(memento);
   instance.saveState(memento);
 }
Esempio n. 5
0
 @Override
 public void init(IViewSite site, IMemento memento) throws PartInitException {
   super.init(site, memento);
   instance.parseMemento(memento);
 }
Esempio n. 6
0
 @Override
 public boolean[] provide(CodeNode[] codeNode) {
   return instance.provide(codeNode);
 }
Esempio n. 7
0
 @Override
 public void drop(CodeNode[] supported) {
   instance.drop(supported);
 }
Esempio n. 8
0
 protected void setNodeToInstance(CodeNodeToInstance<T> toInstance) {
   instance.setNodeToInstance(toInstance);
 }
Esempio n. 9
0
 protected CodeNode codeNode() {
   return instance.codeNode();
 }
Esempio n. 10
0
 protected void unsetInstance() {
   instance.unset();
 }
Esempio n. 11
0
 @Override
 public void dispose() {
   super.dispose();
   instance.unset();
 }