@Override public ICLanguageSettingEntry doEdit(ICLanguageSettingEntry ent) { IncludeDialog dlg = new IncludeDialog( usercomp.getShell(), IncludeDialog.OLD_DIR, Messages.IncludeTab_2, ent.getValue(), getResDesc().getConfiguration(), (ent.getFlags() & ICSettingEntry.VALUE_WORKSPACE_PATH)); if (dlg.open()) { int flags = 0; if (dlg.check2) flags = ICSettingEntry.VALUE_WORKSPACE_PATH; return CDataUtil.createCIncludePathEntry(dlg.text1, flags); } return null; }
@Override public ICLanguageSettingEntry doAdd() { IncludeDialog dlg = new IncludeDialog( usercomp.getShell(), IncludeDialog.NEW_DIR, Messages.IncludeTab_1, EMPTY_STR, getResDesc().getConfiguration(), 0); if (dlg.open() && dlg.text1.trim().length() > 0) { toAllCfgs = dlg.check1; toAllLang = dlg.check3; int flags = 0; if (dlg.check2) { // isWsp flags = ICSettingEntry.VALUE_WORKSPACE_PATH; } return CDataUtil.createCIncludePathEntry(dlg.text1, flags); } return null; }