Examples of PropertyManager


Examples of org.olat.properties.PropertyManager

   * @param name
   */
  public AdvancedPropertySearchForm(UserRequest ureq, WindowControl wControl) {
    super(ureq, wControl);
   
    PropertyManager pm = PropertyManager.getInstance();
    List resourceTypeNames = pm.getAllResourceTypeNames();
    int size = resourceTypeNames.size();
    theKeys = new String[size+1];
    theValues = new String[size+1];
    theKeys[0] = "0";
    theValues[0] = null;
View Full Code Here

Examples of org.rascalmpl.library.vis.properties.PropertyManager

  MouseOver parent;
 
  static class MouseOverListener extends LayoutProxy{

    public MouseOverListener(Figure inner) {
      super(inner, new PropertyManager());
    }
View Full Code Here

Examples of org.sintef.umt.propertyeditor.PropertyManager

   
    return theSchema;
  }
 
  public XmiSchema augumentSchemaFromProfile(String profileFile, String profileName, XmiSchema theSchema){
    PropertyManager pm = new PropertyManager(profileFile);
   
    pm.loadProperties();
   
   
   
    // Find the xsd:simpleType node with the name attribute equalling enumPackageStereoTypeType
    // Get hold of all of the items for the <<package>> stereotype
    Map packageMap = pm.getPropertiesForStereotypedItem(profileName,"package");
   
     
    Iterator it = null;
    it = packageMap.keySet().iterator();
   
    String key = null;
    String val[];
    while (it.hasNext()){
      key = (String)it.next();
      val = (String[])packageMap.get(key);
     
      // System.out.println(key + " " + val[0]);
      if (val[0].equalsIgnoreCase("package"))
        theSchema.addValidStereotypeForItem("enumPackageStereoTypeType",key);
      else if (val[0].equalsIgnoreCase("class"))
        theSchema.addValidStereotypeForItem("enumClassStereoTypeType",key);
      else if (val[0].equalsIgnoreCase("model"))
        theSchema.addValidStereotypeForItem("enumModelStereoTypeType",key);
      else if (val[0].equalsIgnoreCase("operation"))
        theSchema.addValidStereotypeForItem("enumOperationStereoTypeType",key)
      else if (val[0].equalsIgnoreCase("dependency"))
        theSchema.addValidStereotypeForItem("enumAssociationStereoTypeType",key);
    }
   
    // Then to do basic type set.  This is stored in the <PropertyGroup item="types" name="types" stereotype="" type="types">
    PropertyGroup profile = pm.getPropertyGroupForItem (profileName);
    Map types = profile.getAllPropertiesForItem("types");
   

     
    // For the time being, the types are stored in the types variable
View Full Code Here

Examples of org.sintef.umt.propertyeditor.PropertyManager

      else me.doTransformation("profiles.xml",args[0],args[1], "");
    }
  }
 
  public PropertyGroup loadProfile(String profileName, String profileFile){
    PropertyManager pm = new PropertyManager(profileFile);
   
    pm.loadProperties();
   
    PropertyGroup pg = pm.getPropertyGroupForItem(profileName);
   
    return pg;
  }
View Full Code Here

Examples of org.sintef.umt.propertyeditor.PropertyManager

    File project_file = new File (locdir.getAbsolutePath() + System.getProperty("file.separator") + _project_filename);
    return project_file.exists();
  }
  public static PropertyManager getPropertiesForLocation (String location) {
    if (projectExists (location)) {
      return new PropertyManager (location + System.getProperty("file.separator") + _project_filename);
    }
    return null;
  }
View Full Code Here

Examples of org.sintef.umt.propertyeditor.PropertyManager

  private boolean initProjectFile (File project_file, boolean create) {
    try {   
      if (!project_file.exists()) {
        project_file.createNewFile();
      }     
      _propertymanager = new PropertyManager (project_file);
      if (create) {
        String [] property = new String [4];
        property[2] =""; property[3] = "";     
        java.util.Calendar cal = java.util.Calendar.getInstance();
        _propertymanager.clear()
        _propertymanager.reinit ();     
        PropertyManager template = new PropertyManager (_project_template);
        _propertymanager.copy(template);         
        property[0] = "Created"; property[1] = cal.getTime().toString();
        _propertymanager.setProperty("Timestamps","", property);
        property[0] = "Last opened"; property[1] = cal.getTime().toString();
        _propertymanager.setProperty("Timestamps","", property);
View Full Code Here

Examples of org.sintef.umt.propertyeditor.PropertyManager

  private JDialog _dialog;
  private Vector _projectlisteners;
  private PIMViewer _pimviewer;
 
  public ProjectManager (Component dialog_owner, PIMViewer pimviewer) {
    _propertymanager = new PropertyManager (_projectfile);
    _propertyeditor = new PropertyEditor (_propertymanager);
    _propertyeditor.setNameEditable(false);       
    _dialog_owner = dialog_owner;
    _projectlisteners = new Vector ();
    _projectlist = new JList ();
View Full Code Here

Examples of org.sintef.umt.propertyeditor.PropertyManager

            confirmed = res==JOptionPane.OK_OPTION? true: false;            
          }
          if (confirmed || !projectExists){
            if (projectExists)
              ProjectManager.this.deleteProjectByLocation(loc);
            PropertyManager mgr = ProjectEditor.getPropertiesForLocation(loc);           
            localdialog.setVisible(false);                       
            createProject (name, loc, sources, sourcetypefield.getText());
            notifyListeners ("New");
          }          
        } else if (srcbtn == cancel) {
View Full Code Here

Examples of org.sintef.umt.propertyeditor.PropertyManager

 
  public boolean findProjectWithSource (File source) {
    try {
      String sname = source.getAbsolutePath();
        System.out.println ("findProjectWithSource: " + sname);         
      PropertyManager project_properties;
      PropertyGroup group;
      for (Iterator projects = _propertymanager.getPropertyGroups(); projects.hasNext();) {
        PropertyGroup project = (PropertyGroup) projects.next();
        Map props = project.getProperties();     
        String location = ((String[])props.get("location"))[0];
        if (ProjectEditor.projectExists(location)) {
          project_properties = ProjectEditor.getPropertiesForLocation(location);
          if (project_properties != null) {
            group = project_properties.getPropertyGroupForItem("files");
            String projectsource = group.getProperty("source");
            System.out.println ("comparing with: " + projectsource);           
            if (projectsource.equalsIgnoreCase(sname)) {
              doOpenProject (project.getId());
              notifyListeners ("open");
View Full Code Here

Examples of org.sintef.umt.propertyeditor.PropertyManager

    _modellistener = listener;
         setShowsRootHandles (true);        
         setRootVisible(false);
         setScrollsOnExpand(true);            
    addTreeSelectionListener (this);
    _actionPropertyMgr = new PropertyManager (_actionsfile);
    ToolTipManager ttmanager = ToolTipManager.sharedInstance ();
    ttmanager.registerComponent(this);   
    _elements = new Hashtable ();
    HutnTreeMouseAdapter htma = new HutnTreeMouseAdapter ();   
    addMouseListener (htma);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.