1 19 package org.openharmonise.workfloweditor.vfs; 20 21 import org.openharmonise.him.*; 22 import org.openharmonise.vfs.*; 23 import org.openharmonise.vfs.servers.ServerList; 24 import org.openharmonise.workfloweditor.model.*; 25 26 27 34 public class VFSRole extends Role { 35 36 39 private String m_sValuePath = null; 40 41 46 public VFSRole(String sValuePath) { 47 super(); 48 this.m_sValuePath = sValuePath; 49 this.setup(); 50 } 51 52 56 private void setup() { 57 AbstractVirtualFileSystem vfs = ServerList.getInstance().getHarmoniseServer().getVFS(); 58 VirtualFile vfFile = vfs.getVirtualFile(m_sValuePath).getResource(); 59 this.setTitle( vfs.getVirtualFileSystemView().getDisplayName(vfFile) ); 60 } 61 62 private VFSRole() { 63 super(); 64 } 65 66 71 public String getValuePath() { 72 return this.m_sValuePath; 73 } 74 } 75 | Popular Tags |