private String getFeatureModelUri(IProject p) { String uri = DotVBuilder.getValue(p, PreferenceConstants.FEATURE_MODEL_URI); if (uri.toLowerCase().startsWith(PLATFORM_RESOURCE)) { uri = uri.substring(PLATFORM_RESOURCE.length()); } return uri; }
private String extractFeatureName_Joinpoint(IFile file, String line) { String tag = DotVBuilder.getValue(file, PreferenceConstants.JOINPOINT_SECTION_BEGIN); String s = tryToFindAndExtract(line, tag); // if ( s != null ) return s; // tag = DotVBuilder.getValue(file, PreferenceConstants.JOINPOINT_SECTION_END); // s = tryToFindAndExtract( line, tag ); return s; }
private String extractFeatureName_FeatureDependency(IFile file, String line) { String tag = DotVBuilder.getValue(file, PreferenceConstants.FEATURE_BEGIN); String s = tryToFindAndExtract(line, tag); // if ( s != null ) return s; // tag = builder.getValue(file, PreferenceConstants.FEATURE_END); // s = tryToFindAndExtract( line, tag ); return s; }
private String extractFeatureName_Advice(IFile file, String line, int lineNo) { String tag = DotVBuilder.getValue(file, PreferenceConstants.ADVICE_SECTION_BEGIN); String s = tryToFindAndExtract(line, tag); if (s != null) return extractAdvice(file, lineNo, s); // tag = DotVBuilder.getValue(file, PreferenceConstants.ADVICE_SECTION_END); // s = tryToFindAndExtract( line, tag ); // if ( s != null ) { // return extractAdvice(file, lineNo, s); // } return null; }
private void checkFilenameDepenency(IFile file) { String fileFeatureToken = builder.getValue(file, PreferenceConstants.FEATURE_IN_FILENAME); String fileName = file.getName(); int p = fileName.indexOf(fileFeatureToken); if (p >= 0) { String featureName = fileName.substring(p + 1, fileName.indexOf('.', p)); if (!isFeatureDefined(file, featureName)) { builder.addMarker( file, "Feature '" + featureName + "' referenced in file name does not exist in in feature model.", 0, IMarker.SEVERITY_ERROR); } } }