modelchangeevent.java
来自「Semantic Web Ontology Editor」· Java 代码 · 共 104 行
JAVA
104 行
//The MIT License//// Copyright (c) 2004 Mindswap Research Group, University of Maryland, College Park//// Permission is hereby granted, free of charge, to any person obtaining a copy// of this software and associated documentation files (the "Software"), to// deal in the Software without restriction, including without limitation the// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or// sell copies of the Software, and to permit persons to whom the Software is// furnished to do so, subject to the following conditions://// The above copyright notice and this permission notice shall be included in// all copies or substantial portions of the Software.//// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS// IN THE SOFTWARE.package org.mindswap.swoop;/** * @author Evren Sirin */public class ModelChangeEvent { private SwoopModel model; private int type; private Object source; // different constants to represent what kind of change happened // in the model public static int IMPORTS_VIEW_CHANGED = 1; public static int QNAME_VIEW_CHANGED = 2; public static int ONTOLOGY_LOADED = 3; public static int ONTOLOGY_REMOVED = 4; public static int ONTOLOGY_CHANGED = 5; public static int ONTOLOGY_SEL_CHANGED = 6; public static int ENTITY_SEL_CHANGED = 7; public static int REASONER_SEL_CHANGED = 8; public static int ADDED_ENTITY = 9; public static int REMOVED_ENTITY = 10; public static int EDITABLE_CHANGED = 11; public static int DEBUGGING_CHANGED = 12; public static int SHOW_INHERITED = 13; public static int ADDED_CHECKPOINT = 14; public static int REMOVED_CHECKPOINT = 15; public static int ADDED_CHANGE= 16; public static int RESET_CHANGE= 17; public static int ENABLED_CHANGELOG= 18; public static int ENABLED_CHECKPOINT= 19; public static int CLEAR_SELECTIONS = 20; public static int AUTORETRIEVE_CHANGED = 21; public static int FILTER_SEL_CHANGED = 22; public static int ANNOTATION_CACHE_CHANGED = 23; public static int ONTOLOGY_RELOADED = 24; public static int FONT_CHANGED = 25; public static int ONT_STATS_CHANGED = 26; public static int REASONER_FAIL = 27; public static int MOTHERSHIP_DISPLAY = 28; public static int RULES_CHANGED = 29; /** * */ public ModelChangeEvent(SwoopModel model, int type) { this(model, type, null); } /** * */ public ModelChangeEvent(SwoopModel model, int type, Object source) { this.model = model; this.type = type; this.source = source; } /** * @return Returns the model. */ public SwoopModel getModel() { return model; } /** * @return Returns the source. */ public Object getSource() { return source; } /** * @return Returns the type. */ public int getType() { return type; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?