Changeset 3879 for devel-tools/trunk


Ignore:
Timestamp:
Jul 24, 2008, 6:16:02 PM (12 years ago)
Author:
yura
Message:
Location:
devel-tools/trunk/eclipse
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/eclipse/org.refal.rfpdt.core/src/org/refal/rfpdt/core/RfpProject.java

    r3878 r3879  
    2525    private final IJavaProject javaProject;
    2626    private final IWorkspaceRoot workspaceRoot;
     27    private final IScopeContext projectScope;
    2728    private final IScopeContext[] scopes;
    2829
     
    3132        this.javaProject = JavaCore.create(project);
    3233        this.workspaceRoot = project.getWorkspace().getRoot();
    33         this.scopes = new IScopeContext[] { new ProjectScope(project), new InstanceScope(), new DefaultScope() };
     34        this.projectScope = new ProjectScope(project);
     35        this.scopes = new IScopeContext[] { projectScope, new InstanceScope(), new DefaultScope() };
    3436    }
    3537
     
    4042    public IJavaProject getJavaProject () {
    4143        return javaProject;
     44    }
     45   
     46    public IScopeContext getProjectScope () {
     47        return projectScope;
    4248    }
    4349
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/ui/RfpUI.java

    r3878 r3879  
    1515import org.eclipse.ui.preferences.ScopedPreferenceStore;
    1616import org.osgi.framework.BundleContext;
     17import org.refal.rfpdt.core.RfpCore;
    1718import org.refal.rfpdt.editor.RfpPartitionScanner;
    1819import org.refal.rfpdt.ui.preferences.ProjectPropertiesStore;
     20import org.refal.rfpdt.ui.preferences.RfpProjectPreferences;
    1921
    2022@SuppressWarnings("restriction")
     
    126128    }
    127129
    128     public static ProjectPropertiesStore getProjectPropertiesStore (final IProject project) {
     130    public static ProjectPropertiesStore getProjectPropertiesStore (IProject project) {
    129131        if (stores == null)
    130132            return null;
     
    135137        }
    136138        return store;
     139    }
     140    public static RfpProjectPreferences getRfpProjectPreferences (IProject project, String qualifier) {
     141        return new RfpProjectPreferences(RfpCore.getRfpProject(project), qualifier);       
    137142    }
    138143
Note: See TracChangeset for help on using the changeset viewer.