Example #1
0
 protected String calculateNodeId() {
   IValue value = myWatchable.getValue();
   if (value == null) {
     return myWatchable.getName() + " = null";
   }
   return myWatchable.getName() + " = " + value.getValuePresentation();
 }
Example #2
0
 public WatchableNode(@NotNull IWatchable watchable, AbstractUiState state) {
   super(watchable.getNode());
   myWatchable = watchable;
   myState = state;
   setNodeIdentifier(calculateNodeId());
   setIcon(watchable.getPresentationIcon());
 }
  @CodeOrchestraPatch
  protected String calculateNodeId() {
    String valuePresentation = getValuePresentation(myWatchable.getValue());

    if (EMPTY_VALUE_PRESENTATION.equals(valuePresentation)) {
      return myWatchable.getName();
    }

    return myWatchable.getName() + " = " + valuePresentation;
  }
 protected IValue getValue() {
   return myWatchable.getValue();
 }
 protected Icon getNodeIcon() {
   //  if (myNode != null) {
   //    return jetbrains.mps.ide.projectPane.Icons.DEFAULT_ICON;
   //  }
   return myWatchable.getPresentationIcon();
 }
 public WatchableNode(IOperationContext context, @NotNull IWatchable watchable) {
   super(context, watchable.getNode());
   myWatchable = watchable;
   setNodeIdentifier(calculateNodeId());
   setIcon(getNodeIcon());
 }
Example #7
0
 public IValue getValue() {
   return myWatchable.getValue();
 }