This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IProject getCurrentProject(){ | |
ISelectionService selectionService = | |
Workbench.getInstance().getActiveWorkbenchWindow().getSelectionService(); | |
ISelection selection = selectionService.getSelection(); | |
IProject project = null; | |
if(selection instanceof IStructuredSelection) { | |
Object element = ((IStructuredSelection)selection).getFirstElement(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected boolean renameProject(IProject localProject, String newProjectName) { | |
RenameResourceProcessor renameProcessor = new RenameResourceProcessor(localProject); | |
renameProcessor.setNewResourceName(newProjectName); | |
CheckConditionsOperation condictionOperation = new CheckConditionsOperation(new RenameRefactoring(renameProcessor), | |
CheckConditionsOperation.FINAL_CONDITIONS); | |
CreateChangeOperation operation = new CreateChangeOperation(condictionOperation, | |
RefactoringCore.getConditionCheckingFailedSeverity()); | |
PerformChangeOperation performChangeOperation = new PerformChangeOperation(operation); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Fullscreenr - lightweight full screen background jquery plugin | |
* By Jan Schneiders | |
* www.nanotux.com | |
* | |
* Modifications by Chris Van Patten | |
* http://www.vanpattenmedia.com | |
* Version 1.5 | |
**/ |
NewerOlder