* @param selection */
public void performSearch(BulkEditorQuery query, IStructuredSelection selection) {
if (query != null) {
- if(StoreUtil.checkDirty(bulkEditor)){
+ if(StoreUtil.promptCheckIsDirty(bulkEditor)){
return;
}
bulkEditor.getEditorInput().performSearch(query, selection);
if(!CharacterTransfer.getInstance().isSupportedType(getCurrentEvent().currentDataType)){
return super.performDrop(data);
}
- if(StoreUtil.checkDirty(editor)){
+ if(StoreUtil.promptCheckIsDirty(editor)){
return false;
}
FeatureNode target = (FeatureNode) getCurrentTarget();
btnAddDescription.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- if(StoreUtil.checkDirty(matrix.getPart())){
+ if(StoreUtil.promptCheckIsDirty(matrix.getPart())){
return;
}
String error = "";
btnRemoveDescription.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- if(StoreUtil.checkDirty(matrix.getPart())){
+ if(StoreUtil.promptCheckIsDirty(matrix.getPart())){
return;
}
int[] fullySelectedRowPositions = matrix.getBodyLayer().getSelectionLayer().getFullySelectedRowPositions();
btnAggregate.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- if(StoreUtil.checkDirty(matrix.getPart())){
+ if(StoreUtil.promptCheckIsDirty(matrix.getPart())){
return;
}
List<TaxonNode> taxonSubtreeFilter = CdmStore.getService(IDescriptiveDataSetService.class).loadFilteredTaxonNodes(matrix.getDescriptiveDataSet(), null);
@Execute
public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart, UISynchronize sync) {
CharacterMatrixPart matrixPart = (CharacterMatrixPart) activePart.getObject();
- if(StoreUtil.checkDirty(matrixPart)){
+ if(StoreUtil.promptCheckIsDirty(matrixPart)){
return;
}
DescriptiveDataSet descriptiveDataSet = matrixPart.getDescriptiveDataSet();
@Override
public boolean performDrop(Object data) {
- if(StoreUtil.checkDirty(editor)){
+ if(StoreUtil.promptCheckIsDirty(editor)){
return false;
}
AbstractTermDto target = (AbstractTermDto) getCurrentTarget();//can be vocab
@Named(IServiceConstants.ACTIVE_SELECTION) IStructuredSelection selection, MHandledMenuItem menuItem,
UISynchronize sync) {
DefinedTermEditorE4 termEditor = (DefinedTermEditorE4) activePart.getObject();
- if(StoreUtil.checkDirty(termEditor)){
+ if(StoreUtil.promptCheckIsDirty(termEditor)){
return;
}
boolean addTermAsKindOf =
MMenuItem menuItem,
UISynchronize sync) {
DefinedTermEditorE4 termEditor = (DefinedTermEditorE4) activePart.getObject();
- if(StoreUtil.checkDirty(termEditor)){
+ if(StoreUtil.promptCheckIsDirty(termEditor)){
return;
}
String label = menuItem.getLocalizedLabel();
@Named(IServiceConstants.ACTIVE_SELECTION) IStructuredSelection selection, MMenuItem menuItem,
UISynchronize sync) {
DefinedTermEditorE4 termEditor = (DefinedTermEditorE4) activePart.getObject();
- if(StoreUtil.checkDirty(termEditor)){
+ if(StoreUtil.promptCheckIsDirty(termEditor)){
return;
}
if(!StoreUtil.confirmDelete()){
@Override
public boolean performDrop(Object data) {
- if(StoreUtil.checkDirty(editor)){
+ if(StoreUtil.promptCheckIsDirty(editor)){
return false;
}
Object currentTarget = getCurrentTarget();
@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection,
UISynchronize sync) {
IFeatureTreeEditor editor = ((IFeatureTreeEditor) thisPart.getObject());
- if (StoreUtil.checkDirty(editor)) {
+ if (StoreUtil.promptCheckIsDirty(editor)) {
return;
}
@Named(IServiceConstants.ACTIVE_PART)MPart thisPart, UISynchronize sync) {
IFeatureTreeEditor editor = ((IFeatureTreeEditor) thisPart.getObject());
- if (StoreUtil.checkDirty(editor)) {
+ if (StoreUtil.promptCheckIsDirty(editor)) {
return;
}
public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart thisPart, UISynchronize sync){
IFeatureTreeEditor editor = (IFeatureTreeEditor) thisPart.getObject();
- if (StoreUtil.checkDirty(editor)) {
+ if (StoreUtil.promptCheckIsDirty(editor)) {
return;
}
@Named(IServiceConstants.ACTIVE_PART)MPart thisPart){
IFeatureTreeEditor editor = (IFeatureTreeEditor) thisPart.getObject();
- if(StoreUtil.checkDirty(editor)){
+ if(StoreUtil.promptCheckIsDirty(editor)){
return;
}
@Named(IServiceConstants.ACTIVE_PART)MPart thisPart){
IFeatureTreeEditor editor = (IFeatureTreeEditor) thisPart.getObject();
- if(StoreUtil.checkDirty(editor)){
+ if(StoreUtil.promptCheckIsDirty(editor)){
return;
}
@Named(IServiceConstants.ACTIVE_SELECTION) IStructuredSelection selection, UISynchronize sync){
IFeatureTreeEditor editor = (IFeatureTreeEditor)part.getObject();
- if (StoreUtil.checkDirty(editor)) {
+ if (StoreUtil.promptCheckIsDirty(editor)) {
return;
}
@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection, UISynchronize sync){
IFeatureTreeEditor editor = (IFeatureTreeEditor) thisPart.getObject();
- if (StoreUtil.checkDirty(editor)) {
+ if (StoreUtil.promptCheckIsDirty(editor)) {
return;
}
if(!StoreUtil.confirmDelete()){
@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection, UISynchronize sync){
IFeatureTreeEditor editor = (IFeatureTreeEditor) thisPart.getObject();
- if (StoreUtil.checkDirty(editor)) {
+ if (StoreUtil.promptCheckIsDirty(editor)) {
return;
}
if(!StoreUtil.confirmDelete()){
* because it wasn't beforehand or because it has been saved.
* <code>true</code> otherwise
*/
- public static boolean checkDirty(IE4SavablePart editor){
+ public static boolean promptCheckIsDirty(IE4SavablePart editor){
if (editor.isDirty()){
boolean proceed = MessageDialog.openQuestion(null,
Messages.DefinedTermEditorE4_SAVE_TITLE, Messages.DefinedTermEditorE4_SAVE_MESSAGE);