Implements member service capabilities to admit the cases of nested classes.
141142143144145146147148149150151152153
IProgressMonitor monitor ) { if(monitor==null) { monitor = new NullProgressMonitor(); } IUML2RunnableWithProgress runnable = new ModelProcessorRunnable(el); try { runnable.run(monitor); } catch (InvocationTargetException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); }
715716717718719720721722
* not a file or the user account executing the program is not allowed to * read it) */ protected void readJavaFile(File parseFile, File container) throws IllegalArgumentException { IUML2RunnableWithProgress runnable = new Parser(parseFile); CoffeaUML2Plugin.getInstance().execute(runnable); }
704705706707708709710711712713714
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { if (monitor == null) { monitor = new NullProgressMonitor(); } IAttributeService prop = null; if(objective!=null) { String simpleName = objective.getName(); if( (simpleName!=null) &&(simpleName.length()>0)
816817818819820821822823824825826827828
String qualifiedName = containerName + '#' + simpleName; /* String qualifiedName = PropertyHandler.resolveFullyQualifiedName(oldProperty); */ IAttributeService tp = getPropertyService(qualifiedName); if (tp != null) { IField jEl = tp.getJavaElement(); if (jEl != null) { try { jEl.delete(false, new NullProgressMonitor()); properties.remove(tp); } catch (JavaModelException e) {
380381382383384385386387388389390391392393394
} } } } if((ret==null)&&(properties!=null)) { IAttributeService prop; for(int i=0 ; i<properties.size() ; i++) { prop = properties.get(i); if(prop!=null) { if(n.equals(prop.getFullName())) { ret = prop; } if(ret!=null) { break; }
415416417418419420421422423424425
@Override public List<IElementService> getElementsHandlers() { List<IElementService> ret = super.getElementsHandlers(); if(properties!=null) { IAttributeService prop = null; for(int i=0 ; i<properties.size() ; i++) { prop = properties.get(i); if(prop!=null) { ret.add(prop); }
519520521522523524525526527528529
CoffeaUML2Plugin.getInstance().execute(runnable); } } public IAttributeService createProperty(Property p) { IAttributeService a = null; if(p!=null) { PropertyCreation runnable = new PropertyCreation(p, this); CoffeaUML2Plugin.getInstance().execute(runnable); a = runnable.getResult(); }
154155156157158159160161162163164
supplier = getModelService().resolveTypeService(typeName); } else { // Else we got to get the local package IPackageService packH = null; IContainerService contH = getContainerService(); while( (contH != null) &&(!(contH instanceof IPackageService)) &&(contH instanceof IContainableElementService<?, ?>) ) {
391392393394395396397398399400401
*/ public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { if((javaElement != null) && (newVisiblityKindLiteral != null)) { IContainerService contH = getContainerService(); if(contH instanceof IASTNodeService<?, ?>) { if(javaElement instanceof IField) { IField field = (IField)javaElement; try { SelfEncapsulateFieldRefactoring r =
242243244245246247248249250251252
tHandler = getModelService().resolveTypeService(typeName); } else { // Else we got to get the local package IPackageService packSrv = null; IContainerService contSrv = getContainerService(); while( (contSrv != null) &&(!(contSrv instanceof IPackageService)) &&(contSrv instanceof IContainableElementService<?, ?>) ) {