Ejemplo n.º 1
0
 def browse( self ):
     aVarref = self.getVarref( self.theSelection[0] )
     aFullIDBrowserWindow = FullIDBrowserWindow( self, aVarref[ME_VARREF_FULLID] )
     result = aFullIDBrowserWindow.return_result()
     if result != None:
         if getFullIDType( result ) != ME_VARIABLE_TYPE:
             return
         if isAbsoluteReference( result ):
             result = getRelativeReference( self.theProcessID, result )
         aVarref[ME_VARREF_FULLID] = result
         self.update()
Ejemplo n.º 2
0
 def browse(self):
     aVarref = self.getVarref(self.theSelection[0])
     aFullIDBrowserWindow = FullIDBrowserWindow(self,
                                                aVarref[ME_VARREF_FULLID])
     result = aFullIDBrowserWindow.return_result()
     if result != None:
         if getFullIDType(result) != ME_VARIABLE_TYPE:
             return
         if isAbsoluteReference(result):
             result = getRelativeReference(self.theProcessID, result)
         aVarref[ME_VARREF_FULLID] = result
         self.update()
 def __FullIDBrowse_displayed( self, *args ):
     aFullIDBrowserWindow = FullIDBrowserWindow( self, ecell.util.convertSystemPathToFullIDString(self.proFullID.split(':')[1] ) )
     aVariableRef = aFullIDBrowserWindow.return_result()
     
     if aVariableRef == None:
         return
     if ecell.util.getTypeFromFullIDString( aVariableRef ) != DM_VARIABLE_TYPE:
         return
     if not self.showAbs:
         if ecell.util.isAbsoluteVariableReference( aVariableRef ):
             aVariableRef = ecell.util.getRelativeReference( self.proFullID,  aVariableRef )
 
     ViewComponent.getWidget(self,'ent_varid').set_text(aVariableRef) 
 def __FullIDBrowse_displayed( self, *args ):
     aFullIDBrowserWindow = FullIDBrowserWindow( self, convertSysPathToSysID(self.proFullID.split(':')[1] ) )
     aVariableRef = aFullIDBrowserWindow.return_result()
     
     if aVariableRef == None:
         return
     if getFullIDType( aVariableRef ) != ME_VARIABLE_TYPE:
         return
     if not self.showAbs:
         if isAbsoluteReference( aVariableRef ):
             aVariableRef = getRelativeReference( self.proFullID,  aVariableRef )
 
     ViewComponent.getWidget(self,'ent_varid').set_text(aVariableRef) 
Ejemplo n.º 5
0
    def __FullIDBrowse_displayed(self, *args):
        aFullIDBrowserWindow = FullIDBrowserWindow(
            self, convertSysPathToSysID(self.proFullID.split(':')[1]))
        aVariableRef = aFullIDBrowserWindow.return_result()

        if aVariableRef == None:
            return
        if getFullIDType(aVariableRef) != ME_VARIABLE_TYPE:
            return
        if not self.showAbs:
            if isAbsoluteReference(aVariableRef):
                aVariableRef = getRelativeReference(self.proFullID,
                                                    aVariableRef)

        ViewComponent.getWidget(self, 'ent_varid').set_text(aVariableRef)
Ejemplo n.º 6
0
 def add_new ( self ):
     newName = self.getUniqueVarrefName()
     aFullIDBrowserWindow = FullIDBrowserWindow( self, convertSysPathToSysID( self.theProcessID.split(':')[1] ) )
     aVariableRef = aFullIDBrowserWindow.return_result()
     if aVariableRef == None:
         #aVariableRef = '.'
         return
     if getFullIDType( aVariableRef ) != ME_VARIABLE_TYPE:
         return
     
     if isAbsoluteReference( aVariableRef ):
         aVariableRef = getRelativeReference( self.theProcessID,  aVariableRef )
     
     #aVariableRef = aVariableRef.replace( ME_VARIABLE_TYPE, '', 1)
     aVarref = [ newName, aVariableRef, 0 ]
     self.theVarrefList.append( aVarref )
     self.update()
Ejemplo n.º 7
0
    def add_new(self):
        newName = self.getUniqueVarrefName()
        aFullIDBrowserWindow = FullIDBrowserWindow(
            self, convertSysPathToSysID(self.theProcessID.split(':')[1]))
        aVariableRef = aFullIDBrowserWindow.return_result()
        if aVariableRef == None:
            #aVariableRef = '.'
            return
        if getFullIDType(aVariableRef) != ME_VARIABLE_TYPE:
            return

        if isAbsoluteReference(aVariableRef):
            aVariableRef = getRelativeReference(self.theProcessID,
                                                aVariableRef)

        #aVariableRef = aVariableRef.replace( ME_VARIABLE_TYPE, '', 1)
        aVarref = [newName, aVariableRef, 0]
        self.theVarrefList.append(aVarref)
        self.update()